Hi,
I am using CC2541f256.
I want to store my application data in non-volatile memory
I tried to use osal_snv_write() and osal_snv_read() function but it doesn't work.
My code is like this :
First I had written data in memory as shown below
Flash_Data[0] = 0x53;
Flash_Data[1] = 0x4D;
Flash_Data[2] = 0x49;
Flash_Data[3] = 0x54;
VOID osal_snv_write( 0x83, 4 , Flash_Data );
VOID osal_snv_read( 0x83, sizeof( uint32 ), Flash_Data );
after writing data , if i read it i am getting correct value .
Now i reset the system and commented VOID osal_snv_write( 0x83, 4 , Flash_Data ) function
so my code is like this
VOID osal_snv_read( 0x83, sizeof( uint32 ), Flash_Data );
but i getting all 0x00 instead of 0x53,0x4D,0x49,0x54
can anyone tell me how to write data in NV memory ?