Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/16/07 15:41
Read: times


 
#135118 - I wouldn't have thought about that.
Responding to: ???'s previous message
Thanks Erik and Jez,

I wouldn't have thought of that. Okay, eventually I would have, but probably only after encountering the problem and spending who knows how long trying to figure out what was going on.

So then is it safe to say that deciding where to reset the WDT should be done only after a careful analysis of possible failures? Or would you say it should only be reset in the main function?

It seems to me that it is also possible that you could end up having program control dragged away from main for an unanticipated duration leading to an unintended triggering of the WDT. Suppose, for example, you get three or four interrupts at the same time. The ยต-controller will prioritize them according to either programming or default design, but it could still be quite a bit longer than anticipated before getting back to the main function.

So shouldn't a good implementation of the WDT include reset commands in other locations as well? At least in locations that can't keep resetting the WDT perpetually and independently? Or maybe the solution would be to insure that the ISR operating on it's own does not provide sufficient time to keep the WDT operating (you know, make certain it takes too long).

Joe


List of 23 messages in thread
TopicAuthorDate
Where to kick the watchdog            01/01/70 00:00      
   Not being the consummate embedded guy, ...            01/01/70 00:00      
   Be kind to animals            01/01/70 00:00      
      I thought that as well, stray main loop =badness            01/01/70 00:00      
      Sort of            01/01/70 00:00      
   There are watchdogs and the there are WATCHDOGS            01/01/70 00:00      
   I doubt the usefulness of normal watchdog            01/01/70 00:00      
      watchdog IS expensive...            01/01/70 00:00      
         i suppose arguments for and against having a dog            01/01/70 00:00      
            bugs happen...            01/01/70 00:00      
               Not having quite the same budget as NASA            01/01/70 00:00      
                  the case for the internal dog            01/01/70 00:00      
   It's obvious I need to learn about WDT            01/01/70 00:00      
      the WD would not care, but if you reset it in e.g.            01/01/70 00:00      
      if your main function goes of to play in the weeds            01/01/70 00:00      
      I wouldn't have thought about that.            01/01/70 00:00      
         one more reason to KISS            01/01/70 00:00      
      there is nothing like "frozen" microcontroller...            01/01/70 00:00      
         You would be surprised...            01/01/70 00:00      
            Apply ESD to your micro and look what happens...            01/01/70 00:00      
            I am not surprised...            01/01/70 00:00      
               be reasonable            01/01/70 00:00      
                  therac            01/01/70 00:00      

Back to Subject List