Skip to main content
Jirka Pospis
Associate
Jan 22, 2019 10:59 AM UTC
Solved

STM32CubeL4 low power mode STOP2 with RTC

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.
Mohamed Aymen HZAMI
ST Employee
Jan 24, 2019 8:46 AM UTC

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
Jan 24, 2019 8:46 AM UTC

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
Jan 24, 2019 11:23 AM UTC

Hello Mohamed,

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

Jirka