Project

General

Profile

Using AM335x watchdog

Reference: http://processors.wiki.ti.com/index.php/AM335x_PSP_WDT_Driver_User_Guide

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

https://support.criticallink.com/redmine/projects/arm9-platforms/wiki/Using_Watchdog#Std-C-Example

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