Hello all!
I want to be able to reset my system in case that something goes terribly wrong and it gets stuck at an infinite while for example or anything else unexpected happens(memory leaks etc.). The watchdog timer is a good solution but i also need to backup some values to an external memory before reseting. Is there a way of doing this with a kind of "watchdog timer ISR"? So that if a "watchdog interrupt " occurs i can backup my precious data and then reset the system.
From what i saw the watchdog timer DOES NOT offer the capability of doing anything else except resetting the system when something goes wrong. IF IT DOES please show me the way!!!!:)
Alternatively i was wondering if i could use a hardware timer in the place of the watchdog timer so that: when a system crash occurs i will be able to go to the timer ISR and from there backup my values and then reset my system? Or is it the watchodg timer the only timer that can recover/reset the system after a serious error?
It is very urgent for me cause i need to be 100% that my system wont ever stop functioning and wont lose the data calculated(if a system crash occurs)
P.S. I'm using Zstack 2.5.0
Thanks in advance
Nikos