SWCU193A April 2023 – August 2024 CC2340R2 , CC2340R5 , CC2340R5-Q1
This command returns the status of the last command that was issued. Typically, this command should be received after every command is sent to ensure that the previous command was successful or, if unsuccessful, to properly respond to a failure. The command requires one don't care byte in the data of the packet and the bootloader will respond by sending a packet with one byte of data that contains the current status code.
Byte | Field | Value | Description |
---|---|---|---|
0 | cmdId | BLDR_CMD_GET_STATUS | Get StatusCommand ID |
Return Name | Value | Description |
---|---|---|
BLDR_CMD_RET_SUCCESS | 0x40 | This is returned in response to a BLDR_CMD_GET_STATUS command and indicates that the previous command completed successfully. |
BLDR_CMD_RET_UNKNOWN_CMD | 0x41 | This is returned in response to a BLDR_CMD_GET_STATUS command and indicates that the command sent was an unknown command. |
BLDR_CMD_RET_INVALID_CMD | 0x42 | This is returned in response to a BLDR_CMD_GET_STATUS command and indicates that the previous command was formatted incorrectly. |
BLDR_CMD_RET_INVALID_ADR | 0x43 | This is returned in response to a BLDR_CMD_GET_STATUS command and indicates that the previous download command contained an invalid address value. |
BLDR_CMD_RET_FLASH_FAIL | 0x44 | This is returned in response to a BLDR_CMD_GET_STATUS command and indicates that an attempt to program or erase the flash has failed. |
BLDR_CMD_RET_CRC_FAIL | 0x45 | This is returned in response to a BLDR_CMD_GET_STATUS command and indicates that the previous CRC32 command match failed. |
BLDR_CMD_RET_NEEDS_CHIP_ERASE | 0x46 | This is returned in response to a BLDR_CMD_GET_STATUS command and indicates that the previous Download command failed because a BLDR_CMD_CHIP_ERASE command must be run first. |