2025-08-07 8:26 AM
Hello, I am trying to utilize the USB peripheral in STM32cubeIDE with the STM32H7S78-DK. It hangs forever in MX_USB_INIT on a function USB CORE RESET. With FS and HS this same issue seems to be happening. Pictures show config in the GUI and the aforementioned function.
2025-08-07 12:43 PM
Hi,
So you have device USB enabled,
For... What kind of device?
I don't see any...
What you want?
2025-08-07 12:51 PM
Hello,
I wish to use it as communication device class, or human interface device class. At the moment I have been configuring it as communication device class in the GUI.
2025-08-07 1:04 PM
So you set CDC/VCP in Cube?
Int for USB enabled in NVIC settings?
Then it should work, out of the box.
But I don't yet try it on H7S7, only H743, H7A3...
So no guarantees....
2025-08-07 1:22 PM
Yes sir I set CDC/VCP and interrupts are enabled but it never escapes the INIT function. Thank you for your input so far!!
2025-08-07 1:33 PM
Ok, so check: is power enabled for the USB?
I remember a error in Cube, it didn't enable the power for the USB module.
Some HAL_PWR_ex_enable or so.
And clock for USB is 48M in clock tree?
2025-08-08 6:28 AM
2025-08-08 10:14 AM
Did you check on your board, the USB is powered? Maybe setting of jumpers or a pin set to power the USB port, see the circuit of your board, is on STM page for your board under CAD tab.
2025-08-12 3:01 AM
Hello @mtc65536
I have the same problem, the application hangs at USB CORE RESET, and I don't understand why. Did you solve the problem?
2025-08-12 3:59 AM
I solved the problem following this link: https://community.st.com/t5/stm32-mcus/faq-troubleshooting-a-usb-core-soft-reset-stuck-on-an-stm32/ta-p/803224