SWCU193A April 2023 – August 2024 CC2340R2 , CC2340R5 , CC2340R5-Q1
Program the entire CCFG sector, with option to skip the user record part.
If skipped, the user record (Ccfg.userRecord) can be programmed later, using SACI_CMD_FLASH_PROG_CCFG_USER_REC.
The CCFG is still considered invalid after executing this command. The new CCFG sector contents take effect after reset.
All bytes in the CCFG sector must be 0xFF before the CCFG sector programming begins (a chip erase must have been performed since the previous CCFG programming).
This command modifies CCFG. Certain commands are not allowed after CCFG sector programming:
Reseting the device and reentering SACI is required to reenable those commands.
Words | Bits | Field | Value | Description |
---|---|---|---|---|
0 | 7:0 | cmdId | 0x0C | Command ID |
15:8 | respSeqNumber | User defined | Optional response sequence number, included in the response header | |
16 | skipUserRec | - | Skip user record part | |
31:17 | reserved0 | 0x0000 | Reserved | |
1 | 31:0 | key | 0xB7E3A08F | Flash operation key (magic number) |
513:2 | 31:0 | data | - |
Bytes to be programmed:
If skipUserRec = 1, the user record part of data is don't care. |
Words | Bits | Field | Value | Description |
---|---|---|---|---|
0 | 7:0 | cmdId | 0x0C | 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 | Size of additional response data, in number of 32-bit words |
These checks are performed before command execution, in the indicated order: