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.

CC2531: UART & GPIO access

Part Number: CC2531
Other Parts Discussed in Thread: CC2530

I am attempting to run some simple code on the CC2531 to prove that I can control some basic things from the chip before trying to run the same code on a CC2530 on our custom board.

I started with the simple_hid_dongle - rfusb_cc2531 sample code. After confirming that I could build and load it to the USB dongle, I played with the LEDs. Then I removed the USB and radio parts, and added some basic LED toggling in the loop.

I then found and copied the source code from an older thread (https://e2e.ti.com/support/wireless_connectivity/rf4ce/f/159/t/547454) in an attempt to put characters out on the UART.

When I could not get that to work, I tried to just toggle the GPIO pins directly (P0.2-5, P1.4-7) but still got nothing. It is possible that my connections to the GPIO access points on the dongle are not great, but I would think at least one would give me some activity.

Is there anything really basic about enabling the GPIO on the dongle that I may have missed?

Thanks!
.Tim

  • I am not sure it the source in that link works. If you would like to do some test, I suggest you to use  to do it.

  • YK -
    Thank you for the idea. It did not occur to me that the Software Examples zip file would contain support for the UART since it is not used in any of the examples. With a little bit of experimentation and copying code from the SmartRF examples, I was able to add the hal_uart.h and hal_uart_cc8051.c source code into the CC2531 simple_hid_dongle example and put output to the UART.
    .Tim