cancel
Showing results for 
Search instead for 
Did you mean: 

CubeMx 4.22.1 code generation issue in SystemClock_Config

Stephane Bonnot
Associate
Posted on September 14, 2017 at 10:04

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.

#4.22.1 #stm32-l4 #cubemx
1 ACCEPTED SOLUTION

Accepted Solutions
Imen.D
ST Employee
Posted on December 18, 2017 at 13:19

Hello

Bonnot.Stephane

,

Please use the last version of CubeMx 4.

This issue about 'PLLM is no more generated' is fixed in the CubeMx version 4.23 asmentioned in the Release note of STM32CubeMX

http://www.st.com/content/ccc/resource/technical/document/release_note/b2/02/4b/e3/81/32/49/c4/DM001076pdf/files/DM001076pdf/jcr:content/translations/en.DM001076pdf

.

Best Regards

Imen

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

View solution in original post

1 REPLY 1
Imen.D
ST Employee
Posted on December 18, 2017 at 13:19

Hello

Bonnot.Stephane

,

Please use the last version of CubeMx 4.

This issue about 'PLLM is no more generated' is fixed in the CubeMx version 4.23 asmentioned in the Release note of STM32CubeMX

http://www.st.com/content/ccc/resource/technical/document/release_note/b2/02/4b/e3/81/32/49/c4/DM001076pdf/files/DM001076pdf/jcr:content/translations/en.DM001076pdf

.

Best Regards

Imen

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