Enable USB Clock Source Freezes Execution
Simple demo application on the Nucleo-L476RG generated in CubeMX with HAL version 1. Nothing but USB Host and a few GPIOs for LEDs enabled.
When it comes to the `SystemClock_Config()` it freezes when enabling the clock source for the USB.
if(PeriphClkInit->UsbClockSelection == RCC_USBCLKSOURCE_PLLSAI1)
{
/* PLLSAI1 input clock, parameters M, N & Q configuration and clock output (PLLSAI1ClockOut) */
ret = RCCEx_PLLSAI1_Config(&(PeriphClkInit->PLLSAI1), DIVIDER_Q_UPDATE);
if(ret != HAL_OK)�?�?�?�?�?�?
`ret` is always `HAL_ERROR` which causes an infinite loop at:
if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInit) != HAL_OK)
{
_Error_Handler(__FILE__, __LINE__);
}�?�?�?�?
Just wondering if I have a hardware issue or something I missed in clock initialization.
#clock #usb #bug #cubemx