SWRA466D February 2015 – August 2021 CC1310 , CC1310 , CC1352R , CC1352R , CC2538 , CC2538 , CC2620 , CC2620 , CC2630 , CC2630 , CC2640 , CC2640 , CC2640R2F , CC2640R2F , CC2640R2F-Q1 , CC2640R2F-Q1 , CC2642R , CC2642R , CC2642R-Q1 , CC2642R-Q1 , CC2650 , CC2650 , CC2650MODA , CC2650MODA , CC2652R , CC2652R , CC2652R7 , CC2652R7 , CC2652RB , CC2652RB , CC2652RSIP , CC2652RSIP
To check the status of the bootloader, the CMD_GET_STATUS command can be used; this should be used after erasing or writing the flash memory to be sure that the erase and write were successful before proceeding. The possible status codes for the CMD_GET_STATUS command are shown in Table 2-10.
Status Definition | Value | Description |
---|---|---|
COMMAND_RET_SUCCESS | 0x40 | Status for successful command |
COMMAND_RET_UNKNOWN_CMD | 0x41 | Status for unknown command |
COMMAND_RET_INVALID_CMD | 0x42 | Status for invalid command (incorrect packet size) |
COMMAND_RET_INVALID_ADR | 0x43 | Status for invalid input address |
COMMAND_RET_FLASH_FAIL | 0x44 | Status for failed attempt to program or erase the flash |