Skip to main content
Jirka Pospis
Associate
January 22, 2019
Solved

STM32CubeL4 low power mode STOP2 with RTC

  • January 22, 2019
  • 2 replies
  • 817 views

Hi, I'm using latest FW STM32Cube_FW_L4_V1.13.0 and the PWR_STOP2_RTC example seems to fail waking from sleep mode. It goes to sleep after 5 s alright and power consumption drops from cca 11 mA to 4 uA but after cca 33 s, as stated in readme, nothing happens, only power consumption rises a little bit to 141 uA. I tried two NUCLEO-L452RE boards and a custom PCB featuring STM32L462RE and the behavior was the same.

Could someone replicate this behavior as to confirm my observation or what can I do to get it working??

Thanks.

This topic has been closed for replies.
Best answer by Mohamed Aymen HZAMI

Hello Jirka,

You can try adding this line "__HAL_RTC_WAKEUPTIMER_EXTI_ENABLE_IT();" in the stm32l4xx_hal_rtc_ex.c on line 915 before this function "__HAL_RTC_WAKEUPTIMER_EXTI_ENABLE_RISING_EDGE();"

Please keep us informed about your progress on this issue.

Best Regards,

Mohamed Aymen.

2 replies

Mohamed Aymen HZAMI
ST Employee
January 24, 2019

Hello Jirka,

You can try adding this line "__HAL_RTC_WAKEUPTIMER_EXTI_ENABLE_IT();" in the stm32l4xx_hal_rtc_ex.c on line 915 before this function "__HAL_RTC_WAKEUPTIMER_EXTI_ENABLE_RISING_EDGE();"

Please keep us informed about your progress on this issue.

Best Regards,

Mohamed Aymen.

Jirka Pospis
Associate
January 24, 2019

Hello Mohamed,

great, it's working now. Thanks for the assistance.

Jirka