2025-06-02 2:43 AM
Hi,
I'm working on a USB Mass Storage Class (MSC) application using the STM32U5 series. I have a working firmware that correctly enumerates as a USB MSC device on STM32U5G9J-DK2 - Windows detects it and loads the built-in USBSTOR.SYS driver as expected. The configurations I've used are similar to the DFU example provided for the same board on STMCube IDE.
However, when I flash the code with similar configurations to the STM32U5G9J-DK1, it fails to enumerate properly. In Windows Device Manager, I get:
Windows has stopped this device because it has reported problems. (Code 43)
The USB device returned an invalid USB device descriptor.
How can I fix this?
2025-06-02 7:56 AM
Hello @Riya_L & welcome to ST Community
Would you attach your firmware to check the issue on my end? For mass storage application, there should not be big difference in HW. Would you check your option bytes?
STM32U5G9 DK1 schematic MB1829 introduces additional features like VBUS sensing, UCPD dead battery level shifting, and ADC flexibility to monitor VBUS voltage. The DK2 MB1918 is simpler, focusing on basic USB type C and sinking 5V only.
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2025-06-02 11:38 PM
Hi,
I compared the option byte settings for DK1 and DK2 and found no differences in boot configuration, read protection, or other relevant parameters.
I have attached the firmware for the example that worked on DK2.
The image below shows how the DK2 device in DFU mode is recognized in Device Manager:
I had just changed the mode from DFU to MSC and that worked fine on the same board (DK2):
For DK1, this is what I found:
2025-06-03 3:21 AM
Hi @Riya_L
Could you verify the board revision? Additionally, could you attach the non-functional MSC example on DK1 to address the original question?
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2025-06-03 3:57 AM