cancel
Showing results for 
Search instead for 
Did you mean: 

Bug report STM32CubeMX 4.25.0: RCC_OscInitStruct.PLL.PLLM

Hector Fernandez
Associate III
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
5 REPLIES 5
Nawres GHARBI
ST Employee
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

Posted on May 07, 2018 at 09:59

The 4.25.1 will be available this week fixing this issue 

Stay tuned

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.

Posted on May 21, 2018 at 09:04

could you attach your ioc please

Posted on May 21, 2018 at 17:51

Hi,

The file was from 3.0, then reopen and saved in 4.1

Thanks,

Yanmin

Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10

________________

Attachments :

USB_CDC.ioc.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006Hxa4&d=%2Fa%2F0X0000000b04%2FSz2.42Xw6wLshrIOjt.Yqof458UVaUumWmZpQ8Pn4ik&asPdf=false