cancel
Showing results for 
Search instead for 
Did you mean: 

Stop mode in stm32L552

kkid.1
Associate

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.

3 REPLIES 3
Bubbles
ST Employee

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.

kkid.1
Associate

thanks for your reply. I just config 1 gpio for interrupt and 1 gpio for output. but I till get 13mA in sleep mode.