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.

[参考译文] TMS320F280039C:DCSM

Guru**** 2200120 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1437096/tms320f280039c-dcsm

器件型号:TMS320F280039C

工具与软件:

当我更改 DCSM 的配置以启用 JTAGLOCK 时、不受区域保护的代码。

DCSM 的配置如下:

    

我在使用 CCS 将映像(.out 文件)刷写到 MCU 时遇到错误。

 [错误] C28xx_CPU1:闪存编程期间出错。 地址0x00078028、FMSTAT (在某些器件上为 STATCMD) 0x00001010

这是首次对 OTP 区域进行编程。

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
;----------------------------------------------------------------------
; Zone 1
;----------------------------------------------------------------------
.sect "dcsm_otp_z1_linkpointer"
.retain
.long 0x00003FFF
.long 0x00003FFF
.long 0x00003FFF
.sect "dcsm_otp_z1_jlm_enable"
.retain
.long 0xFFFF0000 ;Z1OTP_JLM_ENABLE
.sect "dcsm_otp_z1_jtag_pswdh"
.retain
.long 0x4BFFFFFE ;Z1OTP_JTAGPSWDH0
.long 0x3FFFFFFF ;Z1OTP_JTAGPSWDH1
.sect "dcsm_otp_z1_cmac_key"
.retain
.long 0x2B7E1516 ;Z1OTP_CMACKEY0
.long 0x28AED2A6 ;Z1OTP_CMACKEY1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* this linker command file is to be included if user wants to use the DCSM feature on the device
* DCSM means Dual Zone Code Security Module.
* This linker command file works as an addendum ot the already existing Flash/RAM linker command file
* that the project has.
* The sections in the *_ZoneSelectBlock.asm source file is linked as per the commands given in the file
* NOTE - please note fill=0xFFFF, this helps if users include this file in the project by mistake and
* doesn't provide the needed proper *_ZoneSelectBlock.asm sources .
* Please refer to the Blinky DCSM example in the controlsuite examples for proper usage of this.
*
* Once users are confident that they want to program the passwords in OTP, the DSECT section type can be removed.
*
*/
MEMORY
{
PAGE 0 : /* Program Memory */
/* Z1 OTP. Z1 password locations / Flash and RAM partitioning */
DCSM_OTP_Z1_LINKPOINTER : origin = 0x78000, length = 0x00006
DCSM_OTP_Z1_JLM_ENABLE : origin = 0x78006, length = 0x00002
DCSM_OTP_Z1_GPREG : origin = 0x78008, length = 0x00008
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

在配置 DCSM 时、我需要知道什么问题?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    你好

    您能否尝试在片上闪存工具中禁用"验证"选项的情况下进行编程? 编程后回读 CSM 密码将导致 DCSM 区域立即被锁定。

    谢谢!

    Luke