Hello,
I'm using the FEE driver to simulate an eeprom and I have a question concerning the power lost.
What happens if the power is lost during the write operation?
Thanks and best regards,
Aizkibel
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello,
I'm using the FEE driver to simulate an eeprom and I have a question concerning the power lost.
What happens if the power is lost during the write operation?
Thanks and best regards,
Aizkibel
Hello,
If there is a power failure before the sector is completely erased, the sector header is not programmed, in next initialization, the sector is added to the erase queue since the sector doesn't match with the expected sector header states (active, copy, ready for erase, empty).
For power failure during writing of a block,
Block is written in following way:
1. Block status is programmed as start program block.
if power failed here, in next initialization, writing of next block s shifted by 24 bytes.
2. Block number and block size are written.
if power failed here, then the writing of next block will happen after current block size+block header.
3. Write data of the block.
if power failed here, then the writing of next block will happen after current block size+block header.
4. After completion of writing of data, Checksum and address of previous block are written
if power failed here, then the writing of next block will happen after current block size+block header.
5. Block status is marked as Active.
if power failed here, then the writing of next block will happen after current block size+block header.
Hello Aizkibel,
No, the data blocks that have been written to the FEE should not be affected.