Download Print this page

Texas Instruments SimpleLink CC2620 Technical Reference Manual page 682

Zigbee rf4ce wireless mcu simplelink cc13 series; simplelink cc26 series

Advertisement

Bootloader Interfaces
8.2.3.5
COMMAND_GET_STATUS
The COMMAND_GET_STATUS command returns the status of the last command that was issued.
Typically, this command is received after every other command is sent to ensure that the previous
command was successful; or, if the command failed, to properly respond to a failure. The bootloader
responds by sending a 3-byte packet with the size byte, checksum byte, and 1 byte of the current-status
value.
The bootloader then waits for an ACK from the host as a confirmation that the packet was received.
The format of the packet including the command is as follows:
unsigned char ucCommand[3];
ucCommand[0] = <size=3>;
ucCommand[1] = <checksum>;
ucCommand[2] = COMMAND_GET_STATUS;
Table 8-4
lists the definitions for the possible status values that can be returned from the bootloader when
a COMMAND_GET_STATUS command is sent to the bootloader
Status Definition
COMMAND_RET_SUCCESS
COMMAND_RET_UNKNOWN_CMD
COMMAND_RET_INVALID_CMD
COMMAND_RET_INVALID_ADR
COMMAND_RET_FLASH_FAIL
8.2.3.6
COMMAND_RESET
The COMMAND_RESET command tells the bootloader to perform a system reset. Use this command
after downloading a new flash image to the CC26xx and CC13xx devices to cause the new application to
start from a reset. The normal boot sequence occurs and the flash image runs as if from a hardware reset.
Also, use this command to reset the bootloader if a critical error occurs and the host device wants to
restart communication with the bootloader.
The bootloader responds with an ACK signal to the host device before actually executing the system
reset. This ACK signal informs the updating application that the command was received successfully and
the CC26xx and CC13xx devices are then reset.
The format of the packet including the command is as follows:
unsigned char ucCommand[3];
ucCommand[0] = <size=3>;
ucCommand[1] = <checksum>;
ucCommand[2] = COMMAND_RESET;
682
Bootloader
Table 8-4. Defined Status Values
Value
0x40
0x41
0x42
0x43
0x44
Copyright © 2015, Texas Instruments Incorporated
Description
Status for successful command
Status for unknown command
Status for invalid command (in other words,
incorrect packet size)
Status for invalid input address
Status for failing flash erase or program operation
SWCU117C – February 2015 – Revised September 2015
Submit Documentation Feedback
www.ti.com

Hide quick links:

Advertisement

loading