Skip to main content
JSalo.1
Associate
March 19, 2022
Question

Hello. I have a simple PCB board that can be flashed with a .dfu firmware file (via DfuSeDemo for example). I'd like to change USB device name shown in Windows. What are the modifications needed to the source code? Thanks in advance for the answers.

..

This topic has been closed for replies.

5 replies

Pavel A.
March 19, 2022

The change should be made in the Windows INF file used to install the DFU driver (ST's or custom).

Unfortunately any change will invalidate the signature on the driver package, and obtaining a new signature is a pain. At least you can use the "Zadig" hack (see here).

JSalo.1
JSalo.1Author
Associate
March 19, 2022

I managed to change the device name and Windows recognizes the new one but device manager shows an error -> see attached picture.

Also, the "Events" tab in USB Input Device Properties says "Device xxxxxxxxx was not migrated due to partial or ambiguous match."

Thank you for answering, I would really like to get this problem solved.

Pavel A.
March 19, 2022

What have you changed? where?

JSalo.1
JSalo.1Author
Associate
March 21, 2022

Sorry for the delayed reply.

In the USB_DEVICE folder, in the file usbd_desc.c I have tried to change these lines

- #define USBD_VID

- #define USBD_MANUFACTURER_STRING

- #define USBD_PID_FS

- #define USBD_PRODUCT_STRING_FS

See attached pics also.