EEPROM emulation

Hello Team,

Here I'm trying to store state of on-board LEDs i.e., LED1 & LED2. using EEPROM emulation on target board RL78/F13  QB-R5F10BMG-TB .

using below PDF, I was able to store and read data properly .

But, when I power-cycled the board will give programmed time initial values not the last stored one before power off.

I supposed to be its issue of not properly configured "Section setting".

So, Could you please help to solve this problem. 

r20ut2645ej0102_rl78.pdf

  • I was able to store and read data properly .

    But, when I power-cycled the board will give programmed time initial values not the last stored one before power off.

    If you were able to successfully write to the EEL and read it back, it would appear that the EEL is working.  It sounds like the initialization logic is perhaps re-formatting the EEL and causing initial values to be written?

    Formatting of the EEL should only occur when the pool is determined to be inconsistent after startup, and I would hesitate to include such functionality in a production device, as memory should never be inconsistent unless there is a major failure, upon which condition the device should be analyzed for the cause of the failure which would preferably include analysis of data contained in the data-flash.