cancel
Showing results for 
Search instead for 
Did you mean: 

Power Wake UP

Error_Code
Associate II

Hi,

Im using stm32h7 mcu for my project.Which is an iot product.I need to use low power mode on it  i need to wake the mcu using an gpio external interrupt or either by an uart .Device is switch to some mode with a constant current consumption which is a bit higher value.There is only a 20mA difference with run mode on this state.

these are the code which is used to make mcu to low power mode.

ATOMIC_SET_BIT(huart1.Instance->CR3, USART_CR3_WUFIE);
WakeUpEventConfig.WakeUpEvent = UART_WAKEUP_ON_STARTBIT;
HAL_UARTEx_StopModeWakeUpSourceConfig(&huart1, WakeUpEventConfig);
HAL_UARTEx_EnableStopMode(&huart1);

HAL_SuspendTick();

HAL_PWREx_EnterSTOPMode(PWR_LOWPOWERREGULATOR_ON, PWR_STOPENTRY_WFE, PWR_D1_DOMAIN);

What should be the reason to have higher current consumption in this mode(im getting around 82mA constant in this mode and getting an increment on run mode to 100mA)?

1 REPLY 1
Sarra.S
ST Employee

Hello @Error_Code

 

Could you share the full configuration of your test:  SystemClock_Config(), VOS, flash memory status and all the parameters in this table.

Also, there is an example code using stop mode in the STM32H7CubeFW  following this path : STM32Cube\Repository\STM32CubeH7-master\Projects\STM32H747I-DISCO\Examples\PWR

 

Finally, make sure to set all unused pins to analog as shown in this article : How to minimize the power consumption in low power mode: An example using NUCLEO-F401RE board

 

Hope that helps!

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.