Texas Instruments CC2650DK ユーザーズマニュアル

ページ / 1570
Bootloader Interfaces
8.2.3.9
COMMAND_BANK_ERASE
This command does not perform any erase operation if the CCFG parameter BANK_ERASE_DIS is set.
When COMMAND_BANK_ERASE is not set, this command will erase all main bank flash sectors
including CCFG not protected by write-protect bits in FCFG1 and CCFG.
The command sends the ACK in response to the command after the actual erase operation is performed.
After the actual erase, this command programs all the DAP and TAP configuration parameters and the
BOOTLOADER_ENABLE parameter within CCFG with values equal to the corresponding parameters
within FCFG1.
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_BANK_ERASE;
NOTE:
The bank erase operation locks the flash module FSM. A reset must be issued if additional
flash bank operations are to be followed.
8.2.3.10 COMMAND_CHIP_ERASE
This command does not cause any erase operation if the CCFG parameter CHIP_ERASE_DIS is set.
When COMMAND_CHIP_ERASE is not set, this command erases all main bank flash sectors including
CCFG not protected by write-protect bits in FCFG1.
This command causes the device to be reset and the actual erase operation is performed in the following
boot sequence.
The command sends the ACK signal in response to the command before the device is reset. To enable
the device to receive commands after completing the reset-boot sequence and the actual erase operation,
the host delays after receiving the ACK before issuing another bootloader command.
After the actual erase, this command programs all the DAP and TAP configuration parameters and the
BOOTLOADER_ENABLE parameter within CCFG with values equal to the corresponding parameters
within FCFG1.
The host must verify the erase operation.
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_CHIP_ERASE;
8.2.3.11 COMMAND_SET_CCFG
This command is sent to the bootloader to configure the defined fields in the flash CCFG area. The
command sends the ACK signal in response to the command after the actual flash program operation is
performed. This command does not execute any erase operation before the write operation.
The command consists of two 32-bit values that are all transferred MSB first. The first 32-bit value is the
CCFG Field ID, which identifies the CCFG parameter to be written, and the second 32-bit value is the
Field Value to be programmed. The command handler masks out Field Value bits not corresponding to the
CCFG parameter size.
682
Bootloader
SWCU117A – February 2015 – Revised March 2015
Copyright © 2015, Texas Instruments Incorporated