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.