Question
USB soft reset on STM32H745
I am trying to get the device working but I cant seem to get the basic working.
Code :
USB->GRSTCTL |= USB_OTG_GRSTCTL_CSRST;
do
{
if (++count > 200000U)
{
return TIMEOUT;
}
}
while ((USB->GRSTCTL & USB_OTG_GRSTCTL_CSRST) == USB_OTG_GRSTCTL_CSRST);
Always times out. What could cause this?
