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.

CC2340R5: Will .ccfgSector-bit erase protect CCFG during chip erase?

Part Number: CC2340R5

Tool/software:

Is it possible to write/erase protect the CCFG so it can only be flashed once and then not affected when the Serial ROM Bootloader performs Chip Erase?

From what I have read in the datasheet for CC2340 it is not possible since the CCFG is always erased when Bootloader performs Chip Erased. But in Table 9-3 in the User Guide, there is also a bit in .flashProt area named ".ccfgSector - Protect CCFG Sector" that does not have any explanation other than "0 = Protected (default = 1). What is the meaning for this bit if the CCFG is always erased during chip erase?

  • Hi,

    From what I have read in the datasheet for CC2340 it is not possible since the CCFG is always erased when Bootloader performs Chip Erased.

    This is correct.

    bit in .flashProt area named ".ccfgSector - Protect CCFG Sector"

    This protects against application code from erasing the CCFG.

    Any firmware to be programmed with SACI (JTAG) or ROM bootloader should have a CCFG associated with it and follow the sequence(s) described in the User Guide.
    Over-the-air update -capable applications will have a separate firmware section (MCUBoot) on the device which can load in a new application fw and leave the CCFG untouched.

    Thanks,
    Toby