STM32F413 USB oscillator error when USB enabled
Hi All,
I have added recommended oscillator to a Nucleo - F413 board and made it to work on external oscillator by doing the recommended mods.
When, I Initialised the clock for USB, with the settings below, then HAL_RCC_OscConfig returns a timeout as HSE is never ready.
/* Wait till HSE is ready */
while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET)
{
if ((HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE)
{
return HAL_TIMEOUT;
}
}
}

Could someone please give me some insights into the problems.
