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.

RTOS/CC2640R2F: How to enable code protection on CC2640?

Part Number: CC2640R2F


Tool/software: TI-RTOS

Hello,

We want to enable code protection on CC2640R2. I'm looking for it on SWCU117, but there are some questions.

I need to disable JTAG for prevent code reading?

Are there any way to prevent only the code read?

Any example to explain how I'm configure for this?


  • Hello Marcelo,

    Section 9.1 Customer Configuration (CCFG) in the SWCU117 TRM (rev H cited) details the recommended steps to configure a device for final production. As noted in the aforementioned section, this involves disabling the TAP/DAP (JTAG) and ROM Bootloader which will prevent reading of code contents from external interfaces. As also stated in this section, disabling the Mass Erase function (ERASE_CONF:CHIP_ERASE_DIS_N register) will prevent the flash from ever being erased externally.

    These registers can be configured in the ccfg.c file. See the BLE SW User Guide for more details.

    Best wishes
  • These registers can be changed on a BLE service for using the backdoor pin from Bootloader?

    I can disable JTAG and ROM Bootloader to prevent reading, but I need to update the firmware.
  • No, they must be configured in the firmware at build time since the ROM reads them when the MCU is powered up or reset.

    If you need to update your firmware, you can do this via OAD or write your own serial flash loader. The key here is your firmware must pull in the new image vs. using the JTAG or ROM bootloader to program the image.

    Best wishes