AnsweredAssumed Answered

Bug report STM32CubeMX 4.25.0: RCC_OscInitStruct.PLL.PLLM

Question asked by Hector Fernandez on Apr 12, 2018
Latest reply on May 21, 2018 by Yanmin Huang

I am using a B-L475E-IOT01A 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.

Outcomes