AnsweredAssumed Answered

STM32 cube mx generated code issue

Question asked by mischuk.vadim on Apr 1, 2017
Latest reply on Apr 9, 2017 by Imen D

Sup, engineers. 

I found some interesting issue in code, generated with STM32 cube MX. If I choose HSE as source for my PLL, it gives me following line of code in the RCC initialization function:

 

RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI|RCC_OSCILLATORTYPE_HSE;

 

 

That causes MCU stuck during RCC initialization. Replacing it with following line helps me to boot properly:

 

RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSE;

 

Can anyone tell me, is that cube issue, or I am missing something.

Outcomes