2023-07-14 06:52 AM
Hi,
I am stuck on this issue on the STM32U5A9J-DK. I have ported the USB part from a H725 i have running. Where i have copied the init code from generated code.
In USB_CoreReset() the USB_OTG_GESTCTL_CSRST bit is never reset and hence a timeout occurs.
The OTG HS Clock mux is set to HSE, which is 16 MHz.
The OTG PHY ref. clock selection is set to 16 MHz.
Solved! Go to Solution.
2023-08-01 01:39 AM
CubeMX does not generate an important function call:
__HAL_RCC_SYSCFG_CLK_ENABLE();
After adding this to HAL_MspInit() it works.
2023-08-01 01:39 AM
CubeMX does not generate an important function call:
__HAL_RCC_SYSCFG_CLK_ENABLE();
After adding this to HAL_MspInit() it works.
2024-05-08 01:20 PM
You have no idea how long I have been trying to figure this out. Can confirm that CubeMX still does not generate the call.
2024-06-27 03:33 PM
st32F4 version 1.28.0 seems to insert the correct code, but I have the same issue. so far I just have base compiler generated code and the hang is in initialization. Any other suggestions?
Is this error completely internal setup, or could it be a hardware issue with the usb chip, we are usingusb3300-ezk-tr
this is a new pcb and a processor I'm not familar with