This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

SmartRF Flash Programmer 2烧录CC1310时可以设置读保护吗,怎么可以设置?

Other Parts Discussed in Thread: CC1310

请问一下大家,SmartRF Flash Programmer 2烧录CC1310时可以设置读保护吗,一直找不到这个选项,怎么可以禁止读到里面的固件 ?

  • CC1310的flash读写保护可通过CCFG配置,具体请参考下面文档的7.5.1 FLASH Memory Protection:
    www.ti.com.cn/.../swcu117h.pdf
  • 您好,谢谢您的回答,我找到了7.5.1 FLASH Memory Protection,只有下面简单的一行:

    The FLASH memory can be read/write protected in 4KB sectors by configuring the CCFG.

    并没有找到相关的配置说明,对文档全面搜索和仔细查找也没找到,也看了CCFG文件,没看到相关的配置.
  • 具体的设置在下面9.1 Customer Configuration (CCFG)
  • 您好,请问一下您指的是 9.1.1.19 CCFG_PROT_31_0 Register 吗?
    详细说明是:
    Protect Sectors 0-31 Each bit write protects one 4KB flash sector from being both programmed and erased. Bit must be set to 0
    in order to enable sector write protect.
    这个好像只是写保护的,我测试过还是可以读的,我想到一个方法可以实现相同的作用,就是锁定调试接口,但不知道怎么锁定,我的仿真器是XDS110,开发环境是IAR,另外还有SmartRF Flash Programmer 2,能请教一下您怎么操作吗?
  • 9.1 Customer Configuration,如下步骤做完就可以锁定调试接口了:

    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.
    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.
  • 您好,谢谢您的回答,根据上面的提示,已经实现了该功能.