查SWCU117H
The FLASH memory can be read/write protected in 4KB sectors by configuring the CCFG.
9.1 Customer Configuration (CCFG)
• Image valid bit (normally set by the programming tool)
• Failure analysis access configuration
• Custom MAC address
• Bootloader configuration
• TAP and DAP access configuration
• CC13x0 only: Configure the output power to +14 dBm
In TI distributed software, the CCFG parameters are set at compile time in the ccfg.c file. The CCFG
settings are set by default to allow full debugging of the device. The CCFG settings are not recommended
for production.
CC13x0 only: To enable output power of +14 dBm, the CCFG_FORCE_VDDR_HH define must be set to
1 in ccfg.c distributed in cc13xxware by TI. If CCFG_FORCE_VDDR_HH is set to 0 the maximum possible
output power is +12.5 dBm.
The recommended way to configure a device for final production is as follows:
1. The BL_CONFIG:BOOTLOADER_ENABLE register and the BL_CONFIG:BL_ENABLE register must
be set to 0x00 to disallow access to Flash contents through the bootloader interface.
2. The CCFG_TI_OPTIONS:TI_FA_ENABLE register must be set to 0x00 to disallow failure analysis
access by TI.
>>这个是啥用途?
3. The CCFG_TAP_DAP_0:PRCM_TAP_ENABLE register, the
CCFG_TAP_DAP_0:TEST_TAP_ENABLE register, and the CCFG_TAP_DAP_0:CPU_DAP_ENABLE
register must be set to set to 0x00 to disallow access to these module through JTAG.
4. The CCFG_TAP_DAP_1 register must be set to 0xFF00 0000 to disallow access to these modules
through JTAG.
是不是CJTAG / JTAG都关闭了,,,如果CJTAG都关闭了,那么force mass erase 也没有办法执行了,,,也就是芯片彻底不能再开发DEBUG了???
5. The IMAGE_VALID_CONF:IMAGE_VALID register must be set to 0x0000 0000 to pass control to the
programmed image in Flash at boot.
6. Optionally, the ERASE_CONF:CHIP_ERASE_DIS_N register can be set to 0x0 to disallow erasing of
the Flash.
7. Use the CCFG_PROT_n registers to write and erase protect the sectors of Flash that are not designed
to be updated in-system by the final product.
FLASH的读保护就是通过关闭内置的BOOTLOADER 加上关闭调试功能(CJTAG/JTAG) ???
Butterfly:
参考这篇帖子e2e.ti.com/…/610637