2024-07-07 10:26 PM
Hello,
I'm using the nucleo-h743zi2 board.
I am trying to use the USB OTG FS function.
The .IOC file settings are as follows:
I provided power through an external source and also swapped the D+ and D- lines of the USB.
The USB connection LED on the board turns on, but a USB device recognition error occurs in the Device Manager of my computer.
Is there a way to resolve this situation?
Solved! Go to Solution.
2024-07-15 05:38 PM - edited 2024-07-15 05:38 PM
If USB device is not recognized properly, but computer (e.g. Windows) sees "something" (in Device Manager), but does not realize properly what the USB device is...:
The Enumeration went wrong: the USB descriptors sent by the MCU (as device) are not correct or not properly received by the host (computer):
The good news is: your MCU USB seems to send something, but the host PC will not get it error free. Therefore an "unknown device": bit errors or wrong USB descriptors (for Enumeration).
2024-07-15 05:20 AM
Hi @HMsDobby2
Could you explain why do you swap D+ and D- lines? This is not a common practice and can mess up communication. These lines are differential pairs used for data transmission, and they must be connected correctly for proper operation.
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.
2024-07-15 05:38 PM - edited 2024-07-15 05:38 PM
If USB device is not recognized properly, but computer (e.g. Windows) sees "something" (in Device Manager), but does not realize properly what the USB device is...:
The Enumeration went wrong: the USB descriptors sent by the MCU (as device) are not correct or not properly received by the host (computer):
The good news is: your MCU USB seems to send something, but the host PC will not get it error free. Therefore an "unknown device": bit errors or wrong USB descriptors (for Enumeration).
2024-07-15 05:41 PM
BTW:
Even the USB cable length can matter, esp. if the USB traces on your PCB are not really correct (e.g. different length of traces for D+ and D-, not an impedance match).
Check your PCB, use a shorter USB cable, use an USB analyzer...
2024-07-15 06:41 PM
I checked and found that the clock configuration settings were incorrect, but now everything is working fine.
Thank you.