Skip to main content
Narasimha Murthy Gururaj
Visitor II
December 15, 2017
Solved

Bug: Cube MX PLL configuration

  • December 15, 2017
  • 2 replies
  • 961 views
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.
    Best answer by Szymon PANECKI
    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
    December 18, 2017
    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
    December 18, 2017
    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