Skip to main content
Michael98006
Associate III
Aug 15, 2019 12:17 AM UTC
Solved

CubeMx is missing the PWR_DIRECT_SMPS_SUPPLY option under RCC->SupplySource

When I generate a new project in CubeMx 5.3.0 for the STM32H745I-DISCO board for IAR toolchain, I get the following code:

HAL_PWREx_ConfigSupply(PWR_LDO_SUPPLY);

The example projects in CubeH7 package use this code instead:

HAL_PWREx_ConfigSupply(PWR_DIRECT_SMPS_SUPPLY);

With the code generated by CubeMx, when I unplug the USB cable (which supplies power to the board) from the STLK port, plugging it back in causes the code not to run.

With the code from the examples, the code runs ok.

I believe the code generated by CubeMx misconfigures the FW for the STM32H745I-DISCO board.

Anyone else have this issue?

This topic has been closed for replies.
Khouloud ZEMMELI
Khouloud ZEMMELIBest answer
ST Employee
May 15, 2020 10:14 AM UTC

Hi @Loïc Quinet​ 

Issue has been already fixed from the 5.4.0 MX version.

Try with the 5.6.1 version.

0693W000001cKMWQA2.png

Best regards,

Khouloud​

7 replies

Tesla DeLorean
Guru
Aug 15, 2019 12:50 AM UTC
Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Khouloud ZEMMELI
ST Employee
Aug 15, 2019 7:02 AM UTC

​Hello @Community member​ , this issue will be fixed in the next release.

Best Regards,

Khouloud.

ofer-bahar
Associate II
Jul 2, 2025 1:22 PM UTC

NO ITS NOT !!

This BUG is still there in the Cube 1.17.0

LQuin
Associate
May 15, 2020 9:51 AM UTC

Hi,

Just to tell that I still have this issue with STM32CubeMX integrated in STM32CubeIDE (STM32CubeMX Version: 5.6.0-RC6 Build: 20200218-1639 (UTC)) and STM32CubeH7 Firmware Package V1.7.0 / 14-February-2020)

Regards,

lquinet

Khouloud ZEMMELI
Khouloud ZEMMELIBest answer
ST Employee
May 15, 2020 10:14 AM UTC

Hi @Loïc Quinet​ 

Issue has been already fixed from the 5.4.0 MX version.

Try with the 5.6.1 version.

0693W000001cKMWQA2.png

Best regards,

Khouloud​

LQuin
Associate
May 15, 2020 2:15 PM UTC

Thanks a lot @Khouloud ZEMMELI​ I didn't notice the option!

Associate II
Dec 14, 2023 8:00 PM UTC

PWR_DIRECT_SMPS_SUPPLY is still missing in STM32CubeIDE 1.14.0.