[bug report] STM32CubeMX - RCC configuration for STM32F427
Hi Everybody
Developing code for STM32F427 I decided to use CubeMX. It was not the first time when I found the tool useful to start the project but the first time when I noticed a problem with the output configuration files, especially with RCC configuration.
Please find the following code into your main.c file:
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI | RCC_OSCILLATORTYPE_HSE; RCC_OscInitStruct.HSEState = RCC_HSE_ON; RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON; RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE; RCC_OscInitStruct.PLL.PLLM = 8; RCC_OscInitStruct.PLL.PLLN = 180; RCC_OscInitStruct.PLL.PLLP = RCC_PLLP_DIV2; RCC_OscInitStruct.PLL.PLLQ = 3; if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK) { Error_Handler(); }The function HAL_RCC_OscConfig returns with HAL_ERROR.

To run the program properly I had to remove RCC_OSCILLATORTYPE_HSI from the first line of the code above.That was the only modification. No more changes were made.
IDE: TrueSTUDIO
MCU and firmware package:

Is this a bug, or I did something wrong?
Artur
