Skip to main content
BarryWhit
Lead
July 30, 2024
Solved

CubeMX hides "Enable SMPS" too well for STM32U5

  • July 30, 2024
  • 6 replies
  • 3007 views

Cube is very enthusiastic about reminding you to enable the SMPS on U5 chips

BarryWhit_0-1722303160893.png

And it's also infuriatingly coy about how one actually does this:

BarryWhit_1-1722303311773.png

 

Here is just the latest example of an understandably confused costumer.

 

I would like to see the warning message amended to give more specific instructions on how to do this,

(i.e. "enable low-power/power saving mode and then choose SMPS as the power regulator")

and the PWR pane should be modified to be more self-explanatory, either by reworking the options,

or the help strings, or both.

Best answer by STTwo-32

Hello @BarryWhit 

The warning message on the new version of the STM32CubeMX (V6.13.0) came with the necessary details. For other feedback, you are always welcome to post on the ST Community.

Best Regards.

STTwo-32

6 replies

BarryWhit
BarryWhitAuthor
Lead
July 30, 2024

Also, I believe this is a known bug but if it isn't it should be fixed - Cube should not issue a warning about enabling the SMPS for part numbers that don't have an SMPS (obviously).

 

cc @STTwo-32 .

BarryWhit
BarryWhitAuthor
Lead
July 30, 2024

For future victims visitors:

 

SMPS.jpg

 

Isn't that just terrible? as the only way to resolve a warning message every customer who starts a cube project for STM32U5 sees? it really is, it's terrible.

STTwo-32
Technical Moderator
July 31, 2024

Hello @BarryWhit 

I'm not able to generate the warning with an STM32U5 that does not contain an SMPS. Could you please add the reference of your MCU.

Best Regards.

STTwo-32

BarryWhit
BarryWhitAuthor
Lead
July 31, 2024

I thought I saw this for U575AGI6 on CubeIDE 1.14.1. But now when I try to create a new project with that Part number, I only get an error about PWR missing configuration. When I click on the PWR peripheral I just get a spinning wheel but no actual config pane for PWR shows up. So, I'm not sure what's going on.

 

I can't reproduce the issue (either the warning or the missing pane) on 1.16.0 though. My apologies.

STTwo-32
Technical Moderator
July 31, 2024

In fact, a similar bug was reported for the version 1.14.0 (cubemx 6.5) and has been solved on the next versions.

Best Regards.

STTwo-32 

BarryWhit
BarryWhitAuthor
Lead
August 1, 2024

As @Mahmoud Ben Romdhane mentioned in the other thread, I see that even with latest CubeIDE 1.6.0, for U595 parts (in particular STM32U595AIH6) which don't have an integrated SMPS you get the SMPS warning, and I'm also unable to open the PWR peripheral for configuration in the UI.

 

He also also informed this has been previously reported in

https://community.st.com/t5/stm32cubemx-mcus/stm32u5-invalid-smps-warning-during-code-generation/m-p/607336

and the third issue of the SMPS being available for selection for LDO-only parts was tracked and fixed via ID166485

 

The erroneous warning bug is possibly being internally tracked via ticket ID166502?

STTwo-32
Technical Moderator
October 3, 2024

Hello @BarryWhit 

We are working for the improvement of the SMPS message. Internal ticket number 192626 is created for this.

Best Regards.

STTwo-32

STTwo-32
STTwo-32Best answer
Technical Moderator
December 2, 2024

Hello @BarryWhit 

The warning message on the new version of the STM32CubeMX (V6.13.0) came with the necessary details. For other feedback, you are always welcome to post on the ST Community.

Best Regards.

STTwo-32