--- In Eric Robishaw <> wrote:
>
> I have a thread that every 3 seconds calls a library function that attempts
> to feed it for up to 1000 tries, pauses 500ms, and makes the lib call again
> (3x total). If it fails at that point (3000 total attempts), I then
> shutdown my app ASAP. I also go ahead and restart the OS, just in case the
> watchdog fails to do so.
>
> I had mistakenly taken out the usleep(1) between each of the 1000 tries... I
> have put the usleep(1) back in and have now gone for about 18 hours without
> any mishaps. I think that should solve it. Its either that, or the fact
> that I'm now running from mtd instead of the sd card, which could have been
> the bigger issue.
>
> I still wish there were a bigger than 8s timeout available! I can see how a
> 250ms timeout would be useful in an embedded process, but with a full linux
> app, there's no practical use for it, unless you're running from read only
> filesystem. If there are only 4 bits available for the setting, I'd rather
> see {off, 2s, 8s, 16s}, or even {off, 2s, 16s, 32s} or maybe {off, 2s, 8s,
> 64s} than the current offering {off, 250ms, 2s, 8s}.
>
> Eric
I believe this is going to the AVR chip that TS uses, and I haven't seen the
details of what that chip does.
There is also a 32 bit WDT count-down timer built into the Marvel processor
chip, but that might be more involved to use. And I didn't see at a glance
what clock fed that counter, so it may not buy you much more than 8 Sec anyway
if it's operating at processor speed.
I guess I'd worry more about why serial communications (or SD writes, as you
suspect) causes such disruption.
regards, ......... Charlie
>
>
> On Fri, Sep 11, 2009 at 2:47 PM, PeterElliot <> wrote:
>
> >
> >
> > Hi Eric,
> >
> > How ofter are you feeding the watchdog?
> >
> > In my application I'm feeding the watchdog very frequently, with an 8s
> > timeout. I would need to miss hundreds/thousands of feeds one after another
> > to have an issue.
> >
> > Regards,
> >
> > PJE
> >
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|