Skip to main content
Ismo Manninen
Visitor II
March 22, 2017
Solved

CubeMX v4.20.0 bug in clock configuration?

  • March 22, 2017
  • 2 replies
  • 893 views
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.
Best answer by Sirma Siang
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

Technical Moderator
March 23, 2017
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"".ThanksImen"
Sirma Siang
ST Employee
April 28, 2017
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