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.

Problem With Function osal_nv_item_init()

Hello everyone:


I am using the TI Zigbee Stack 1.1.0 with a CC2530F2565 SoC. In the ZMain file, there is a function "zmain_ext_addr()" that determines the device's MAC Address. I can confirm, that the MAC has been written to the NV RAM and and can be retrieved properly.

However, on occasion, when the code executes the function (during power-up initialization):

result = osal_nv_item_init( ZCD_NV_EXTADDR, Z_EXTADDR_LEN, NULL ) to determine if a valid MAC Address exists in NV RAM, "result" will be "NV_ITEM_UNINIT" when I know for a fact the MAC has been initialized and the code can read it back.


What would cause the NV RAM to return "uninitialized" when I know it is initialized with valid data?

Thanks!