cancel
Showing results for 
Search instead for 
Did you mean: 

CubeMX L4 V1.11.0 Generated Code Issue

danielbuga9
Associate III
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
1 ACCEPTED SOLUTION

Accepted Solutions
Houda GHABRI
ST Employee
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

View solution in original post

6 REPLIES 6
Imen.D
ST Employee
Posted on March 27, 2018 at 15:25

Hello

Buga.D_niel

,

Are you using CubeMx ? which version ?

Best Regards

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
Posted on March 27, 2018 at 15:30

Yes, I use CubeMX, version 4.25.

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

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
Posted on March 27, 2018 at 17:41

I'm not sure how the linked issue is in any way related, but thank you for raising mine.

Posted on March 27, 2018 at 17:53

Sorry, It is not the right link.

I just modified my post with the related discussion.

Best Regards

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
Houda GHABRI
ST Employee
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