The watchdog timer can be used to prevent system lockup; for example, when software becomes trapped in a deadlock.
In normal operation, the user restarts the watchdog at regular intervals before the timer counts down to zero.
In cases where the timer does reach zero and the watchdog is enabled, one or a combination of the following signals is
generated: a system reset, an interrupt, or an external signal. The watchdog timeout period and the duration of any output signals are programmable.
For more information, please refer Chapter 14: Timers and clocks in Zynqmp Trm which includes links to the official documentation and resource utilization.
The source code for the driver is included with the Vitis Unified Software Platform installation, as well as being available in the Xilinx Github repository.
The driver source code is organized into different folders. The table below shows the wdtps driver source organization.
|src||Driver source files|
|examples||Example applications that show how to use the driver features|
|doc||Provides the API and data structure details|
|data||Driver .tcl and .mdd file|
For a full list of features supported by this IP, please refer Chapter 14: Timers and clocks in Zynqmp Trm
Controller Features supported
- Configurable timeout interval in seconds.
- Reset on timeout can be selected.
Driver Supported Features
The Axi watchdog timer Standalone driver supports the below things.
All Controller Features supported.
Known Issues and Limitations
Example ApplicationsRefer to the driver examples directory for various example applications that exercise the different features of the driver. Each application is linked in the table below. The following sections describe the usage and expected output of the various applications. These example applications can be imported into the Vitis IDE from the Board Support Package settings tab.
Links to Examples
|Test name||Example source||Description|
|This example does a minimal test on the System Watchdog Timer device.|
|This example tests the functioning of the System WatchDog Timer driver in the polled mode|
|Interrupt||xwdtps_intr_example.c||This example tests the functioning of the System WatchDog Timer driver in the Interrupt mode|
Example Application Usage
WDT SelfTest Example Test
Successfully ran WDT SelfTest Example Test
WDT Polled Mode Example Test
Successfully ran WDT Polled Mode Example Test
WDT Interrupt Example Test
Successfully ran WDT Interrupt Example Test
Example Design Architecture