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.

Can i modify the product description string of the CC2538 usb-cdc?

Other Parts Discussed in Thread: CC2538

Hello,

Im using the CC2538 with ZNP firmware via usb-cdc interface and it identifies itself to the system with the following properties: 

> vendorID: 0x0451, productID: 0x16C8, name: CC2538 USB CDC

Is is it possible to change the product description string in the firmware to something different? I need to be able to uniquely identify different versions of the hardware via usb. On a FTDI I can change this string quite easy via the FT-Prog tool from FTDI. Can I modify this string in the firmware source of the ZNP firmware somehow?

Thanks a lot!

  • I think you can test to know it.
  • But how? Wehere in the source can I find this? I could not find the place where the " CC2538 USB CDC" string is assigned e.g.

  • I am a little bit confused. CC2538 ZNP provides UART or SPI interface not USB CDC. Where do you get CC2538 ZNP project with USB CDC capability?
  • Hello,

    id like to bring this up once more. After the release of the ZNP 3.0.0 it seems that USB support is "official" since I can just enable the define "HAL_UART_USB" and I will gain USB compatibility. But I still have the same problem, I'd like to modify the product string which seems to be buried somewhere in the usblib which comes precompiled with the stack (Components/usblib/cc2538/bin/iar/usbcdc.lib). Is there any way to change the product description string from this prebuild lib?
  • Hi Thomas,

    You can try downloading the cc2538 foundation firmware and changing/recompiling usblib.

    www.ti.com/.../CC2538-SW
  • Hey,

    thanks a lot for the tip!

    I just found this answer by myself like 10 min before you posted it. I'll try to explain it in a little more detail if someone else comes across the same problem:

    • the productID string is determined by the included usbcdc.lib file its by default set to "CC2538 USB CDC".
    • this lib used in the newest zstack release (3.0.0) is still the same like in the foundation firmware which can be downloaded where JasonB linked. Its version 1.0.1
    • to change this string you can open the usbcdc iar project file (cc2538_foundation_firmware_1_0_1_0\usblib\cc2538\projects\iar\usbcdc.eww) and change the corresponding char array in the file "app_usb_descriptor.c" and its correct length in "app_usb_descroptor.h"
    • then just compile the usbcdc.lib file and replace the one which is in the zstack (Components\usblib\cc2538\bin\iar\)

    Thanks to everyone who helped me finding the solution, cheers!

    Thomas