Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


SCU Watchdog Standalone driver


Introduction

This page gives an overview of scu watchdog timer driver which is available as part of the Xilinx Vivado and SDK distribution.

Source path for the driver:
https://github.com/Xilinx/embeddedsw/tree/master/XilinxProcessorIPLib/drivers/scuwdt

Driver source code is organized into different folders. Below diagram shows the scuwdt driver source organization

scuwdt
|
-- Doc - Provides the API and data structure details
|
- Examples - Reference application to show how to use the driver APIs and calling sequence
|
- Source - Driver source files

Features Supported

Controller/Driver features supported

  • 32-bit counter that generates an interrupt when it reaches zero
  • 8-bit prescaler to enable better control of the interrupt period
  • Configurable single-shot or auto-reload modes
  • Configurable starting values for the counter
  • can be used in watchdog mode or timer mode

Known issues and Limitations

None

Test cases

Polled mode example

https://github.com/Xilinx/embeddedsw/blob/master/XilinxProcessorIPLib/drivers/scuwdt/examples/xscuwdt_polled_example.c

This test contains a design example using the Xilinx SCU Private Watchdog Timer driver (XScuWdt) and hardware device in watchdog mode. It
illustrates how to initialize the watchdog device and restart it periodially in polling mode to avoid the assertion of the WDRESETREQ pin.

Output
Code Block
themeMidnight
SCU WDT Polled Mode Example Test
Successfully ran SCU WDT Polled Mode Example Test

Interrupt mode example

https://github.com/Xilinx/embeddedsw/blob/master/XilinxProcessorIPLib/drivers/scuwdt/examples/xscuwdt_intr_example.c

This file contains a design example using the Xilinx SCU Private Watchdog Timer driver (XScuWdt) and hardware in Timer mode using interrupts. It illustrates
how to use Watchdog device in the timer mode.

Output
Code Block
themeMidnight
SCU WDT Interrupt Example Test
Successfully ran SCU WDT Interrupt Example Test

Changelog

2020.1

  • None

2017.3

  • None

2017.4

  • None

2018.1

  • None

2018.2

  • None

2018.3

  • None

2019.1

  • None

2019.2

  • None

2020.1

  • None

2020.2

  • summary
    • scuwdt: Support parallel make and incremental builds

  • Commits
    • bb6dee scuwdt: Support parallel make and incremental builds


Related Links