Forum Discussion
Altera_Forum
Honored Contributor
16 years agoCounting Watchdog Resets
Hello I have a NIOS 2 application that has an Interval timer configured as a Watchdog timer. This works as expected in my code, causing a CPU reset as appropriate for the circumstances. Howeve...
Altera_Forum
Honored Contributor
16 years ago --- Quote Start --- Hello I have a NIOS 2 application that has an Interval timer configured as a Watchdog timer. This works as expected in my code, causing a CPU reset as appropriate for the circumstances. However, I would like to monitor the occurances of the timeouts by incrementing a counter whenever this happens. I have been unable to find a way to distinguish as normal reset from a watchdog reset. Can anyone suggest a way that this can be done?? Thank you for your help. --- Quote End --- Hi there Since you have your watchdog worked fine, I have a question about the Watchdog. I configured the timer as a watchdog. I was trying to use "IOWR(WATCHDOG_BASE, 1, 0xffff);" to start the watchdog. But it did not trigger the CPU reset. Can you please give me some advise?