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.

MSPM0L2227: When implementing data storage with M0 EEPROM Emulation sample code, is it possible to run in the background?

Expert 2570 points
Part Number: MSPM0L2227

Tool/software:

Hi All,

I have a question about how to use EEPROM sample code.
The customer is currently using Renesas RL78, so Data Flash is available.
The question is whether background operations are possible when implementing data storage using M0 EEPROM Emulation software.
Is it possible to store arbitrary variables using EEPROM emulation without stopping the main control?

Additionally, it states that Type A can store 64 bytes, 128 bytes, or 256 bytes,
and Type B can store 16-bit or 32-bit data.

The customer wishes to store data of 16-byte or 32-byte sizes. Is it possible to freely change the data size? If not, please advise on a method to store data of 16-byte or 32-byte sizes.
Additionally, the RL78 uses 2 kB of Data Flash.
Furthermore, the header size is reportedly large.

Please specify the maximum capacity of Data Flash that can be handled by the MSPM0L2227.

Best Regards, 

Ito

  • Hi Ito,

    Is it possible to store arbitrary variables using EEPROM emulation without stopping the main control?

    If want this features, we should select the device which has dual bank, or additional data bank device.

    As for L2227, it is with dual bank, each of them is 64K.

    So, you can use bank0 for main control application code, and bank1 for the EEPROM. At this moment, the EEPROM can be processed simultaneously with main control. As they are set in seperate bank, flash operation will not impact code execution.

    Otherwise, we recommend use polling method for flash operation which will impact the main control. Then any size of the main flash could be used for data flash.

    The customer wishes to store data of 16-byte or 32-byte sizes. Is it possible to freely change the data size? If not, please advise on a method to store data of 16-byte or 32-byte sizes.

    Type A  requires to be divisible by 1024. So, 16 or 32 byte size could be used.

    B.R.

    Sal