Texas Instruments CC2650DK Benutzerhandbuch

Seite von 1570
Bootloader Interfaces
NOTE:
The COMMAND_SET_CCFG command can only change CCFG parameter value bits from 1
to 0.
Attempting to change any bit from 0 to 1 results in an error status which can be observed by
a following COMMAND_GET_STATUS command.
The only way to change CCFG parameter value bits from 0 to 1 is by erasing the complete CCFG flash
sector. The command sends the ACK signal in response to the command after the actual flash
programming has terminated.
The programming operation fails if the CCFG area (flash top sector) is write-protected by the protect bit in
FCFG1 and/or CCFG itself.
The format of the packet including the command is as follows:
unsigned char ucCommand[11];
ucCommand[0] = <size=11>;
ucCommand[1] = <checksum>;
ucCommand[2] = COMMAND_SET_CCFG;
ucCommand[3] = Field Id[31:24];
ucCommand[4] = Field Id[23:16];
ucCommand[5] = Field Id[15:8];
ucCommand[6] = Field Id[7:0];
ucCommand[7] = Field Value[31:24];
ucCommand[8] = Field Value[23:16];
ucCommand[9] = Field Value[15:8];
ucCommand[10] = Field Value[7:0];
Defined CCFG Field IDs with corresponding Field Values are described in
Table 8-6. Defined CCFG Field IDs and Field values
Field ID
Field Value
Description
The sector write-protect bit in CCFG
corresponding to the specified sector
number will be set to 0. This protects the
sector from being programmed and
erased. First flash sector has sector
number 0.
Bit[31:0] – Flash sector number of sector
0: ID_SECTOR_PROT
This command will also set the sticky
to protect from program and erase
sector protect bit in the flash wrapper
registers.
Be aware if protecting sector 31, which is
the CCFG sector. If sector 31 is protected
none of the other CCFG parameters can
be set.
In order for the boot sequence to transfer
1: ID_IMAGE_VALID
Bit[31:0] - 0x00000000
execution control to a flash image this
Field ID must be set to 0x0000 0000.
Any other value than 0xC5 will force a
Bit[31:8] – Don’t care.
2: ID_TEST_TAP_LCK
locked TAP after a following boot
Bit[7:0] – 0xC5 = TAP unlocked
sequence
Any other value than 0xC5 will force a
Bit[31:8] – Don’t care
3: ID_PRCM_TAP_LCK
locked TAP after a following boot
Bit[7:0] – 0xC5 = TAP unlocked
sequence.
Any other value than 0xC5 will force a
Bit[31:8] – Don’t care
4: ID_CPU_DAP_LCK
locked DAP after a following boot
Bit[7:0] – 0xC5 = DAP unlocked
sequence.
Any other value than 0xC5 will force a
Bit[31:8] – Don’t care
5: ID_WUC_TAP_LCK
locked TAP after a following boot
Bit[7:0] – 0xC5 = TAP unlocked
sequence.
Any other value than 0xC5 will force a
Bit[31:8] – Don’t care
6: ID_PBIST1_TAP_LCK
locked TAP after a following boot
Bit[7:0] – 0xC5 = TAP unlocked
sequence.
683
SWCU117A – February 2015 – Revised March 2015
Bootloader
Copyright © 2015, Texas Instruments Incorporated