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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/15/10 08:02
Read: times


 
Msg Score: +1
 +1 Good Answer/Helpful
#172482 - No much use
Responding to: ???'s previous message
You really don't have any big need/use for memory protection with a SPI-connected EEPROM.

If your code constains "unlock, write, lock", then a crashing application that does manage to reach the "write" code will quite likely manage to find the full sequence - including the unlock/lock.

Memory protection is most important for:
- making sure people doesn't accidentally erase the boot loader, if using programming tools to replace an application.
- making sure that a parallell-connected EEPROM with direct writes doesn't get damaged by a random write caused by a pointer error.

Remember that for SPI, it isn't enough to just manage to toggle the SPI signals.

If you do need protection, you are best off locking the access to the slave-select signal to the EEPROM.

Yes, if you do continuously perform EEPROM reads, and have bad signal integrity, then a bit error could convert a read operation into a write operation. But you should obviously make sure that you don't have bad signal integrity. Problems with the signals may convert a good write into a bad write (wrong address, or wrong data) or a good read into a bad read. None of which will be covered by any unlock/lock.

Yes, if the cells for protection are non-volatile, then it is likely that they support the same amount of write cycles as the rest of the memory cycles.

List of 10 messages in thread
TopicAuthorDate
EEPROM Protection            01/01/70 00:00      
   No much use            01/01/70 00:00      
      Think about this ...            01/01/70 00:00      
         Robust better than correct            01/01/70 00:00      
            You'll get no argument from me            01/01/70 00:00      
               Always a balance between cost and gains/losses            01/01/70 00:00      
                  No argument here ...            01/01/70 00:00      
            Shielding will not solve?            01/01/70 00:00      
               Magnetic fields are tricky to shield from            01/01/70 00:00      
   Reset performance of micro is important!!!            01/01/70 00:00      

Back to Subject List