nRF5 SDK v17.1.0
WDT Example

The WDT Example demonstrates the usage of the watchdog peripherals.

When the application starts, all LEDs are turned on one after the other. When all LEDs are lit, user input ("feeding the watchdog") is required to avoid system reset.

Pressing Button 1 triggers feeding the watchdog. The watchdog time-out is two seconds. Therefore, it should be fed at least once every two seconds.

You can find the source code and the project file of the example in the following folder: <InstallFolder>\examples\peripheral\wdt


Test the WDT Example application by performing the following steps:

  1. Compile and program the application.
  2. Observe that the system is starting up and the LEDs are turned on.
  3. Feed the watchdog by pressing Button 1.
    • If the watchdog is fed regularly, all LEDs remain turned on.
    • If the watchdog is not fed within two seconds, the watchdog timer will expire and the system will be reset.

Documentation feedback | Developer Zone | Subscribe | Updated