2025-07-08 3:11 AM
Greetings,
I'm having an issue with low-power modes. I'm using a STM32U585 MCU and while in run mode it is consuming around 100mA, which is a lot. I tried to enter in Sleep, Stop and Standby modes right after the main declaration:
int main(void)
{
HAL_Init();
SystemPower_Config();
SystemClock_Config();
PeriphCommonClock_Config();
HAL_PWR_EnterSTOPMode(PWR_LOWPOWERREGULATOR_ON, PWR_SLEEPENTRY_WFI);
...
The thing is, the current just drops from 100mA to 70mA, which is still a lot.
Any clue why the circuit is consuming so much current?
Thank you
Solved! Go to Solution.
2025-07-08 7:24 AM
100 mA is too much for the CPU alone. My guess is other components on the board are using most of that current.
2025-07-08 3:12 AM
Note:
In the HAL_PWR_EnterSTOPMode function, the 2nd argument is PWR_STOPENTRY_WFI, not Sleep.
2025-07-08 3:24 AM
You need to give more details: How to write your question to maximize your chances to find a solution.
In particular, what hardware are you using?
How are you measuring the current?
How are you sure you're measuring only the MCU's current consumption?
Have you tried the ST examples on an ST board?
2025-07-08 3:52 AM
Hello @j_filipe;
I recommend you to refer to How to minimize the power consumption in low power mode: An example using NUCLEO-F401RE board FAQ to minimize the power consumption. The purpose of this article is to share tips for power consumption optimization while describing steps to achieve it.
Please set all free pins as analog to optimize the power consumption.
I advise you to look at PWR_STANDBY and PWR_SLEEP examples may help you.
Thank you.
Kaouthar
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.
2025-07-08 7:24 AM
100 mA is too much for the CPU alone. My guess is other components on the board are using most of that current.
2025-07-10 10:14 AM
@j_filipe for the benefit of others who may find this while looking to solve a similar problem, it would help if you would say where the excess current was going.
2025-07-10 10:18 AM
Hi Andrew,
It is irrelevant because I am just using this MCU in a personal project, so it is a personal custom-made board. The excess current was going to another component of the circuit.
Thank you.
2025-07-11 1:29 AM - edited 2025-07-11 3:23 AM
Not irrelevant at all: a great example that the MCU is not the only thing which contributes to "low power" - something which is often overlooked!
So thanks for sharing.