SWCU193A April 2023 – August 2024 CC2340R2 , CC2340R5 , CC2340R5-Q1
SACI Command | cmdId | Category | Parameters | Restrictions | Description |
---|---|---|---|---|---|
SACI_CMD_MISC_ NO_OPERATION |
0x01 | - | - | - | Performs no operation. |
TI Internal Command | 0x02 | - | - | - | - |
SACI_CMD_MISC_ GET_DIE_ID |
0x03 | Information | - | Tested device only | Get the 128-bit die ID which identifies uniquely the die on the wafer |
SACI_CMD_MISC_ GET_CCFG_USER_REC |
0x04 | Information | - | CCFG valid | Get the user record in CCFG, up to 128 bytes (in increments of 16 bytes) |
SACI_CMD_DEBUG_ REQ_PWD_ID |
0x05 | Debug/control | - | Tested device only | Request password ID for debug authentication |
SACI_CMD_DEBUG_ SUBMIT_AUTH |
0x06 | Debug/control |
wordCount, pwd |
CCFG valid and debug allowed | The host uses this command to submit the debug authentication password. If correct, debugging is enabled after exiting SACI |
SACI_CMD_DEBUG_ EXIT_SACI_HALT |
0x07 | Debug/control | - | Debugging allowed, valid user bootloader or application | Exit SACI for debug mode, and wait for the host to setup breakpoints or run/single-step CPU through AHB-AP at the first instruction of the bootloader/application |
SACI_CMD_DEBUG_ EXIT_SACI_SHUTDOWN |
0x08 | Debug/control | - | Wakeup from shutdown power state due to SWD activity | Exit SACI, and re-enter shutdown power state |
SACI_CMD_FLASH_ ERASE_CHIP |
0x09 | Flash programming |
retainSelMainSectors, key |
Chip erase allowed | Perform chip erase: erase CCFG and main sectors. Optionally a set of main sectors indicated by CCFG can be retained |
SACI_CMD_FLASH_ PROG_CCFG_SECTOR |
0x0C | Flash Programming | skipUserRec, key, data | CCFG erased | Program the entire CCFG sector, with option to leave the user record part unprogrammed |
SACI_CMD_FLASH_ PROG_CCFG_USER_REC |
0x0D | Flash programming | key, data | CCFG.userRecord unprogrammed | Program the user record part of the CCFG sector |
SACI_CMD_FLASH_ PROG_MAIN_SECTOR |
0x0E | Flash programming | key, firstByteAddr, data | Flash erased or CCFG allows flash programming | Program all or a part of one MAIN sector |
SACI_CMD_FLASH_ PROG_MAIN_PIPELINED |
0x0F | Flash programming | key, firstSectorAddr | Flash erased or CCFG allows flash programming | Program multiple whole, back-to-back MAIN sectors of the flash (full programming speed) |
SACI_CMD_FLASH_ VERIFY_MAIN_SECTORS |
0x10 | Flash programming | doBlankCheck, firstSectorAddr, byteCount,expCrc32 | Flash erased (blank check only) or CCFG allows flash verify | Verify the contents of one or more whole (with option to exclude the last 4 bytes) flash MAIN sectors against supplied CRC32 or check that the sectors are blank (all bytes are 0xFF) |
SACI_CMD_FLASH_ VERIFY_CCFG_SECTOR |
0x11 | Flash programming | checkExpCrcs, skipUserRec, doBlankCheck, expBootCfgCrc32, expCentralCrc32, expUserRecCrc32, expDebugCfgCrc32 | Flash erased (blank check only) or CCFG allows flash verify | Verify the contents of records in CCFG sectors against supplied CRC32 values or check that CCFG sector is blank (all bytes are 0xFF) |
TI Internal Command | 0x12 | ||||
TI Internal Command | 0x13 | ||||
SACI_CMD_BLDR_ APP_RESET_DEVICE |
0x14 | Debug/control | waitForSwdDisconnect | - | Reset the device and reboot (possibly into SACI again) |
SACI_CMD_BLDR_ APP_EXIT_SACI_RUN |
ox15 | Debug/control | - | Valid bootloader or application present, no flash programming commands in current SACI session | Exit SACI, and run bootloader or application |
TI Internal Command | 0x16 | ||||
SACI_CMD_MODE_ REQ_TOOLS_CLIENT |
0x17 | Test Mode | - | Flash erased or CCFG allows tool client mode | Locks all accesses to flash, erase SRAM and then open up device for debug access. Used by TI development tools |
TI Internal Command | 0x18 | - | - | - | - |