This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Writing in CC2540 non volatile memory

I need to save data in non volatile memory.

It seems that I need to use the HalFlashWrite and HalFlashRead functions.

My questions are regarding flash page number and offset of the read method.

How to get those value?

Why flash number and offset are not required for the HalFlashWrite function ? 

In my example bellow, I try to write 6 bytes to address 0X2A80, what are the page and offset I need to use in the HalFlashRead function ?

//to write

uint8 temp[6] = {0x61,0x62,0x63,0x64,0x65,0x66};
HalFlashWrite(0x2A80,temp ,2);

//to read
uint8 readBuffer[8];
HalFlashRead(?, ?, readBuffer, 2);