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.

F28377D-CPU2加密后无法烧写

Other Parts Discussed in Thread: TMS320F28377D, UNIFLASH

您好!

     TMS320F28377D的CPU1,CPU2同时使用DCSM文件进行加密。

      CPU1进行“UNLOCK”操作后可以再次导入代码

      CPU2进行“UNLOCK”操作后代码烧写失败(多次尝试,可以Erase,但是烧写到最后始终显示,Load Failed)

  • user4862132 说:
    CPU1,CPU2同时使用DCSM文件进行加密。

    能否给出您的详细设置?另外您使用的自己的程序还是TI的某个例程?

    user4862132 说:
    CPU2进行“UNLOCK”操作后代码烧写失败(多次尝试,可以Erase,但是烧写到最后始终显示,Load Failed)

    能否给出详细的错误信息?是否有使用uniflash来unlock?

  • 正常情况下UNLOCK之后是可以烧写的。请问报错内容具体是什么样的呢?
  • [2020/11/17 下午5:28:36] [INFO] C28xx_CPU2: Performing Security Operation...
    [2020/11/17 下午5:28:36] [INFO] C28xx_CPU2: Calculated Link Pointer Offset: 0x20
    [2020/11/17 下午5:28:36] [INFO] C28xx_CPU2: Unlocking device...
    [2020/11/17 下午5:28:36] [INFO] C28xx_CPU2: Lock status: 0
    [2020/11/17 下午5:28:36] [SUCCESS] C28xx_CPU2: Operation completed successfully.
    [2020/11/17 下午5:29:48] [INFO] C28xx_CPU1: GEL Output: Memory Map Initialization Complete
    [2020/11/17 下午5:29:48] [INFO] C28xx_CPU2: GEL Output: Memory Map Initialization Complete
    [2020/11/17 下午5:29:52] [ERROR] C28xx_CPU2: Error during Flash programming (Flash algorithm returned error code). FMSTAT value = 0. Operation Cancelled (0).
    [2020/11/17 下午5:29:52] [ERROR] C28xx_CPU2: File Loader: Memory write failed: Unknown erro

    这是使用uniflash 解密后烧写报的错误
  • 加密文件模块和对应的CMD配置使用的是TI的例程加入到了自己的工程文件,CPU1和CPU2是相同的配置方式。

    CPU1解密后可以再次烧写,CPU2解密后可以删除但无法导入文件

  • 我是用的uniflash来加密解密的,如下图可以正常加密解密,并且解密后可以正常烧录out文件

    另外请您参考一下 

    DCSM模块使用说明

    若还是不行的话,请您分享一下debug log,如下操作:

    CCS Help-> CCS Support -> Select Debug Server Log -> Properties -> Select Enable Debug Server Logging + 选择 log file location ->  Ok

    或者您可以私信一下您的工程,我们拿开发板测试一下,谢谢