Skip to main content
Visitor II
April 9, 2019
Question

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

  • April 9, 2019
  • 1 reply
  • 1327 views

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

    This topic has been closed for replies.

    1 reply

    Visitor II
    March 19, 2022

    Hello Torsten,

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

    Thanks,

    -Juhani