STM32u5g9 usb support
Hello, I have been trying to implement USB support on an STM32u5g9vjt6Q using USBX in standalone mode without success as of yet. I have been referencing this guide (How to implement USBX in standalone mode ) I am trying to use the onboard USB Phy in full speed mode, I think my issue comes down to clock configuration. I am able to perform a USB DFU firmware update through the onboard ST bootloader so I am fairly certain I do not have a hardware issue, I also have a 16mhz external crystal.
My firmware will end up in a Error_Handler after a timeout, the timeout is happening during this block of code inside of USB_CoreReset()
do
{
count++;
if (count > HAL_USB_TIMEOUT)
{
return HAL_TIMEOUT;
}
} while ((USBx->GRSTCTL & USB_OTG_GRSTCTL_CSRST) == USB_OTG_GRSTCTL_CSRST);Debugging shows GRSTCTL = 0x80000001, CSRST = 0x1
I will attach a picture of the call stack w/ the section of code and the contents of the register. I will also attach the CubeIDE project.
Thanks!
