2025-08-25 3:46 AM
There is no test.txt file in my USB drive after the example is run.
The board sends this log
**** USB OTG HS Dual_Class Host ****
USB Host library started.
Starting Application
Connect your HID or MSC Device
USB Device Enumeration Failure
Tried to attach the USB drive to both USB connectors.
The last message is sent about 1.5s after the previous ones.
Where can be an issue?
Solved! Go to Solution.
2025-08-28 4:10 AM
Hi @ERROR
I flashed you trusted binary as it is and it's working fine on my end!
Now, I'm suspecting your device or the USB adapter !
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-08-26 7:12 AM
Hi @ERROR
It works on my end !
It is possible that your device is not working properly!
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-08-27 12:26 AM
Hi @FBL ,
thank you for your response!
Have you built the firmware with IAR?
I did it with STM32CubeIDE 1.19.0. Could you please try it out too?
I powered up the board from the external power supply via Arduino connector, and from ST-Link USB as well. I tried two USB drives, one keyboard, and one mouse. No enumeration anyway.
Regards!
2025-08-27 2:09 AM
Hi @ERROR
Same behavior on CubeIDE. I've tried with a keyboard, mouse and storage.
Would you provide more details about your hardware setup?
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-08-27 4:38 AM - edited 2025-08-27 4:41 AM
@FBL ,
Thank you for your efforts!
I have an STM32N6570-DK board with the following label information (QR code read):
STM32N6570-DK
DK32N6570$CR1
C244900212
MB1939-N6570-C02
Z4C49001
Connections:
Laptop (USB Type-C) <-> USB hub (USB-A) <-> cable <-> board (ST-LINK USB Type-C)
A USB peripheral (USB drive, SD card, mouse, or keyboard) is connected to another USB hub, which is then connected to the board’s USER USB Type-C connector.
I also tried powering the board from an external 12V/2A wall adapter, as well as directly from the PC USB port without the hub. In all cases, there was no enumeration.
The USB hubs I used are inexpensive and different, and the behavior varies between them.
When I swapped the USB hubs, after plugging in the USB peripheral, the LD3 LED next to the ST-LINK USB connector lits up red, and no message regarding enumeration failure appeared (nothing works). Pressing the reset button does not help; I need to disconnect and reconnect the cable to the ST-LINK USB connector in order to restart the board.
Regards!
2025-08-27 4:39 AM
2025-08-27 7:49 AM
Hi @ERROR
I'm attaching the binary file. Did you select Software reset?
Do you use external loader check if it is selected correctly.
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-08-28 12:36 AM
Hi @FBL
Thank you for your firmware!
Looks like you use a dev mode. I tried to run your ELF in STM32CubeIDE - the enumeration failure is again (i used "software system reset").
Usually, I use a regular mode loading the binary to the flash memory.
I took your ELF and converted it to the binary with the line below
arm-none-eabi-objcopy -O binary Ux_Host_DualClass.elf Ux_Host_DualClass.bin
Then I signed the binary and loaded it with the STM32CubeProgrammer to the flash memory at 0x70000000 (I use the external loader of course). The corresponding BAT file and converted files are included in the archive attached.
After that I set BOOT1 switch to the "L" position and reset the board. And I have the same "USB Device Enumeration Failure".
Could you please flash your board with BAT files in the FBL_USB directory (your fw), and FBL_USB_MY directory (my fw)?
PS. The USB port looks not damaged, because I successfully run USB devices examples, and the green LD9 lights up when I plug in a USB drive to it.
Regards!
2025-08-28 4:10 AM
Hi @ERROR
I flashed you trusted binary as it is and it's working fine on my end!
Now, I'm suspecting your device or the USB adapter !
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-08-28 6:12 AM - edited 2025-08-28 6:13 AM
@FBL ,
That's fine! Definitely, I have some hardware issues.
Thank you very much indeed for your support!
I will try other hubs and something else.
Good luck!