cancel
Showing results for 
Search instead for 
Did you mean: 

how get the remaining time of RTC timer

jinyi7016
Visitor

STM 32L 051 

use HAL_RTCEx_SetWakeUpTimer_IT() to wake up standby mode,it is work well.

when the wake up source is not RTC(maybe wkup pin  or NRST pin) ,how get the remaining time of RTC timer?

The value of HAL_RTCEx_GetWakeUpTimer() is not change.it is the value of HAL_RTCEx_SetWakeUpTimer_IT() set.

1 REPLY 1
Saket_Om
ST Employee

Hello @jinyi7016 

Please refer to the article How to use the RTC in STM32 microcontrollers for periodic wake-up and elapsed time calculation.

If your question is answered, please close this topic by clicking "Accept as Solution".

Thanks
Omar