Senior
February 25, 2026
Question
STM32U5G7 MX_USB_OTG_HS_PCD_Init() hangs
- February 25, 2026
- 3 replies
- 282 views
Hello STM32 friends!
I've previously used USB on an STM32G474RET6, and it was initialized with the function:
MX_USB_Device_Init()The goal is to use it as a USB serial port to communicate with my device, and that worked.
Now I'm using the STM32U5G7VJT6, and this time, the USB is initialized with the function:
MX_USB_OTG_HS_PCD_Init()But this function hangs.
I've enabled USB interrupts in the STM32CubeMX, but that doesn't help.
I haven't been able to isolate the problem yet, but it's probably something very simple.
Is this another new USB library?
As requested, I attached my IOC file.
What could be the problem?
Sincerely, Jack
