1.. _task_wdt_sample:
2
3Task Watchdog Sample
4####################
5
6Overview
7********
8
9This sample allows to test the task watchdog subsystem.
10
11Building and Running
12********************
13
14It should be possible to build and run the task watchdog sample on almost any
15board. If a hardware watchdog is defined in the devicetree, it is used as a
16fallback. Otherwise the task watchdog will run independently.
17
18Building and Running for ST Nucleo L073RZ
19=========================================
20The sample can be built and executed for the
21:ref:`nucleo_l073rz_board` as follows:
22
23.. zephyr-app-commands::
24   :zephyr-app: samples/subsys/task_wdt
25   :board: nucleo_l073rz
26   :goals: build flash
27   :compact:
28
29For other boards just replace the board name.
30
31Sample output
32=============
33
34The following output is printed and continuously repeated (after each
35reset):
36
37.. code-block:: console
38
39   Task watchdog sample application.
40   Main thread still alive...
41   Control thread started.
42   Main thread still alive...
43   Main thread still alive...
44   Main thread still alive...
45   Control thread getting stuck...
46   Main thread still alive...
47   Task watchdog channel 1 callback, thread: control
48   Resetting device...
49