2026-02-27 8:04 AM
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 !
Solved! Go to Solution.
2026-03-02 3:28 AM
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.
2026-02-27 9:13 AM
Please include your IOC file.
2026-02-27 10:19 AM
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.
2026-03-02 3:28 AM
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.