STM32H723ZG USB Device Not Recognized – Timeout in USB_CoreReset() Initialization
Hello,
I’m a beginner working with the STM32H723ZG, and this is my first time trying to implement USB functionality. I’m attempting to set up the USB peripheral in Device mode (CDC) to send audio data from a buffer (filled by SAI via DMA) to a PC.
I’ve configured the USB in Full Speed (12 Mbit/s) mode using the internal PHY in STM32CubeMX and generated the initialization code. However, Windows fails to recognize the device, showing the error "USB device not recognized". I have also downloaded and installed the STMicroelectronics Virtual COM Port (VCP) driver to ensure proper communication.
I found out that the error occurs specifically during the call to MX_USB_DEVICE_Init(); in the initialization process.
After debugging, I traced the issue to the function USB_CoreReset() in stm32h7xx_ll_usb.c, which times out.
USB Configuration in CubeMX:

The clock for USB is set to 48MHz.
I have no idea what I’m missing… Have you got an idea?
PS: The main.c file of my project is attached for reference.
Thank you for your help!
