Associate III
March 16, 2017
Solved
Cube 4.20 Bug - clock init
- March 16, 2017
- 2 replies
- 1037 views
Posted on March 16, 2017 at 10:47
Hi,
I found a bug in the new version of CubeMX.
In this case, even if HSI is not used it is enabled (line 1) but not activated:
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI|RCC_OSCILLATORTYPE_HSE
|RCC_OSCILLATORTYPE_LSE;
RCC_OscInitStruct.HSEState = RCC_HSE_ON;
RCC_OscInitStruct.LSEState = RCC_LSE_ON;
RCC_OscInitStruct.PLL.PLLState = RCC_PLL_NONE;
if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK)
{
Error_Handler();
}�?�?�?�?�?�?�?�?�?
thus causing HAL_RCC_OscConfig() to fail.
I attached .ioc file.
BR,
Andrea
#bug #cube #clock