Power failure while writing data to EEPROM

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Power failure while writing data to EEPROM

Jump to solution
2,399 Views
MuhammedKoyuncu
Contributor II

Hello everyone

I am using an EEPROM(M95M01-A125) working with SPI communication.
I save my data every 500ms intervals.

1-) How long can the EEPROM last?
2-) What precautions can be taken in case of power failure during data recording?

 

 

MuhammedKoyuncu_0-1676719251925.png

Kind regards

0 Kudos
Reply
1 Solution
2,346 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Well, in case of unexpected power-down, the brownout handling needs to be managed on application level. Typically, the data integrity can be secured by CRC over certain chunks of data etc. It is also good idea to have default data/configuration stored in MCU flash which can be loaded to EEPROM in case of some failure.

Regards,

Lukas

View solution in original post

3 Replies
2,378 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

it seems this is a question rather for ST, not for NXP...

Regards,

Lukas

0 Kudos
Reply
2,373 Views
MuhammedKoyuncu
Contributor II
Hi,
The chip I gave was just an example.
I know it's generally used the same way.
What can we do in the software to avoid such a situation?
0 Kudos
Reply
2,347 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Well, in case of unexpected power-down, the brownout handling needs to be managed on application level. Typically, the data integrity can be secured by CRC over certain chunks of data etc. It is also good idea to have default data/configuration stored in MCU flash which can be loaded to EEPROM in case of some failure.

Regards,

Lukas