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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
Brent Wilson
02/04/13 20:32
Read: 889 times
Austin
USA


 
#189314 - probable cause
Responding to: Daniel Contarino's previous message
Daniel,

If your code on the 'F231 contains routines which write or erase flash memory, the most likely cause of the flash corruption you are seeing is due to "runt clocks" being fed to the CPU as your fingers disturb the crystal operation. If the minimum high/low times for the system clock are not met, the opcode read from flash will be incorrect, resulting in unpredictable behavior. Most commonly, branches are decoded as "something else", and program control falls through the instruction to the next function in the address map.

Many of the other responses are indicating power rise/fall and EMI behavior, all of which are additional flash corruption risks. However, because you are seeing the failures coincident with touching the crystal pins, I believe this is the root cause.

An easy test is to repeat your experiment running from the internal oscillator and see if the failure stays or goes away.

We have a pretty good appnote on flash corruption sources and mitigation techniques. Document URL's change all the time, so I recommend Googling: Silicon Labs AN201.

Best regards,

Brent

List of 33 messages in thread
TopicAuthorDate
C8051F231 experiences      Daniel Contarino      11/30/12 14:43      
   another solution      Erik Malund      11/30/12 15:11      
   The probabilities are low...      Daniel Contarino      11/30/12 18:34      
      think about what happens when you add a finger      Richard Erlacher      11/30/12 22:55      
         The point is ...      Daniel Contarino      12/01/12 03:08      
            Yes ... the underlying issue is the flash ...       Richard Erlacher      12/01/12 11:28      
               Out of my office, but...      Daniel Contarino      12/01/12 14:05      
                  Don't think in Vcc, ESD or hum...      Daniel Contarino      12/02/12 09:24      
   Apparently several C8051F2xx parts have the same pinout      Richard Erlacher      12/01/12 14:25      
   Characteristic for in system programmable flash micros...      Kai Klaas      12/01/12 18:25      
      All too true ... sadly ...       Richard Erlacher      12/01/12 20:13      
         Power-on slope rate...      Kai Klaas      12/02/12 05:31      
            Sorry, my post should be here, no up there...      Daniel Contarino      12/02/12 09:58      
            Have you any basis for that rate?      Richard Erlacher      12/02/12 10:15      
               Vdd ramp time      Maarten Brock      12/03/12 06:15      
               Some datasheets show numbers...      Kai Klaas      12/03/12 07:05      
                  Those aren't the "usual" 805x-core MCU's      Richard Erlacher      12/03/12 17:43      
                     There aren't many "usual" 8051-cores anymore...      Kai Klaas      12/03/12 18:13      
                        How dangerous power ups can be...      Kai Klaas      12/04/12 06:20      
                           I believe it      Richard Erlacher      12/04/12 08:59      
                              (dV/dt) examples      Jim Granville      12/04/12 13:14      
                                 They don't know it either...      Kai Klaas      12/04/12 18:49      
                                    dV/dT etc       Jim Granville      12/04/12 21:39      
                                       reset request...      Kai Klaas      12/05/12 06:21      
                                          That's what disturbs me greatly      Richard Erlacher      12/06/12 00:19      
                                             It IS disturbing!      Kai Klaas      12/06/12 08:02      
                                                Where this began ... at least for me ...       Richard Erlacher      12/06/12 09:43      
                                                   So, you took the hard road...      Kai Klaas      12/06/12 10:41      
                                                      We've all had that experience       Richard Erlacher      12/06/12 16:23      
   probable cause      Brent Wilson      02/04/13 20:32      
      Brent, this is very nice      Erik Malund      02/05/13 06:38      
         forum no longer down      Maarten Brock      02/05/13 07:33      
      Thank you!      Daniel Contarino      02/05/13 15:04      

Back to Subject List