SWCU193 April 2023 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.
Byte | Field | Description |
---|---|---|
0 | cmdId | BLDR_CMD_CHIP_ERASE command ID |