cancel
Showing results for 
Search instead for 
Did you mean: 

NUCLEO-H745ZI-Q unable to enumerate FS USB device

SPetr.6
Associate II

Hello,

I have a NUCLEO-H745ZI-Q board that I am trying to configure as a FS USB device setup as a Virtual Port Com. The only changes I have made to the stock CubeMx setup is removing ETH and setting up two encoder inputs on TIM2 and 5. I've tried disabling vbus sensing. I've also tried with and without the USB PWR EN jumper (which there is basically no documentation on). I'm assuming that I should not have the jumper enabled since I have the USB configured as device only.

I've tried to read through as many docs and forums as I could seeing if someone else has a similar issue, but not finding anything else. I've seen other posts like this one that suggest adding HAL_PWREx_EnableUSBVoltageDetector(), but I already have that (seems it's been fixed in CubeMx). There was this post about the BCD being enabled, but seems like some info is missing.

I am powering the board over the stlink USB connection. For the moment, I have jumpers JP6, JP7, and JP8 removed (from what comes stock). JP6 and JP7 are just the ethernet and JP8 is USB PWR EN. I've also removed all the solder bridges for the ethernet, but have boards both with and without these removed that are showing the same issue.

This is my dmesg output:

[ 3250.522486] usb 1-2: new full-speed USB device number 16 using xhci_hcd
[ 3250.638455] usb 1-2: device descriptor read/64, error 2
[ 3250.862504] usb 1-2: device descriptor read/64, error 2
[ 3251.084471] usb 1-2: new full-speed USB device number 17 using xhci_hcd
[ 3251.200496] usb 1-2: device descriptor read/64, error 2
[ 3251.422493] usb 1-2: device descriptor read/64, error 2
[ 3251.530582] usb usb1-port2: attempt power cycle
[ 3252.158422] usb 1-2: new full-speed USB device number 18 using xhci_hcd
[ 3252.171181] usb 1-2: device descriptor read/8, error -32
[ 3252.287819] usb 1-2: device descriptor read/8, error -71
[ 3252.508434] usb 1-2: new full-speed USB device number 19 using xhci_hcd
[ 3252.522001] usb 1-2: device descriptor read/8, error -75
[ 3252.639922] usb 1-2: device descriptor read/8, error -75
[ 3252.746555] usb usb1-port2: unable to enumerate USB device

1 ACCEPTED SOLUTION

Accepted Solutions
SPetr.6
Associate II

Needed to increase the peripheral clock speed.

View solution in original post

1 REPLY 1
SPetr.6
Associate II

Needed to increase the peripheral clock speed.