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.

CC2530 Zigbee stack Flash Routine a stored data Erased after a 2 restart.

Other Parts Discussed in Thread: CC2530, Z-STACK

Hi All,

I have been trying out to access the Flash memory of the CC2530 SOC. If i restart the device 1st time data available in the flash if i do it in 2nd time it don't have the data internal flash. I can able to write and read the operation perfectly.

Can you please suggest me if i am writing a data is a correct page or else it could be wrong.

I am using the zigbee stack: ZStack-CC2530-2.5.1a

Below are my address in the Flash

#define FLASH_PAGE 121  give the Flash page number
#define OFFSET 0
#define OSAL_NV_WORD_SIZE 4
#define ch_num_bytes 4

 

Thank you.

Best regards

Siva J

  • Hi,
    if you need to write the flash at specific addresses, please use HalFlashWrite() API.
    It is used by the NV driver and it is proven.
    Please remember once the data in the flash is written (ie 1 --> 0 transaction), then the only way to re-write at the same location is to first erase the flash page.
    Please also remember the flash pages are 2K on CC2530 and the flash has an endurance of 20K cycles of program/erase.
    Please refer to chpater 6 in www.ti.com/.../swru191
    Z-Stack 2.5.1a SDK is 3 years old and I suggest you work with latest Z-Stack Home 1.2.1 SDK.

    Thanks,
    TheDarkSide
  • HI,

    Thank you so much
    It is work for me now. I have been used for osal_nv_write() and osal_nv_read().


    Best regards
    Siva J