2026-04-16 12:07 AM - last edited on 2026-04-21 6:51 AM by Andrew Neil
in HS, HAL_PCD_Init fails with timeout in USB_CoreReset
Hello everyone,
I am working with an STM32H7S78-DK and I’m trying to use USBX in standalone mode for a composite USB device (CDC ACM + PIMA) over USB_HS at 480 Mbit/s.
At the moment, I have only implemented the CDC ACM class. PIMA will be added later.
Situation:
The error occurs at:
if (USB_CoreInit(hpcd->Instance, hpcd->Init) != HAL_OK) { ... }
Because inside USB_CoreInit, in USB_CoreReset, a HAL_TIMEOUT is returned while waiting for the CSRST bit in GRSTCTL to clear:
Technical summary:
Has anyone successfully configured USB_HS with USBX standalone on this family and can confirm which settings are required to avoid this timeout?
In particular:
I’ve attached a ZIP file with the full project for reference.
Thanks in advance!
Solved! Go to Solution.
2026-04-16 12:32 AM
I apologize in advance because this same question has already been answered in another post. I am attaching the link below:
https://community.st.com/t5/stm32-mcus-embedded-software/usb-hs-on-the-stm32h7s3l8/m-p/740800#M56769
In summary, in case you don’t want to read the whole post: to use USB-HS with this microcontroller, it is necessary to enable the USB_HS_REG. This can be done in CubeMX under the Power and Thermal category.
2026-04-16 12:32 AM
I apologize in advance because this same question has already been answered in another post. I am attaching the link below:
https://community.st.com/t5/stm32-mcus-embedded-software/usb-hs-on-the-stm32h7s3l8/m-p/740800#M56769
In summary, in case you don’t want to read the whole post: to use USB-HS with this microcontroller, it is necessary to enable the USB_HS_REG. This can be done in CubeMX under the Power and Thermal category.