跳至主要內容
Knowledgebase
Home
Renesas Electronics Taiwan - Knowledgebase

What does library do with data being written when power is interrupted?

Latest Updated:04/23/2014

Question:

What does a library do with the data being written when power is interrupted while data are being written to the data flash memory (by the EEL_EXECUTE function with EEL_CMD_WRITE command) with EEPROM Emulation Library Pack02 for the RL78 family of MCUs?

Answer:

When interruption of power prevents writing being completed to the End of Record (EoR) field, user data corresponding to the EoR field where writing was incomplete are ignored from EEPROM Emulation Library Pack02.
Since writing to the EoR field is incomplete, EEL_ERR_POOL_FULL (pool full error) is returned when the EEL_Execute function with EEL_CMD_WRITE command is executed again after interruption of power. The writing process can be continued by executing the EEL_Execute function with EEL_CMD_REFRESH command and then executing the EEL_Execute function with EEL_CMD_WRITE command again.
Suitable Products
Data Flash Libraries