Texas Instruments CC2650DK Benutzerhandbuch

Seite von 1570
Bootloader Interfaces
Table 8-4. Supported Bootloader Commands (continued)
Command
Bytes in
Command
Description
Value
Packet
Calculates CRC32 over a specified memory area. The
COMMAND_CRC32
0x27
15
number of reads per memory location is specified.
Returns the 32-bit UserID from the AON_WUC
COMMAND_GET_CHIP_ID
0x28
3
JTAGUSERCODE register with MSB first. The ID is returned
within a protocol packet.
Performs an erase of all of the customer-accessible flash
sectors not protected by FCFG1 and CCFG write-protect
bits. No erase operation is performed if the CCFG parameter
BANK_ERASE_DIS is set.
COMMAND_BANK_ERASE
0x2A
3
Because the top sector will be erased (containing CCFG)
the following CCFG parameters will be programmed with
values from the corresponding parameters in FCFG1 after
the erase: BOOTLOADER_ENABLE and all DAP and TAP
parameters.
Writes the CC26xx-defined CCFG fields to the flash CCFG
area with the values received in the data bytes of this
command.
COMMAND_SET_CCFG
0x2B
11
This command abstracts the user from detailed knowledge
concerning which physical addresses within the flash CCFG
holding the defined CCFG fields.
Reads a specified number of elements with a specified
access width (8 bits or 32 bits) from a specified memory-
COMMAND_MEMORY_READ
0x2C
9
mapped start address. The requested amount of data must
be less than the maximum size of a communication packet.
Writes the received data in accesses with a specified width
10 is the max
(8 or 32 bits) from a specified memory-mapped start
COMMAND_MEMORY_WRITE
0x2D
packet size
address. Data to be written must be contained in same
packet as the command.
The following subsections specify the individual bytes within the protocol packets for each command.
8.2.3.1
COMMAND_PING
This command receives an acknowledge from the bootloader, indicating that communication has been
established. This command is a single byte.
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_PING;
677
SWCU117A – February 2015 – Revised March 2015
Bootloader
Copyright © 2015, Texas Instruments Incorporated