SWCU193A April 2023 – August 2024 CC2340R2 , CC2340R5 , CC2340R5-Q1
If the SACI_CMD_DEBUG_REQ_PWD_ID command returns a 64-bit password ID, the host must use this command to submit the password that corresponds to this ID. The host must know the password length.
If the submitted password is correct, debugging is enabled after exiting SACI.
The password check calculates SHA-256 of the submitted password, and compares the resulting 256b hash with Ccfg.debugCfg.pwdHash. The password check takes constant time.
The password is only checked if debug authentication is required (see SACI_CMD_DEBUG_REQ_PWD_ID). If not required, the result is always SUCCESS.
CCFG must be valid (Ccfg.bootCfg.crc32 is valid)..
Ccfg.debugCfg.authorization = 0xA5 or 0x5A.
Words | Bits | Field | Value | Description |
---|---|---|---|---|
0 | 7:0 | cmdId | 0x06 | Command ID |
15:8 | respSeqNumber | User defined | Optional response sequence number, included in the response header | |
31:16 | wordCount | 3 - 16 | Size of the password, in number of 32-bit words (min = 3, max = 16) | |
N:1 | 31:0 | pwd | Device specific | The password, N = wordCount |
Words | Bits | Field | Value | Description |
---|---|---|---|---|
0 | 7:0 | cmdId | 0x06 | 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: