Skip to main content
danielbuga9
Associate III
March 19, 2018
Solved

CubeMX L4 V1.11.0 Generated Code Issue

  • March 19, 2018
  • 6 replies
  • 1524 views
Posted on March 19, 2018 at 16:04

I have a project for the L452 where I use MSI as the PLL input to generate SYSCLK and use PLLSAI1 to generate clock for the SAI1 peripherial. In my case, PLLM is 1 and it is set correctly for the SAI1 PLL but the generated code does not initialize the variable for RCC_OscInitStruct.PLL.PLLM. Because this initialization is missing (either because it is 1, or because I use SAI1 that should also set it, I don't know), a check in RCCEx_PLLSAI1_Config fails (i.e. the uninitialized value becomes garbage that sets the PLLM to 5 where I want it to be 1), making the whole clock config fail.

Adding back the missing initialization, everything works as expected.

#cubel4 #l452 #pllm
This topic has been closed for replies.
Best answer by Houda GHABRI
Posted on May 10, 2018 at 18:36

Hi

Buga.D_niel

,

This issue is fixed in the last CubeMX version : 4.1 , it is already on Web.

Best regards,

Houda

6 replies

ST Technical Moderator
March 27, 2018
Posted on March 27, 2018 at 15:25

Hello

Buga.D_niel

,

Are you using CubeMx ? which version ?

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
danielbuga9
Associate III
March 27, 2018
Posted on March 27, 2018 at 15:30

Yes, I use CubeMX, version 4.25.

ST Technical Moderator
March 27, 2018
Posted on March 27, 2018 at 15:47

Many thanks

Buga.D_niel

for this detail, as I checked the same reported issue with CubeMx version 4.25

https://community.st.com/0D50X00009XkdhKSAR

and raised it internally.

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
Houda GHABRI
Houda GHABRIBest answer
ST Employee
May 10, 2018
Posted on May 10, 2018 at 18:36

Hi

Buga.D_niel

,

This issue is fixed in the last CubeMX version : 4.1 , it is already on Web.

Best regards,

Houda