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 USB firmware implementation

Other Parts Discussed in Thread: CC2540

I designed a PCB based on CC2540 Keyfob but with additional USB port that I planned to use as USB CDC. I was able to assemble most of the USB firmware modules found in this directory:

C:\Texas Instruments\BLE-CC254x-1.4.0\Components\hal\target\CC2540USB\usb

I compiled the project successfully, including the function: static void HalUARTInitUSB() in _hal_uart_usb.c.

My question is how do I initialize the USB function? Someone told me that HalDriverInit() function would do the trick. But I don't see any condition for USB in that HalDriverInit() function.

Please any expert could give me a hint on how to fire up this USB function? Thanks in advance.

  • Hi,
    I haven't done that particular exercise but I suggest you refer to the HostTestRelease project which implements the USB CDC functionality. Unfortunately, there isn't much documentation on the topic other than that.

    Best Regards
    Joakim
  • Hi Joakim,

    Thanks for that suggestion. However I had to spend several sleepless nights to be able to combine USB CDC functions with the CC2540 KeyFob design. I think this is a very useful feature since I can display what's going on in the firmware through serial output. It helped us understand more quickly how the firmware was executed and Bluetooth operation in general.