SWCU195A December 2024 – May 2025 CC2744R7-Q1 , CC2745P10-Q1 , CC2745R10-Q1 , CC2745R7-Q1 , CC2755R10
Erase only the MAIN flash application.
The command has an option to retain selected MAIN sectors:
The command always protects the HSM FW, which also resides in MAIN sectors. Before erasure, this command will enable sticky write/erase protection in the VIMS module to ensure the HSM FW is protected. It is not necessary to use Ccfg.chipEraseRetain fields to protect the HSM FW when using this command.
These conditions must be true:
Certain commands are not allowed after SACI_CMD_FLASH_ERASE_MAIN_APP:
Reset the device and reenter SACI to reenable those commands.
| Word | Bits | Field | Value | Description |
|---|---|---|---|---|
| 0 | 7:0 | cmdId | 0x1C | Command ID |
| 15:8 | respSeqNumber | User defined | Optional response sequence number, included in the response header | |
| 16 | retainSelMainSectors | - |
Retain MAIN sectors, as specified by:
|
|
| 31:17 |
reserved0 |
0x0000 | Reserved | |
|
1 |
31:0 | key | 0xB7E3A08F | Flash operation key (magic number) |
| Word | Bits | Field | Value | Description |
|---|---|---|---|---|
| 0 | 7:0 | cmdId | 0x1C | Command ID, copied from the first command parameter word |
| 15:8 | respSeqNumber | User defined | Optional sequence number, copied from the first command parameter word | |
| 23:16 | result | - |
Command result. One of the common results, or:
|
|
| 31:24 | dataWordCount |
0 or 3 |
Size of additional response data, in number of 32-bit words:
|
|
| 1 | 31:0 | retainedMain0_31 | - | The initial value of Ccfg.chipEraseRetain.mainSectors0_31 (1 sector per bit) |
| 2 | 31:0 | retainedMain32_255 | - | The initial value of Ccfg.chipEraseRetain.mainSectors32_255 (8 sectors per bit) |
| 3 | 31:0 | retainedMain256_511 | - | The initial value of Ccfg.chipEraseRetain.mainSectors256_511 (8 sectors per bit) |
These checks are performed before command execution, in the indicated order:
If any restriction is violated: Fail with result NOT_ALLOWED
If key is invalid: Fail with result INVALID_KEY_PARAM