cancel
Showing results for 
Search instead for 
Did you mean: 

L1 low power, not always the same consumption

JulienD
Senior
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
1 REPLY 1
Nesrine M_O
Lead II
Posted on October 26, 2016 at 11:50

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-