Skip to main content
Explorer
February 27, 2026
Solved

STM32CubeMX 6.17.0 does not seems to generate code for RCC

  • February 27, 2026
  • 3 replies
  • 203 views

 

Hello,

When I try to change the supply source in power parameters STM32CubeMX 6.17.0 does not seems to generate anything when LL is selected. With HAL the configuration is changed in the generated code.

 

Am I missing something ?

Thank you for your help !

Best answer by Ghofrane GSOURI

Hello @eboustou @TDK 

Thank you all for your valuable contributions.

The issue has been escalated to the development team under internal ticket ID 228095 for resolution.

As a workaround add the following call to configure the supply source in SystemClock_Config(void):

LL_PWR_SetRegulatorSupply(...);

The parameter should match the user selection in CubeMX:

LL_PWR_SMPS_SUPPLY when PWR_SMPS_SUPPLY is selected.
LL_PWR_LDO_SUPPLY when PWR_LDO_SUPPLY is selected.

LL_PWR_SetRegulatorSupply(LL_PWR_SMPS_SUPPLY);

 THX

Ghofrane 

3 replies

TDK
Super User
February 27, 2026

Please include your IOC file.

"If you feel a post has answered your question, please click ""Accept as Solution""."
Ghofrane GSOURI
Technical Moderator
February 27, 2026

Hello @eboustou 

As mentioned by @TDK could you please share your IOC so we could check your configurations and see what went wrong.

I will be waiting for your feedback.

Thx

Ghofrane 

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.
Ghofrane GSOURI
Ghofrane GSOURIBest answer
Technical Moderator
March 2, 2026

Hello @eboustou @TDK 

Thank you all for your valuable contributions.

The issue has been escalated to the development team under internal ticket ID 228095 for resolution.

As a workaround add the following call to configure the supply source in SystemClock_Config(void):

LL_PWR_SetRegulatorSupply(...);

The parameter should match the user selection in CubeMX:

LL_PWR_SMPS_SUPPLY when PWR_SMPS_SUPPLY is selected.
LL_PWR_LDO_SUPPLY when PWR_LDO_SUPPLY is selected.

LL_PWR_SetRegulatorSupply(LL_PWR_SMPS_SUPPLY);

 THX

Ghofrane 

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.