Difference between UART_UartInit  and  UART_BCP_Init?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Using a PSOC4 Pioneer Kit (CY8CKIT-042) I see uart activity on J4.2 (P0_5) only when initialized via:

   

UART_Start();   UART_UartPutString("Hello\r\n");

   

but not when initialized via:

   

UART_BCP_Start(); UART_BCP_SpiUartPutArray("Hello\r\n", strnlen("Hello\r\n", 6)) 
    
The hardware SCB design is the same in both cases (.cysch file and .cydwr), so the only difference is the software uart initialization files used (UART_BCP_UART.c vs UART_UART.c).

   

Why does only the non-BCP work?

0 Likes
3 Replies
HeLi_263931
Level 8
Level 8
100 solutions authored 50 solutions authored 25 solutions authored

When it really is the same hardware / schematic, the UART_Start() and UART_BCP_Start() reference different UART components. That means only one of them is what you think it is.

   

Can you provide the full project so we can have a look?

0 Likes
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

My schematic only instantiates an SCB, so after some more digging, it looks like the BCP (Bridge Control Panel) is an interface that uses the CY3240 chipset via an I2c link thru the PSOC5.  

   

http://www.element14.com/community/thread/23902/l/psoc-4-pioneer-kit-community-project05--usb-i2c-ut...

   

However, looking at the Pioneer Kit, I don't see this chip..  is the CY3240 emulated in the PSOC5?   Is the source code available for thie PSOC5 on the Pioneer Kit, I can't seem to find it anywhere.

   

 

   

Thanks!

   

   

 

   

 

   

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

BCP is a Cypress softwase used for interfacing the I2C bridge in -001, -030 and -050 development kits. The KitProg in the -042, -042 BLE, -044 and -059 Kits have got internally an UART bridge which connects directly to a terminal program like PuTTY.

   

So there is no chance for you to "program a BCP". As you can see you are using an SCB block configured (and named!) as UART.

   

 

   

Bob

0 Likes