cancel
Showing results for 
Search instead for 
Did you mean: 

CubeMX v4.20.0 bug in clock configuration?

Ismo Manninen
Associate
Posted on March 22, 2017 at 23:04

When I generate code for STM32L151CBTx (FW v1.6.0) using CubeMX it enables MCI clock (RCC_ORCILLATORTYPE_MSI) in SystemClock_Config even if only HSI is enabled in the CubeMX clock configuration UI. Similar problem does not exist for other chip versions e.g. L152CBTx.

This misconfiguration causes HAL_RCC_OscConfig to fail.

#cubemx-bug
1 ACCEPTED SOLUTION

Accepted Solutions
Sirma Siang
ST Employee
Posted on April 28, 2017 at 11:08

Hello

ismoman

I would like to thank you for your bug report.

I tested with CubeMX4.1 and this issue cannot be reproduced.

This version correct a clock configuratin regression that has passed through all our validation tests.

I recommend you to update your CubeMX to the 4.1 version.

Kind regards

Sirma

View solution in original post

2 REPLIES 2
Imen.D
ST Employee
Posted on March 23, 2017 at 11:31

Hello,

I confirm this bug which is already reported internally to our CubeMx team and will be fixed soon in the new patch release.

Sorry for the inconvenience it may bring.

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
Sirma Siang
ST Employee
Posted on April 28, 2017 at 11:08

Hello

ismoman

I would like to thank you for your bug report.

I tested with CubeMX4.1 and this issue cannot be reproduced.

This version correct a clock configuratin regression that has passed through all our validation tests.

I recommend you to update your CubeMX to the 4.1 version.

Kind regards

Sirma