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.