| nRF5 SDK v12.0.0 |

Choose documentation: | nRF5 SDK | S130 SoftDevice API | S132 SoftDevice API | S212 SoftDevice API | S332 SoftDevice API

All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
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`

# Testing

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.