Skip to main content
Hector Fernandez
Associate II
Apr 12, 2018 10:55 AM UTC
Question

Bug report STM32CubeMX 4.25.0: RCC_OscInitStruct.PLL.PLLM

Posted on April 12, 2018 at 12:55

I am using a 

http://www.st.com/en/evaluation-tools/b-l475e-iot01a.html

 with STM32L475VGTx. When I generate the source code with STM32CUBEMX 4.25.0 and STM32Cube FW_L4 V1.11.0, i noticed that inside SystemClock_Config() in main.c, the following line of code is not used:

   RCC_OscInitStruct.PLL.PLLM = 1;

So, my USB peripheral doesn't work because USB must be configured to 48Mhz. But if this line of code is not called, the USB frequency is wrongly-configured. But when I add manually this line (and the correct value), USB peripheral works perfectly.

This bug appears in new

STM32Cube projects as well as migrated ones.

I have checked other projects made using

STM32CUBEMX

 4.24.0 and that line of code is not missing.

#cpu-clock-frequency #stm32cube #stm32cubemx-4.25.0 #bug-report
This topic has been closed for replies.

5 replies

Nawres GHARBI
ST Technical Moderator
Apr 18, 2018 9:39 AM UTC
Posted on April 18, 2018 at 11:39

Hi Hector, 

We are already fixing this issue and it will be delivered in the next release of CubeMX. 

As a workaround you can generate the RCC configuration using the LL driver where the PLLM is well configured. 

thanks for using STM32CubeMX

Nawres GHARBI
ST Technical Moderator
May 7, 2018 9:59 AM UTC
Posted on May 07, 2018 at 09:59

The 4.25.1 will be available this week fixing this issue 

Stay tuned

Yanmin Huang
Visitor II
May 21, 2018 6:59 AM UTC
Posted on May 21, 2018 at 06:59

Hi,

I did not see 4.25.1 generate pllm line.

Did I do something wrong?

thanks.