Clocksource for USB-Host (STM32H7)
Hello,
I'm developing a USB-Host application (MSC / Fullspeed) with the STM32H743 µC (using STM32H743I-EVAL2 Board)
The application works fine when using PLL3Q as clocksource.
But when I use PLL1Q or RC48 as clocksource the USB "Core soft reset" timed out:
OTG->GRSTCTL |= USB_OTG_GRSTCTL_CSRST; // Core soft reset
// Wait Core reset to finish, max 100 ms
tout_ms = 100U;
while ((OTG->GRSTCTL & USB_OTG_GRSTCTL_CSRST) != 0U) {
if (tout_ms == 0U) {
return ARM_DRIVER_ERROR_TIMEOUT;
}
tout_ms--;
HAL_Delay(1U);
}
HAL_Delay(1U);I mapped RC48 to MCO1 to check if there is an 48MHz output and it is.
I checked the RCC/USB registers but couldn't find anything suspicious.
Does anyone has an idea what's wrong here?
Thanks,
Peter
