Question
CubeMX generates a wrong case init in void SystemClock_Config(void) (main.c). I changed this line manually, is there workaround or an automation for this ?
/** Initializes the CPU, AHB and APB buses clocks
*/
//RCC_ClkInitStruct.ClockType = ClockTypeHCLK|ClockTypeSysClk
// |ClockTypePCLK1|ClockTypePCLK2;
//Has to be:
RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_SYSCLK| RCC_CLOCKTYPE_HCLK | RCC_CLOCKTYPE_PCLK1 | RCC_CLOCKTYPE_PCLK2;