watchdog

Example Summary

This application demonstrates how to use the Watchdog driver.

Peripherals & Pin Assignments

When this project is built, the SysConfig tool will generate the TI-Driver configurations into the ti_drivers_config.c and ti_drivers_config.h files. Information on pins and resources used is present in both generated files. Additionally, the System Configuration file (*.syscfg) present in the project may be opened with SysConfig’s graphical user interface to determine pins and resources used.

BoosterPacks, Board Resources & Jumper Settings

For board specific jumper settings, resources and BoosterPack modifications, refer to the Board.html file.

If you’re using an IDE such as Code Composer Studio (CCS) or IAR, please refer to Board.html in your project directory for resources used and board-specific jumper settings.

The Board.html can also be found in your SDK installation:

    <SDK_INSTALL_DIR>/source/ti/boards/<BOARD>

Example Usage

  1. After loading the example application to the board, disconnect the device from the debug session. Then physically disconnect the device from power for 5 seconds. Reconnect the device and the application should run automatically. Some devices need to skip this power cycle step as this may cause the example application to fail. These devices should load the example and then disconnect the device from the debug session. The example application will then run automatically.

  2. The application turns on CONFIG_GPIO_LED_0 to indicate watchdog driver initialization is complete.

  3. CONFIG_GPIO_LED_0 is toggled periodically. With each toggle, the watchdog timer is cleared.

  4. Pressing CONFIG_GPIO_BUTTON_0 will enter an interrupt service routine which turns CONFIG_GPIO_LED_0 on and enters an infinite loop.

  5. The watchdog expires and the device is reset. For some devices, the application will restart.

Application Design Details

TI-RTOS:

FreeRTOS: