Skip to main content
Associate
November 21, 2025
Solved

Clock setting saving issue

  • November 21, 2025
  • 3 replies
  • 169 views

Hi,

I have configured WB55 project in CubeMX but each time I reopen it, clock config isuue is displayed. When I change SMPS clock source to HSE error dissapears and I can generate project. But onviously it is not saved since next time I open it, error is back and cloc source set again to HSI. 

Is there way how to fix it or is it just bug in CubeMX? Thanks.

David H.

DavH42_0-1763714793579.png

DavH42_1-1763714810292.png

DavH42_2-1763714820907.png

 

 

 

Best answer by Souhaib MAZHOUD

Hello @DavH42 

The issue is not reproduced when starting a project from scratch with CubeMX V6.16.0,
Although the problem is related to your IOC file, when opening the provided IOC in a text editor, these two lines are somehow added:

RCC.SMPSCLockSelectionVirtual=RCC_SMPSCLKSOURCE_HSI
RCC.SMPSCLockSelectionVirtualVirtual=RCC_SMPSCLKSOURCE_HSI

The problem will be resolved once you remove them.

BR, Souhaib

3 replies

Technical Moderator
November 21, 2025

Hello @DavH42 

Thanks for posting this issue!

I am currently investigating the issue, I will get back to you asap.

KR, Souhaib

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
Souhaib MAZHOUDBest answer
Technical Moderator
November 24, 2025

Hello @DavH42 

The issue is not reproduced when starting a project from scratch with CubeMX V6.16.0,
Although the problem is related to your IOC file, when opening the provided IOC in a text editor, these two lines are somehow added:

RCC.SMPSCLockSelectionVirtual=RCC_SMPSCLKSOURCE_HSI
RCC.SMPSCLockSelectionVirtualVirtual=RCC_SMPSCLKSOURCE_HSI

The problem will be resolved once you remove them.

BR, Souhaib

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
DavH42Author
Associate
November 25, 2025

Hello @Souhaib MAZHOUD ,

I can confirm that removing of these lines helped. Thanks a lot.
This project was originally created in 6.15.0 as WB55 Nucleo project. Maybe reason could be related to this fact. Anyway there was no merging of .ioc file. Migration to 6.16.0 and removing of nucleo related lines was done after issue observation. So I dont understand where these problematic lines could came from. Anyway important is, that now it is working properly. So thanks a lot again. Have a nice day.

 

BR

David H.