Skip to main content
kkid.1
Associate
June 20, 2022
Question

Stop mode in stm32L552

  • June 20, 2022
  • 3 replies
  • 1336 views

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.

This topic has been closed for replies.

3 replies

Bubbles
ST Employee
June 20, 2022

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
kkid.1Author
Associate
June 22, 2022

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