SWRA466D February 2015 – August 2021 CC1310 , CC1310 , CC1352R , CC1352R , CC2538 , CC2538 , CC2620 , CC2620 , CC2630 , CC2630 , CC2640 , CC2640 , CC2640R2F , CC2640R2F , CC2640R2F-Q1 , CC2640R2F-Q1 , CC2642R , CC2642R , CC2642R-Q1 , CC2642R-Q1 , CC2650 , CC2650 , CC2650MODA , CC2650MODA , CC2652R , CC2652R , CC2652R7 , CC2652R7 , CC2652RB , CC2652RB , CC2652RSIP , CC2652RSIP
The customer configuration area for CC2538 is called CCA and is placed in the uppermost flash sector, so the absolute address of the CCA depends on the device flash size. An 8-bit field in the CCA configures the bootloader backdoor functionality (byte offset 0x7D7). Table 2-1 lists the absolute address of this byte for different CC2538 variants.
CC2538 Variant | Bootloader Configuration Address |
---|---|
Cx2538xF53 (512 KB flash) | 0x0027.FFD7 |
Cx2538xF23 (256 KB flash) | 0x0023.FFD7 |
Cx2538xF11 (128 KB flash) | 0x0021.FFD7 |
The structure of the bootloader configuration byte is shown in Table 2-2. The pins that can open the bootloader backdoor are PA0 - PA7. Select which pin to use by writing a value from 0 to 7 in the three least significant bits of the backdoor configuration byte.
Bit | Field | Value | Description | Default Value |
---|---|---|---|---|
7-5 | Reserved | 0 | Reserved. Should be all ones. | 111b |
4 | Enabled | Enable and disable backdoor function | 1 | |
0 | Backdoor and bootloader disable | |||
1 | Backdoor and bootloader enable | |||
3 | Level | Sets active level for selected pin on pad A | 1 | |
0 | Active low | |||
1 | Active high | |||
2-0 | Pin number | The number (0 - 7) of the pin on pad A that is used when backdoor is enable. | 111b (7) |