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: CC2530 Encrypted and unencrypted versions upgrade to each other

Part Number: CC2530
Other Parts Discussed in Thread: Z-STACK

Because our products need to support both encrypted and unencrypted versions, So we want to upgrade between the two versions.

With NV_RESTORY enabled, the whole NV area is not erased when upgrading unencrypted versions to  the encrypted versions., it is found that we cannot achieve our goal. The encrypted version cannot implement confidentiality.

  But if the whole NV area is  erased when upgrading unencrypted versions to  the encrypted versions. The encrypted versions can be used normally.

Because We do not want to be caused  the saved network parametes lost by upgrading the firmware version,we  can't earse the whole nv area in the upgrade process.

Whether we only need to erase NV zones related to network security? if so ,How to achieve througing programming?

best regards!

  • Hi haipeng xiong,

    Are you referring to application NVM as compared to network layer NVM? Use osal_nv_delete, existing NV IDs are saved in ZComDef.h whereas application IDs are the range of 0x0401 to 0x0FFF as initialized by the user. Refer to the Z-Stack Developer's Guide and OSAL API.

    Regards,
    Ryan
  • Version is composed of two parts, boot and app; In the BOOT stage, upgrade the APP; Therefore, it is not possible to know NV items during the upgrade process. It can only be erased in page units;
    so i want to know that whether network security-related nv areas are all on one page, and whether we only need to erase NV zones related to network security?
    Further, because nv occupies the 121-127 pages, which page is it?
  • All NV item locations are dependent on the application as they are created in memory on an as-needed basis. You will not be able to delete only security NV items based on memory pages, instead your bootloader stage will need to delete the NV items desired before upgrading the app.

    Regards,
    Ryan