cancel
Showing results for 
Search instead for 
Did you mean: 

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 ?

Brieuc
Associate III
/** 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;

2 REPLIES 2
TDK
Guru

It looks like a bug.

Perhaps include steps to reproduce so that someone can look at it if they wanted.

If you feel a post has answered your question, please click "Accept as Solution".
Imen.D
ST Employee

Hello @Brieuc​ ,

Can you please describe precisely the steps and what configuration you made ?

If possible please share the ioc file, this will help to reproduce exactly the same scenario.

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen