I am currently working on RA2E1A9. After programming in production some data is stored at flash data memory.
Is it possible to field program my RA2E1 without getting the data memory erased.
Is it possible within my code that i disable the flash data memory to disable while reprogramming.
With J Flash it is possible but I am planning to enable this within my code.
The R_Flash_LP driver can be used to program the data flash on the RA2E1.
The dataflash is programmed in 8bit units on the RA2E1, and erased in 1KB units. An 8bit unit of dataflash has to be in the erased…
The dataflash is programmed in 8bit units on the RA2E1, and erased in 1KB units. An 8bit unit of dataflash has to be in the erased state before it can be re-programmed.
I understand your point but my concern is when I reprogram RA2E1 can the dataflash be retained?
The data-flash and code-flash are maintained in separate blocks of memory. From the device perspective code-flash can be independently programmed while not modifying the data-flash. From the tool perspective you will need to ensure that the tool does nothing with the data-flash when programming the code-flash (I have heard of some tools that erase the entire chip when downloading code).
Through tool I already tried and is working fine, I used J Flash tool.
But can it be done without using the tool?
Did you look at using the R_Flash_LP driver as Jeremy suggested? Will that do what you need to do?