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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/05/13 03:32
Read: times


 
#189314 - probable cause
Responding to: ???'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            01/01/70 00:00      
   another solution            01/01/70 00:00      
   The probabilities are low...            01/01/70 00:00      
      think about what happens when you add a finger            01/01/70 00:00      
         The point is ...            01/01/70 00:00      
            Yes ... the underlying issue is the flash ...             01/01/70 00:00      
               Out of my office, but...            01/01/70 00:00      
                  Don't think in Vcc, ESD or hum...            01/01/70 00:00      
   Apparently several C8051F2xx parts have the same pinout            01/01/70 00:00      
   Characteristic for in system programmable flash micros...            01/01/70 00:00      
      All too true ... sadly ...             01/01/70 00:00      
         Power-on slope rate...            01/01/70 00:00      
            Sorry, my post should be here, no up there...            01/01/70 00:00      
            Have you any basis for that rate?            01/01/70 00:00      
               Vdd ramp time            01/01/70 00:00      
               Some datasheets show numbers...            01/01/70 00:00      
                  Those aren't the "usual" 805x-core MCU's            01/01/70 00:00      
                     There aren't many "usual" 8051-cores anymore...            01/01/70 00:00      
                        How dangerous power ups can be...            01/01/70 00:00      
                           I believe it            01/01/70 00:00      
                              (dV/dt) examples            01/01/70 00:00      
                                 They don't know it either...            01/01/70 00:00      
                                    dV/dT etc             01/01/70 00:00      
                                       reset request...            01/01/70 00:00      
                                          That's what disturbs me greatly            01/01/70 00:00      
                                             It IS disturbing!            01/01/70 00:00      
                                                Where this began ... at least for me ...             01/01/70 00:00      
                                                   So, you took the hard road...            01/01/70 00:00      
                                                      We've all had that experience             01/01/70 00:00      
   probable cause            01/01/70 00:00      
      Brent, this is very nice            01/01/70 00:00      
         forum no longer down            01/01/70 00:00      
      Thank you!            01/01/70 00:00      

Back to Subject List