<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 2011-October-26, at 4:34 PM, Angelo Fraietta wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
<meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
<div bgcolor="#FFFFFF" text="#000000">
On 21/09/2011 7:56 PM, Eduardo Esteban wrote:
<blockquote cite="mid:CAEF-Dj_mJ+9ruAS10Nyk69OpHLn9YY-g848KZE+kcn75jdgKoQ@mail.gmail.com" type="cite">
<div>What I am trying to do is the following:</div>
<div> </div>
<font size="1"><p><font size="2">Obtain the Timeout;</font></p><p><font size="2">Kick the OBC watchdog.</font></p>
</font><font size="1"><p><font size="2">Set the OBC watchdog's timeout. </font></p>
<font size="2">
</font><p><font size="2">Stops the Watchdog resetting from the OBSW</font><font size="1">.</font></p>
</font>
<div><font size="1"><p align="LEFT"> <font size="2">Triggers a SW reset.</font></p><div>
<br class="webkit-block-placeholder"></div>
</font></div>
</blockquote>
You can create a task for your your watchdog and have it wait for an
event for the period of watchdog timeout and do it in a loop. If the
event times out do your software reset. <br>
</div></blockquote><br></div><div>I have each task set a flag in the watchdog task each time it runs. </div><div>For tasks that run on demand, the watchdog task will send them a message periodically, and give them time to run.</div><div>For each task the watchdog makes sure that the flag has been set, then it clears it.</div><div><br></div><div>If any of the flags did not get set, the task is declared dead and the hardware watchdog does not get strobed, the system reboots.</div><br></body></html>