Using AM335x watchdog


The watchdog on this device activates when a process opens the /dev/watchdog device. The process then must periodically "poke" the open device to keep resetting the watchdog. If the device is closed then the watchdog is disabled so the system only resets if the process hangs.

Qt Example

Attached is an example qt watchdog source that can be attached to a qt project. It includes a main if you define WATCHDOG_UT if you want to run it by itself. You can test it by kill -STOP <pid> the qwatchdog (or qt project) process and waiting 10 seconds.

Std C++ Example

Go to top
Add picture from clipboard (Maximum size: 1 GB)