This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2540 HostTestRelease UART Port

Other Parts Discussed in Thread: CC2540

Hello!

I want to use the HostTestRelease Dongle App with UART. 

I've set it to CC2540EM which should make the communication go through UART. 

However I am wondering what UART port is used with these settings? Is it Port 0 or Port 1?

Thanks 

Mario

  • Mario,

    C2540 has native USB capability.  The driver presents it to the host OS as a CDC (communication device control) so it looks like a serial port.

  • Yes, but I want to connect the dongle through UART with hosttestrelease. The dongle will be connected to a pc through a level converter and RS232.

  • 8bitMario said:

    Yes, but I want to connect the dongle through UART with hosttestrelease. The dongle will be connected to a pc through a level converter and RS232.

    Check out the CC2540_USB_Dongle_SCHEMATIC.pdf in swrr072.zip . It shows pins P0_2 to P0_5 and P1_4 to P1_7 available on the exposed pads. You just need to connect a header.  According to swru191d, the first four are the UART0 and UART1 (Alt-1) pins in both UART and SPI mode, while the latter can be used for UART1 (Alt-2), both SPI and UART.

    You can choose what UART and what configuration, from the compile-time options.  You can look in the BLE-1.3 project files if you want to find the defaults, the IAR project files are readable XML.

    I'm curious, why you want to do that?