cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeMX 6.17.0 does not seems to generate code for RCC

eboustou
Associate

 

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 !

1 ACCEPTED SOLUTION

Accepted Solutions
Ghofrane GSOURI
ST Employee

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.

View solution in original post

3 REPLIES 3
TDK
Super User

Please include your IOC file.

If you feel a post has answered your question, please click "Accept as Solution".
Ghofrane GSOURI
ST Employee

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
ST Employee

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.