cancel
Showing results for 
Search instead for 
Did you mean: 

How can I set the USB Manufacturer String / Product String?

TMohr
Associate

Hello,

I have created a project in STM32CubeMX for an STM32F407VG Discovery board.

I have enabled USB Device in this project and have set (visible in usbd_desc.c):

#define USBD_VID    1155

#define USBD_LANGID_STRING    1033

#define USBD_MANUFACTURER_STRING    "Qwe Inc"

#define USBD_PID_FS    22336

#define USBD_PRODUCT_STRING_FS    "VCOM"

#define USBD_SERIALNUMBER_STRING_FS    "00000000001A"

#define USBD_CONFIGURATION_STRING_FS    "CDC Config"

#define USBD_INTERFACE_STRING_FS    "CDC Interface"

But when I connect the board in my linux PC lsusb shows me:

Bus 001 Device 009: ID 0483:5740 STMicroelectronics STM32F407

I have a similar behavior on Windows10.

I'd like to be able to set / influence the displayed name. What do I need to do?

Best regards

Torsten

1 REPLY 1
JSalo.1
Associate II

Hello Torsten,

I found your question above and happen to have the exact same question in mind. Did you find a solution?

Thanks,

-Juhani