AnsweredAssumed Answered

L1 low power, not always the same consumption

Question asked by JulienD on Oct 25, 2016
Latest reply on Oct 26, 2016 by Nesrine M
Hi,

In my quest of low power, I'm not that far from my needs but there's still something
I don't understand:

RTC is clocked by LSI, while SYSclock is clocked by HSI.

__HAL_RTC_CLEAR_FLAG(RTC_EXTI_LINE_WAKEUPTIMER_EVENT);
HAL_RTCEx_SetWakeUpTimer_IT(&RTCHandle, 0x2616, RTC_WAKEUPCLOCK_RTCCLK_DIV16);
HAL_PWR_EnterSTOPMode(PWR_LOWPOWERREGULATOR_ON, PWR_SLEEPENTRY_WFE);
 
__HAL_RTC_CLEAR_FLAG(RTC_EXTI_LINE_WAKEUPTIMER_EVENT);
HAL_RTCEx_SetWakeUpTimer_IT(&RTCHandle, 0x2616, RTC_WAKEUPCLOCK_RTCCLK_DIV16);
HAL_PWR_EnterSTOPMode(PWR_LOWPOWERREGULATOR_ON, PWR_SLEEPENTRY_WFE);


This is the same code called twice. During the first one, consumption is 3µA, during the
second ( and all following ) , it's 5µA.

What could happen?

Regards
Julien

Outcomes