2022-06-19 06:42 PM
Hi all,
I am using stm32L552CE. When I enter stop mode or sleep mode, the current is too high (5mA for stop mode, 18mA for sleep mode).
/* Enable PWR clock */
__HAL_RCC_PWR_CLK_ENABLE();
HAL_Delay(5000);
printf("Go into stop mode\r\n");
/****** Suspend the Ticks before entering the STOP mode or else this can wake the device up **********/
HAL_SuspendTick();
/* Enter Stop Mode */
HAL_PWR_EnterSTOPMode(PWR_LOWPOWERREGULATOR_ON, PWR_STOPENTRY_WFI);
SystemClock_Config ();
HAL_ResumeTick();
printf("Wake up from stop mode\r\n");
Please help me. Thanks.
2022-06-20 06:45 AM
Hi @kkid.1 ,
there may be many reasons, for example GPIO load, something preventing LP mode entry, flag waking the MCU right after WFI... Have you tried the PWR examples from the STM32Cube package? These are very basic and should eliminate most common problems then.
BR,
J
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.
2022-06-22 12:18 AM
thanks for your reply. I just config 1 gpio for interrupt and 1 gpio for output. but I till get 13mA in sleep mode.
2022-11-05 01:44 PM