Part Number: CC2640R2F
hello,
I have some issue with extflash read/write from specified address location.
If I have written in a specified location eg 0x75000 and then if i write again in another location which i had already written for eg 0x72000.
In such case the data written in location eg 0x75000 gets erased automatically.
How can I solve such problems of data getting erased in previous location once I write in new location?
My part of the code is below:
#define hum_loc 0x72000
ExtFlash_open();
ExtFlash_erase(hum_loc,2);
loc5=0;
for(o=0;o<5;o++)
{
ptr=&hum_stream_data[o];
writereturn=ExtFlash_write(loc5+hum_loc,1,ptr);
loc5++;
}
ExtFlash_close();
Everytime when i write and read i open and close extflash as above.
Can anyone help with this doubt.
Thanks in advance.