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.

CC2538: How to connect to CC3100 using UART?

Part Number: CC2538
Other Parts Discussed in Thread: CC31XXEMUBOOST, CC3100BOOST, , Z-STACK

Greetings!

I have CC2538EM and SmartRF06 and recently purchased CC3100BOOST and CC31XXEMUBOOST. Now I want to connect CC2538EM to CC3100BOOST using UART.

I read many documents and examples but can't find a clear way to configure RTS and CTS signals to pins. How can I use UART1 with RTS and CTS?

Also I found two UART drivers in CC2538 Foundation Firmware (swrc271a): uart.c and bsp_uart.c. Which one should I use?

Best Regards

*James*

  • Hi James,

    In Z-Stack, you can see how UART is used in the ZNP workspace for CC2538. A good starting point would be npInit() in znp_app.c.
  • Hi Jason,

    I don't use the ZAP-ZNP architecture in Z-Stack. Does znp_app.c still help?
    And what about uart.c and bsp_uart.c libraries?

    *James*
  • Hi James,

    I was just suggesting to look at the code as an example of how UART is initialized and used on the CC2538, not necessarily to use that particular code for your application.

    You could also look at the uart_example workspace in the CC2538 foundation firmware, in \cc2538_foundation_firmware_1_0_1_0\bsp\srf06eb_cc2538\examples\uart\projects\iar\, this example uses the bsp_uart.c driver. Start in main() in uart_example.c and you can see the initialization and usage of the UART driver.

    As for the difference between uart.c and bsp_uart.c, bsp_uart.c is specific to the SmartRF06 + CC2538EM implementation, uart.c is much less detailed and it is generic for the CC2538.
  • Hi Jason,

    Thanks for referring to this example.

    As I understand, the configuration of UART signals (TX, RX, CTS, RTS) is in file "bsp.c", function "bspInit()", the lines commented with "UART Backchannel (TXD/RXD/CTS/RTS input pullup)" , right? but why it's called (Backchannel) ?? is it a special case of UART usage?

    *James*
  • UART Backchannel is for UART backdoor boot loader to download FW and I think that is why it called Backchannel.