HELLO , I NEED TO STORE A VARIBLE IN DATAFLASH OR EEPROM OF RL78G11 OF 16 PIN , WHICH CAN RETAINS ITS VALUE AFTER POWER ON OFF
THANK YOU
Hello Vishu,
Can you tell more about your problem? Which libraries did you try? Do they act the same? What means "not executed properly": does it give an error, or just writes incorrect data, or does the…
For your device R5F1054 it is needed that you reserve a self-RAM area for flash library so the RAM used by your application does not overwrite the necessary self-RAM area. As shown on https://www.renesas…
You can use one of the available Data Flash libraries https://www.renesas.com/us/en/software-tool/data-flash-libraries
As RL78/G11 is a low-end device it doesn't support the T01 driver but T02 or T04 should work fine.
Kind regards,
Sergey
If this response, or one provided by another user, answers your question, please verify the answer. Thank you!
Renesas Engineering Community Moderatorhttps://community.renesas.com/https://academy.renesas.com/https://en-support.renesas.com/knowledgeBase/
The data-flash of the RL78 devices can be used like EEPROM with the appropriate emulation software library. Whether you use direct writes to the data-flash memory or the EEPROM emulation is dependent on your software requirements. Keep in mind that the data-flash must be erased in 1KB blocks (there are only 2-blocks on this device), and can be written with 1-byte granularity. EEPROM emulation will provide wear-leveling to increase the endurance, and also provides resistance against loss of data due to resets or power failure by keeping the old data in the memory blocks.
thanks for reply ,T02 or T04 not working for writing data flsh
blankchq and erase works but write command not executes properly at address f1000
Can you tell more about your problem? Which libraries did you try? Do they act the same? What means "not executed properly": does it give an error, or just writes incorrect data, or does the program hang while write attempting? The more information you provide, the easier will be for us to help you to solve your issue.
thank you for reply,
i am using T04 library, when i am writes the memory it writes garbage data , it automatically clears all flags(that should retain to write) before write , so it writes garbage value at memory , i am following open>>blank check>>erase>>write>>verify sequence ..what should be the flow of program
What is the part number of the RL78/G11 device ?
r5f1054
For your device R5F1054 it is needed that you reserve a self-RAM area for flash library so the RAM used by your application does not overwrite the necessary self-RAM area. As shown on https://www.renesas.com/us/en/document/mat/rl78-family-self-ram-list-flash-self-programming-library-rev305 the range of this self-RAM area for using FDL T04 in your device is FF900H - FF987H.
In order to allocate only the needed self-RAM size of FDL, which is 136 bytes, select 'None' in the below setting and add these lines in your code:
#pragma address self_ram_area = 0xFF900 volatile char self_ram_area[136];
Regards
thank you sir.... working all set