Skip to main content
teijo
Associate II
May 18, 2020
Question

Power consumption in standby mode STM32H742VIH

  • May 18, 2020
  • 2 replies
  • 882 views

I have problems with power consumption. In standby power consumption seems to we be way over the documented ~1,97 uA. Current codes gives consumption around 300 uA. Is there something more that needs to be taken into account when putting the CPU to standby? Code is generated latest version on CubeIde.

int main(void)
{
 HAL_Init();
 SystemClock_Config();
 MX_GPIO_Init();
 
 if(__HAL_PWR_GET_FLAG(PWR_FLAG_SB)){
 __HAL_PWR_CLEAR_FLAG(PWR_CPU_FLAGS);
 }
 HAL_SuspendTick();
 HAL_PWR_EnterSTANDBYMode();
 for(;;){
 }
 
}

This topic has been closed for replies.

2 replies

TDK
May 18, 2020

How are you measuring it? Note that 3.3V / 300uA is about 10kOhm. Is it possible you're measuring the current on a pullup/down resistor as well?

The PWR example doesn't look like it does anything fancy:

https://github.com/STMicroelectronics/STM32CubeH7/tree/master/Projects/NUCLEO-H743ZI/Examples/PWR/PWR_STANDBY

"If you feel a post has answered your question, please click ""Accept as Solution""."
teijo
teijoAuthor
Associate II
May 19, 2020

Thanks for the answer and example. Problem solver... it was pretty stupid mistake. Problem was that i have debugger attached to board(custom made). When removed current drops to ~20uA