[MinnowBoard] MinnowBoard Turbot Watchdog

John 'Warthog9' Hawley warthog9 at eaglescrag.net
Fri Apr 8 20:17:17 UTC 2016


Under Linux there's a few things that can do this for you.  Is the worry
more that the board is going to panic and crash, or that the program you
are running is going to break?

On 04/08/2016 01:07 PM, Ken Tait wrote:
> It would be difficult to implement this using a standard, hardware
> watchdog timer when running an OS like linux or windows. The reason is
> there is no clear place to reset the watchdog since many threads will be
> running. In an embedded system, the watchdog is usually only reset once,
> in the 'main'. With an OS there is no main....
> 
> A better approach might be to start a chron timer at startup (which will
> be the watchdog) ,which will trigger some kind of simple flag/operation
> to check if your app is still running. Maybe checking the pid of the app
> may be of some help. If your app is locked, then the chron app can
> gracefully take the OS down and force a physical reset. At least this
> way, any open files can get flushed and not screw up the inode tables.
> 
> just a thought
> Ken
> 
> _______________________________________________
> elinux-MinnowBoard mailing list
> elinux-MinnowBoard at lists.elinux.org
> http://lists.elinux.org/mailman/listinfo/elinux-minnowboard
> 



More information about the elinux-MinnowBoard mailing list