SWCU194 March 2023 CC1314R10 , CC1354P10 , CC1354R10 , CC2674P10 , CC2674R10
The COMMAND_BANK_ERASE command does not perform any erase operation if the CCFG parameter BANK_ERASE_DIS is cleared. When COMMAND_BANK_ERASE is not cleared, this command erases all main bank Flash sectors including CCFG not protected by write-protect bits in FCFG1 and CCFG.
The command sends the ACK in response to the command after the actual erase operation is performed. The actual erase is followed by CCFG values being programmed to the factory default values.
The format of the packet including the command ID is as follows:
unsigned char ucPacket[3];
ucPacket[0] = <size=3>;
ucPacket[1] = <checksum>;
ucPacket[2] = COMMAND_BANK_ERASE;
The BANK_ERASE command will not erase the CCFG region , due to the CCFG not being in the main Flash region. In order to erase the CCFG, the SECTOR_ERASE command must be sent with the sector address of the CCFG.