Power failure while writing data to EEPROM

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Power failure while writing data to EEPROM

跳至解决方案
2,400 次查看
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 项奖励
回复
1 解答
2,347 次查看
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

在原帖中查看解决方案

3 回复数
2,379 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

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

Regards,

Lukas

0 项奖励
回复
2,374 次查看
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 项奖励
回复
2,348 次查看
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