I use the WDT function to ensure my device is reactive no matter what, and in case of an unforeseen error it will not get stuck.To achieve this I usually need to keep track of two execution threads: the main function and a timer interrupt that keeps track..
↧