Texas Instruments CC2650DK 사용자 설명서

다운로드
페이지 1570
Bootloader Interfaces
The format used for SSI communications is the Motorola format with SPH set to 1 and SPO set to 1 (See
the Stellaris Family data sheet for more information on this format). The SSI interface has a hardware
requirement that limits the maximum rate of the SSI clock to be at most 1/12 the frequency of the SSI
module clock (48 MHz / 12 = 4 MHz).
The master must take special consideration (regarding the use of the SSI0 interface) due to the
functionality of not configuring any output pins before the external master device has selected a serial
interface.
NOTE:
On the first packet transferred by the master, no data is received from the bootloader while
the bootloader clocks out the bits in the first byte of the packet.
When the bootloader detects that 1 byte has been received on SSI0 RX, the bootloader will
configure the SSI0 TX output pin.
Before transmitting the next byte in the first packet, the master must include a small delay to
ensure that the bootloader has completed the configuration of the SSI0 TX output pin.
8.2.3 Serial Bus Commands
lists the commands supported by the custom protocol on the UART0 and SSI0 bootloader
interfaces.
Each command is transferred within a protocol packet. The first 2 bytes within a packet are the size byte
followed by the checksum byte. The third byte holds the command value that identifies the command; the
values for all the supported commands are listed in the Command Value column of
. The
remaining bytes within the packet are command parameters. See
through
for a complete description of the command byte and parameter bytes for each command.
Table 8-4. Supported Bootloader Commands
Command
Bytes in
Command
Description
Value
Packet
Receives an acknowledge from the bootloader indicating
COMMAND_PING
0x20
3
that communication has been established.
Prepares flash programming. Specifies from where to
COMMAND_DOWNLOAD
0x21
12
program data in flash and how many bytes will be sent by
the COMMAND_SEND_DATA commands that follow.
Returns the status of the last command that was issued.
Typically, this command should be received by the
bootloader after every command is sent to ensure that the
COMMAND_GET_STATUS
0x23
3
previous command was successful. See
for
defined status values. The status is returned within a
protocol packet of 3 bytes.
Transfers data and programs flash. Transferring data which
is programmed into flash following a
COMMAND_DOWNLOAD command or another
COMMAND_SEND_DATA command.
The number of data bytes to be programmed in flash can be
COMMAND_SEND_DATA
0x24
4 to 255
1 to 252 (maximum data load in packet).
If more data are downloaded by the
COMMAND_SEND_DATA commands than are specified by
the COMMAND_DOWNLOAD command, an error status will
be generated.
COMMAND_RESET
0x25
3
Performs a reset of the MCU domain.
Erases one sector within the flash main bank. The sector to
erase is specified by the sector start address. Only flash
sectors not protected by write-protect bits in FCFG1 and
CCFG will be erased. Erase verify is performed by
COMMAND_SECTOR_ERASE
0x26
7
hardware.
If the top sector is selected (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.
676 Bootloader
SWCU117A – February 2015 – Revised March 2015
Copyright © 2015, Texas Instruments Incorporated