This example demonstrates user to trigger a watchdog interrupt if the software becomes trapped in a deadlock.
This package can be used with SAM V71 Xplained Ultra board.
When launched, this program reloads the watchdog at regular intervals before the timer underflow occurs, a LED is blinked. User could press button1 to make the program run in a infinite loop without reloading the watchdog. So a watchdog interrupt will be triggered, and "Enter watchdog interrupt." will print to terminal.
On the computer, open and configure a terminal application (e.g. HyperTerminal on Microsoft Windows) with these settings:
Start the application.
-- Watchdog with IRQ Interrupt Example xxx -- -- xxxxxx-xx -- Compiled: xxx xx xxxx xx:xx:xx --
The user could press the button1 to trigger a watchdog interrupt.