Skip to main content
Stephane Bonnot
Visitor II
September 14, 2017
Solved

CubeMx 4.22.1 code generation issue in SystemClock_Config

  • September 14, 2017
  • 1 reply
  • 779 views
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
This topic has been closed for replies.
Best answer by Imen.D
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

1 reply

Imen.DBest answer
ST Technical Moderator
December 18, 2017
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

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks