Skip to main content
Ismo Manninen
Visitor II
Mar 22, 2017 10:04 PM UTC
Solved

CubeMX v4.20.0 bug in clock configuration?

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
This topic has been closed for replies.
Sirma Siang
Sirma SiangBest answer
ST Employee
Apr 28, 2017 9:08 AM UTC
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

2 replies

ST Technical Moderator
Mar 23, 2017 10:31 AM UTC
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

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
Sirma Siang
Sirma SiangBest answer
ST Employee
Apr 28, 2017 9:08 AM UTC
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