[En-Nut-Discussion] Watchdog

Mgr. Pavel Chromy chromy at asix.cz
Fri Jul 11 11:01:17 CEST 2003


Friday, July 11, 2003, 9:42:40 AM Hugo wrote:

I solved this by creating several "software" watchdogs - one for each
thread. Each thread writes zero to its watchdog (global variable)
time to time and there is a special thread increasing these variables and
reseting hw watchdog unless any of other threads gets stuck.
So all threads except watchdog thread are being watched by software
watchdog and watchdog thread itself is watched by hw watchdog.

Mgr. Pavel Chromy
ASIX s.r.o.
Staropramenna 4
150 00 Praha 5

> You should put it into a routine that your application repeats every once a
> while. Sense of the watchdog to restart the system when it hangs. So a new
> task for triggering the watchdog is not a good idea, because maybe your
> application gets stuck but the watchdog task triggers the watchdog anyway.
> So the system stucks forever.

> By
> Thorsten

> ----- Original Message -----
> From: Gediminas Simanskis <gedas at post.tvk.lt>
> To: <en-nut-discussion at egnite.de>
> Sent: Friday, July 11, 2003 9:20 AM
> Subject: [En-Nut-Discussion] Watchdog


> Hello,

> I have faced common problem - where better to place watchdog reset routine?
> Is it better to create new task with high priority or to place it in idle
> task?




More information about the En-Nut-Discussion mailing list