I am using R5F104BC microcontroller of RL78/G14 family.
software is CS+ for CC.
I have generated files of pfdl from code generator and also added pfdl.h, pfdl.inc, pfdl_types.h and pfdl.lib files from "RL78 Data Flash Access Library Type T04" to program.
My program read and write operation works well when I write value to data flash. But when I tried to rewrite at same address, it not rewritten to that address.
Please suggest me solution how can I rewrite values to same location of data flash memory?
In reply to Mike Clodfelter:
In reply to yogesh:
In reply to Murtaza Poonawala:
As explain above if you want to save values of variable x,y,z to data flash then follow this:- -> Save values of x,y,z to location 0x00, 0x01, 0x02 -> If you want to rewrite value of y to same location then take values from 0x00, 0x01, 0x02 and save it to temporary variable a,b,c -> Erase total block -> change value of b with y -> Then rewrite all temporary value of a,b,c to location 0x00, 0x01, 0x02 here a=x, b=y, c=z
It will take some program memory but problem get solved try this :)