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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/11/10 14:52
Read: times


 
#173992 - Assume nothing! Be very meticulous in your observations
Responding to: ???'s previous message
Baptiste Pomechicot said:
I'll test to add a variable and set it in each function with a unique code in order to check the value after a freeze / reset.

About the watchdog : I'm sure to not feed the watchdog in an infinite loop. I activate it on the first instruction of my main() and I never disable it in my soft.

I made a test with EA :
I set EA to '0' just before entering a while (1), but the watchdog still works

The purpose of the /EA signal is to tell the MCU whether (usually after the next RESET) you want the MCU to use external, when /EA's tied LOW, or internal, when /EA is tied HIGH, code space. I don't understand how you can determine anything at all if there's no external non-volatile memory of some sort.

About the answer of Kai Klaas yesterday, The fact I shunt the /WE and the P4.0 PIN is not realy a problem because the micro start well. It's during execution that it freezes.

The chip is used on a board that is used for a weather sensor. The board is power on and works all the time.
So, I've got some board that never freeze (since 4 years) and others that freeze sometimes (about once a week).

It's realy random...

I'd guess it's not so random at all. I'd guess that it's caused by some specific characteristic (a) of the boards that "freeze" or (b) of the hardware/software design that's implemented in them. I'd pay particularly close attention to what Kai Klass has said, since attaching any pin to control inputs can cause unanticipated effects. The MCU "does things" to the port pins on RESET. You should know EXACTLY what happens on those control pins during and immediately after a RESET. For that, you may need a logic analyzer.

RE


List of 55 messages in thread
TopicAuthorDate
Micro freeze            01/01/70 00:00      
   I don't understant how micro can freeze            01/01/70 00:00      
   Hang-up or lock-up?            01/01/70 00:00      
   details            01/01/70 00:00      
      You didn't answer the question            01/01/70 00:00      
      Oops, no good at all!            01/01/70 00:00      
      I think what Kai meant was /EA not EW            01/01/70 00:00      
         No, I meant the /EW pin            01/01/70 00:00      
   RST Watchdog            01/01/70 00:00      
      Add diagnostics            01/01/70 00:00      
         That's a good plan ... IF ...            01/01/70 00:00      
            Useful, but not essential            01/01/70 00:00      
               His problem, however ...            01/01/70 00:00      
                  Sorry - missing the point            01/01/70 00:00      
   more details            01/01/70 00:00      
      Don't jump to conclusions            01/01/70 00:00      
         test suggestions            01/01/70 00:00      
            Unlikely to be "random"            01/01/70 00:00      
            Assume nothing! Be very meticulous in your observations            01/01/70 00:00      
               somes evidences            01/01/70 00:00      
                  /EW not /WE!            01/01/70 00:00      
                     /EW not /WE            01/01/70 00:00      
                        that was my confusion, not yours ...            01/01/70 00:00      
                           The Watchdog does not "find" anything            01/01/70 00:00      
                              feed the dog            01/01/70 00:00      
                                 watchdog management            01/01/70 00:00      
                                 Many ideas out there . . .            01/01/70 00:00      
                              Certainly, but it responds to a missing "kick"            01/01/70 00:00      
                                 True, but            01/01/70 00:00      
                                    One simple diagnostic tool            01/01/70 00:00      
                     Oops! Begging your pardon ...            01/01/70 00:00      
   logic analyzer            01/01/70 00:00      
      Could be tricky...            01/01/70 00:00      
         someone doesn't want him to fix it            01/01/70 00:00      
            It isn't clear...            01/01/70 00:00      
         "potted" = what?            01/01/70 00:00      
            got it: "potted" = "drowned in resin"            01/01/70 00:00      
               potting SMD components            01/01/70 00:00      
   Limit Watchdog feed            01/01/70 00:00      
      I would like to write a more suitable code for this algorith            01/01/70 00:00      
         Keil example            01/01/70 00:00      
            The point is...            01/01/70 00:00      
      feed the watchdog in main loop            01/01/70 00:00      
         Non blocking loop            01/01/70 00:00      
            nothing impossible            01/01/70 00:00      
               Breaks on vacation?            01/01/70 00:00      
                  oops            01/01/70 00:00      
            Not at all!            01/01/70 00:00      
               big enought            01/01/70 00:00      
                  Both!            01/01/70 00:00      
                     re both            01/01/70 00:00      
                        You misunderstand            01/01/70 00:00      
         where to feed watchdog            01/01/70 00:00      
            You misunderstand            01/01/70 00:00      
            Watchdog kick in interrupts can often fail badly            01/01/70 00:00      

Back to Subject List