2016-10-25 09:06 AM
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
2016-10-26 02:50 AM
Hi Julien,
•Could you please precise if you are using a custom board or an ST board?•Have you try the example under STM32L1 cube firmware package : STM32Cube_FW_L1_V1.6.0\Projects\STM32L152RE-Nucleo\Examples\PWR\PWR_STOP_RTC-Syrine-