I have an issue with my Sara AFF boards. They sporadically freeze execution.
The boards work as battery-powered trackers and they keep freeze randomly.
The boards wake up every minute by with RTC alarm and go back to sleep.
the library used is rtczero for the timer wakeup interrupt and also use rtc.standbyMode() for device sleep
SCB->SCR |= SCB_SCR_SLEEPDEEP_Msk;
I have not enabled WDT.
Are you aware of any issues related to the device not waking up from sleep sporadically?
I have seen this as a known issue for samd21. SAMD21 (SAMD21E16B) sporadically locks up and does not wake up from STANDBY sleep mode | AVR Freaks
Can I debug this by enabling try-catch blocks in order to deal with exceptions? If yes can you send a sample code the purpose of using exception handling for debugging is to determine is this is firmware related or not.
Thank you in advance,