AnsweredAssumed Answered

CubeMx 4.22.1 code generation issue in SystemClock_Config

Question asked by Stephane Bonnot on Sep 14, 2017
Latest reply on Dec 18, 2017 by Imen D

With STM32Cube_FW_L4_V1.9.0 when generating code using PLL (HSE or other), SystemClock_Config(void) is missing a diviser :

 

RCC_OscInitStruct.PLL.PLLM is not set and thus generates an issue ( default value is 0)

 

adding  RCC_OscInitStruct.PLL.PLLM = 1; // (or any value set in CubeMx) 

 

solves the issue.

Outcomes