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.

CC2651R3: Can application enable/disable flash readout protection and mass erase

Part Number: CC2651R3

Hi,

We want to implement the flash readout protection to avoid reading FW data and prohibiting mass erase.

Is there a mechanism to do this via application or only way is to configure the relevant bits in CCFG at compile time:

//Disabling JTAG read with Erase disable

#define SET_CCFG_CCFG_TAP_DAP_0_TEST_TAP_ENABLE    0x00
#define SET_CCFG_CCFG_TAP_DAP_0_CPU_DAP_ENABLE     0x00

In this secure boot reference guide(secure boot) , it is mentioned that there is a mechanism to configure the CCFG parameters also by the application via flash programming APIs. How is this done and where can I find the details?

  

  • Hi Kaiwaiya,

    The process is similar to what Fredrik suggested in the relevant thread.  You would need to reference the COM_TI_SIMPLELINK_CC13XX_CC26XX_SDK_INSTALL_DIR\source\ti\common\cc26xx\flash_interface\internal\flash_interface_int_rtos_NVS.c APIs in order to read/erase/write the last page of flash.  However, run-time changes are not recommended as an unfinished CCFG write procedure could result in unexpected and irreversible device access settings.

    Regards,
    Ryan