Question
L1 low power, not always the same consumption
Posted on October 25, 2016 at 18:06
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