1.24 WDT Timeout

This is a WDT test application designed to demonstrate the communication timeout feature of the WDT application available under - apps/wdt/wdt_timeout.

Description

This example uses the WDT peripheral library and serves as a test application to demonstrate Timeout scenario application available at apps/wdt/wdt_timeout.

This code demonstrates how to use a Watchdog Timer to reset the system in case of a deadlock and how to handle GPIO interrupts for a switch press. The timer periodically toggles an LED and clears the WDT to prevent a reset, ensuring the system remains responsive unless a switch press causes a deliberate deadlock.

Downloading and Building the Application

To clone or download this application from Github, go to the main page of this repository and then click Clone button to clone this repository or download as zip file. This content can also be downloaded using content manager by following these instructions.

Path of the application within the repository is apps/wdt/wdt_timeout.

To build the application, refer to the following table and open the project using its IDE.

Project NameDescription
pic32ak_gc_curiosity.XMPLABX project for Curiosity Platform Development Board

Setting Up the Hardware

The following table shows the target hardware for the application projects.

Project NameDescription
pic32ak_gc_curiosity.XCuriosity Platform Development Board

Running the Application

  1. Build and Program the WDT application project using its IDE
  2. Build and Program the WDT application project using its IDE. Path of the WDT application within the repository is apps/wdt/wdt_timeout/firmware
  3. LED on curiosity board indicates the WDT Timeout
    • LED is turned ON when the WDT reaches Timeout Condition
    • LED is turned OFF when the WDT reaches Deadlock Condition
    Following table provides the Switch and LED names:
    BoardSwitch NameLED Name
    Curiosity Platform Development BoardS1LED1