cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeL4 low power mode STOP2 with RTC

Jirka Pospis
Associate II

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Mohamed Aymen HZAMI
ST Employee

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.

View solution in original post

2 REPLIES 2
Mohamed Aymen HZAMI
ST Employee

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 II

Hello Mohamed,

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

Jirka