HAL_TIMEOUT problem in HAL_RCC_OscConfig() function (NUCLEO-F303K8)
Dear, All.
I am trying to use HSE, but I ask for your help by continuously returning HAL_TIMEOUT from the HAL_RCC_OscConfig() function.
The test environment is as follows.
BOARD: NUCLEO-F303K8T6
IDE: STM32CubeIDE (latest version)
FIRMWARE: STM32Cube FW_F3 V1.11.3
The code generated by CubeIDE is as follows, and it is automatically generated, and the code has not been modified at all. RCC Mode is set to BYPASS Clock Source and Master Clock Output is disabled.
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSE;
RCC_OscInitStruct.HSEState = RCC_HSE_BYPASS;
RCC_OscInitStruct.HSIState = RCC_HSI_ON;
RCC_OscInitStruct.PLL.PLLState = RCC_PLL_NONE;
if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK)
{
Error_Handler();
}
If HSI is used, it works fine even if it is set to 64 MHz.
With HSE, several other NUCLEO-F303K8 HAL_TIMEOUT returned from the same location. And I don't remember exactly when I tested it, but when I tested it with CubeIDE a few years ago, everything worked fine.
The code that causes the timeout is the 265th line in the stm32f3xx_hal_rcc.c file.
while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET)
I wll listen to any help. Thank you.


