Question
HAL_RCC_OscConfig timeout on F411E-Disco board
Hi,
I am using the following codes to do system clock initialization on my STM32F411E-Discovery board:
/** Initializes the RCC Oscillators according to the specified parameters
* in the RCC_OscInitTypeDef structure.
*/
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSE;
RCC_OscInitStruct.HSEState = RCC_HSE_ON; //Use X2 Crystal
RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE;
RCC_OscInitStruct.PLL.PLLM = 4;
RCC_OscInitStruct.PLL.PLLN = 192;
RCC_OscInitStruct.PLL.PLLP = RCC_PLLP_DIV4;
RCC_OscInitStruct.PLL.PLLQ = 8;
if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK)
But
if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK)returns time out error.
I am sure crystal X2 is connected, but I don’t understand why it gives me time our error.
Previosuly I also tried:
RCC_OscInitStruct.HSEState = RCC_HSE_BYPASS;that also threw time out error, I gave up this configuration because I am not sure if SB14 and SB16 are bridged
Here is also the related F411E-Disco board schematic diagram:

