SWCU193A April 2023 – August 2024 CC2340R2 , CC2340R5 , CC2340R5-Q1
This command is used to perform a chip erase of the device. All main flash bank sectors not protected by FCFG and CCFG protect bits are erased. The CCFG is erased once the bank erase has completed.
This command first invalidates the CCFG and then begin erasing all unprotected sectors in the main flash bank. Once the flash sectors have been erased, the command finally erases the contents of the CCFG.
If the CCFG permissions disallow a chip erase, the command responds with CMD_INVALID_CMD.
The write/erase flash protections applied in the CCFG (see Table 9-3) won’t affect the ROM bootloader. If write/erase flash protection is required, consider implementing a 'User-Defined' Bootloader (see User-Defined Bootloader Guidelines)
Byte | Field | Description |
---|---|---|
0 | cmdId | BLDR_CMD_CHIP_ERASE command ID |