2018-03-19 08:04 AM
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 #pllmSolved! Go to Solution.
2018-05-10 09:36 AM
Hi
Buga.D_niel
,This issue is fixed in the last CubeMX version : 4.1 , it is already on Web.
Best regards,
Houda
2018-03-27 06:25 AM
Hello
Buga.D_niel
,Are you using CubeMx ? which version ?
Best Regards
Imen
2018-03-27 08:30 AM
Yes, I use CubeMX, version 4.25.
2018-03-27 08:47 AM
Many thanks
Buga.D_niel
for this detail, as I checked the same reported issue with CubeMx version 4.25https://community.st.com/0D50X00009XkdhKSAR
and raised it internally.Best Regards,
Imen
2018-03-27 10:41 AM
I'm not sure how the linked issue is in any way related, but thank you for raising mine.
2018-03-27 10:53 AM
Sorry, It is not the right link.
I just modified my post with the related discussion.
Best Regards
Imen
2018-05-10 09:36 AM
Hi
Buga.D_niel
,This issue is fixed in the last CubeMX version : 4.1 , it is already on Web.
Best regards,
Houda