Skip to main content
Narasimha Murthy Gururaj
Visitor II
Dec 15, 2017 8:53 PM UTC
Solved

Bug: Cube MX PLL configuration

Posted on December 15, 2017 at 21:53

After generating the code using cube MX version 4.22.1 for STM32L476VG board, I noticed that RCC_OscInitStruct.PLL.PLLM does not get assigned to any value in SystemClock_Config().

Due to this RCC_PLLCFGR register enables unwanted PLLs.

For eg in my case I was expecting only PLLR to be enabled with register value to be 0x1002a71 but it turned out to be RCC_PLLCFGR = 0x7737f71 where PLLQ and PLLP is also eanabled.

0690X00000609FAQAY.png

As any one else noticed this issue?

    This topic has been closed for replies.
    Szymon PANECKI
    Szymon PANECKIBest answer
    Senior III
    Dec 18, 2017 12:59 PM UTC
    Posted on December 18, 2017 at 12:59

    Thanks Imen for your quick feedback. Indeed the solution here is to use CubeMX 4.23, the latest revision at the moment.

    I confirm that there was such problem in previous version of STM32CubeMX. PLLM parameter was not set properly. Now it is fixed.

    Regards

    Szymon

    2 replies

    ST Technical Moderator
    Dec 18, 2017 11:47 AM UTC
    Posted on December 18, 2017 at 12:47

    Hello ,

    Please try to use the last version of CubeMx 4.23.

    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
    Szymon PANECKI
    Szymon PANECKIBest answer
    Senior III
    Dec 18, 2017 12:59 PM UTC
    Posted on December 18, 2017 at 12:59

    Thanks Imen for your quick feedback. Indeed the solution here is to use CubeMX 4.23, the latest revision at the moment.

    I confirm that there was such problem in previous version of STM32CubeMX. PLLM parameter was not set properly. Now it is fixed.

    Regards

    Szymon