Skip to main content
JulienD
Associate III
October 25, 2016
Question

L1 low power, not always the same consumption

  • October 25, 2016
  • 1 reply
  • 548 views
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
    This topic has been closed for replies.

    1 reply

    Nesrine M_O
    Associate
    October 26, 2016
    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-