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...