Reinitialize RTC upon watchdog reset
In my application, I have a watchdog timer that resets every 45 seconds if not fed. I also have an RTC. The application records sensor samples, along with timestamps from the RTC.
Problem is, when there is a watchdog reset, the RTC is re-initialized to default date and time. This messes up the sample/timestamp collection.
- Are the RTC time/date values still maintained even when there is a watchdog reset?
- Would it make sense to skip setting the default date/time when a watchdog reset has been detected?
Thanks.
