2025-02-24 5:20 PM
Hello everyone!
I am encountering an issue where USB_CoreReset hangs on both the STM32H7S3L8 and STM32H753ZI boards when configuring the USB_OTG_HS port.
I understand that this issue has been reported previously, and I have thoroughly reviewed most of the related posts over the past week. However, I have not found a solution that works for my case.
MacOS Sequoia 15.3.1 (Run IOC using: sudo /Applications/STM32CubeIDE.app/Contents/MacOS/STM32CubeIDE)
STM32CubeIDE Version: 1.17.0
Checking __HAL_RCC_SYSCFG_CLK_ENABLE(); in HAL_MspInit();
Reinstalling STM32CubeIDE
Starting from a fresh workspace
Commenting out __HAL_RCC_USB2_OTG_FS_ULPI_CLK_ENABLE(); in USBD_conf.c
What could be causing USB_CoreReset to hang, and what steps can I take to debug or resolve this issue?
I have attached my IOC files for both boards for reference (STM32H7S3L8 is USB_init and STM32H753ZI is USB_initialization) Any insights or suggestions would be greatly appreciated.
Thanks in advance for your help!
2025-03-03 6:32 AM
Hi @AlexShao
This is common issue and could be due to compiler optimization, or PHY not being clocked or CPU frequency or USB internal regulator missing configuration in user application. If none of the above solved your issue, insert 10 clock cycles delay _DSP(); to avoid the issue.
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.