2020-04-23 09:39 AM
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
Solved! Go to Solution.
2020-04-23 02:55 PM
Needed to increase the peripheral clock speed.
2020-04-23 02:55 PM
Needed to increase the peripheral clock speed.