I can't seem to find any status register that can be read after a reset to ascertain whether the reset was caused by a watchdog timeout. I have known other processors to provide something like this, does the C5505 not offer this?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
I can't seem to find any status register that can be read after a reset to ascertain whether the reset was caused by a watchdog timeout. I have known other processors to provide something like this, does the C5505 not offer this?
Hello,
You can use the Timer Interrupt Aggregation Flag Register (TIAFR) to find out which Timer generated the single Timer CPU interrupt signal. Refer to section 6.14 of the Timer/Watchdog Timer user guide.
Regards,
Mugdha
Hi Mugdha,
Are you suggesting using a timer in conjunction with the watchdog or instead of? I really do want to use the watchdog because it covers more failure cases than a simple timer can (e.g. a timer will not work if the timer's interrupt handler code becomes overwritten by a stray pointer). In any case, it appears that the hard reset that follows the watchdog timeout resets all registers leaving no indication behind that a watchdog timeout occured. I had hoped that a status bit could let us know so we could keep track of how often the firmware locked/failed.
Regards,
Rich
Rich,
You are right. I don't think there is an easy way to find out if the reset was caused by the watchdog timer since all registers are reset.
-Mugdha