Texas Instruments CC2650DK Benutzerhandbuch

Seite von 1570
Bootloader Interfaces
8.2.3.6
COMMAND_RESET
This command tells the bootloader to perform a reset of the CC26xx MCU domain. Use this command
after downloading a new flash image to the CC26xx 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 signal informs the updating application that the command was received successfully and the
CC26xx is 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;
8.2.3.7
COMMAND_GET_CHIP_ID
This command makes the bootloader return the value of the 32-bit user ID. The bootloader first responds
by sending the ACK signal in response to the command; then the bootloader sends a packet of 6 bytes
with the size byte, the checksum byte, and the 4 bytes (MSB first) holding the user ID.
The bootloader then waits for an ACK signal from the host as a confirmation that the packet was received.
The format of the command is as follows:
unsigned char ucCommand[3];
ucCommand[0] = <size=3>;
ucCommand[1] = <checksum>;
ucCommand[2] = COMMAND_GET_CHIP_ID;
680
Bootloader
SWCU117A – February 2015 – Revised March 2015
Copyright © 2015, Texas Instruments Incorporated