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.

CC2652P: Prevent bootloader from reading flash

Part Number: CC2652P
Other Parts Discussed in Thread: CC2530

I am creating a custom device, based on CC2652, that will be connected to PC via UART to allow my application to work in the Zigbee network. I need to update this device's firmware over the UART (this device will be the coordinator or router). The bootloader is connected to the same UART, bootloader backdoor is enabled to allow flashing over UART.

So, I need to protect my firmware to be copied from the chip (there was such ability in CC2530). How can I prevent the bootloader from reading flash, keeping the ability to clear flash, write to it, calculate CRC32 for firmware integrity check?

Or do default bootloaders don't have such a feature and I need to implement my bootloader as part of the code, turning the default bootloader off?

  • Hello Valerii,

    The ROM bootloader, as discussed in SWRA466 and Chapter 10 of the TRM, only allows for the backdoor bootloader to be enabled and set the active level of the chosen bootload pin.  It does not configure what commands are available at a given time.  In order to customize such functionality, you must implement a flash bootloader.  You can use the following GitHub project as a starting point.

    Regards,
    Ryan