Using RTC Alarm as a 4 hour timer. Getting the current time using HAL RTC API, adding 4 to the current hours value and setting the alarm for that time by keeping the minutes as the current time. The Alarm interrupt is late by 2-3 minutes. Why?
The STM32F030CCT6 is put to Stop mode. It wakes up on getting the RTC ALARM interrupt which is being used as a 4 hour timer. (The wakeup timer of RTC is being used for another purpose hence this work around). On getting the interrupt, the MCU calcul...