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.

NV_RESTORE option doesn't work in CC2530

I want to make the coordinator save child information in nv region.

So, I compile ZStack with NV_RESTORE option.

But it still cannot save the child information when power off.

And another strange thing is the coordinator's channel is always 12 although I changed it to 11 when compile with NV_RESTORE and NV_INIT.

There are something I should check besides NV_INIT and NV_RESTORE?

  • Hi Mr twoaten:

    If you enable both NV_INIT and NV_RESTORE in the Defined symbols. It will save the child information to the NV flash. When the coordinator start the network next time, you can check the child was assigned the same short address as before.

    If you enable the NV_INIT and NV_RESTORE, the channel information will also be saved in NV flash. When you use IAR to download the image, it will not erase the NV flash. So next time the coordinator start the network and read the channel information from NV flash.  You can use SmartRF Flash Programmer to down the hex file, it will erase the whole flash first, so it can choose the channel which you set in f8wConfig.cfg file.

    Thank you.