AnsweredAssumed Answered

STM32L0 consumption

Question asked by comoretto.xarion on Jan 17, 2018
Latest reply on Jan 19, 2018 by T J

Hi Guys

 

I'm using and STM32L011 MCU with HAL library and RTC running on a WakeUpTimer of 60seconds.

 

I enter stop mode in the following way:

 

void gotosleep() { 
   __HAL_RCC_PWR_CLK_ENABLE();
   HAL_PWREx_EnableUltraLowPower();
   HAL_PWREx_EnableFastWakeUp();
   HAL_PWR_EnterSTOPMode(PWR_LOWPOWERREGULATOR_ON, PWR_STOPENTRY_WFI);
   SystemClock_Config();

}

 

I wake the system up with EXTI and then return MCU to a current of 1uA in STOP mode by calling the above.

However when the WakeUp kicks in after 60 seconds, the consumption goes up to 2.5uA and never returns to the 1uA.

 

I have tried to re-init the RTC with MX_RTC_Init(); but it doesn't make any difference.

 

All I am doing is incrementing a variable in the HAL_RTCEx_WakeUpTimerEventCallback function, why would current stay high there after?

 

Thanks

 

X

Outcomes