Associate III
March 16, 2017
Question
Cube 4.20 bug - Clock initialization
- March 16, 2017
- 6 replies
- 1413 views
Posted on March 16, 2017 at 10:54
I found a bug in the new Cube Version.
At line 1 internal oscillator is enabled although it is not used, in fact it is not actived:
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();
}�?�?�?�?�?�?�?�?�?
This brings HAL_RCC_OscConfig() to fail (timeout).
Thanks and BR,
Andrea
#cube #clock #bug