5197 views|4 replies

6609

Posts

0

Resources
The OP
 

TI C2000 DSP program encryption 2 methods (explicit and implicit) [Copy link]

Explicit and implicit methods cannot be used at the same time 1. Explicit method [attach] 343306 [/attach] Select Tools-F28xx On-chip Flash Programmer to enter the Flash programming interface (as shown below), as shown above, or click this icon. Flash programming interface [attach] 343307 [/attach] Set the program password in the "Code Security Password" area, and then press "Program Password" to confirm the password setting. When setting the password, be careful not to set Key0-Key8 to all 0. If all are 0, the chip will be permanently "Locked"! If you use this explicit method to set the password, when producing products, you need to tell the password to the Flash burning personnel on the production line, so that in addition to the core personnel of the company, more people will know your program password, which will bring disadvantages to confidentiality! 2. Implicit method To avoid the above situation, let fewer people know the password of the program, or even let only one person know the password of the program, you can embed the password into the program, compile it with other programs, and generate a .out file. At this time, you only need to give the .out file to the FLASH burning staff, and you don’t need to let the FLASH burning staff set the password themselves. We call this method the implicit method. When using the serial port to burn FLASH, this method is also needed to encrypt the program. Save the following program as an .asm file, add it to the project, and compile it with other files. .sect "csmpasswds" .int 0xFFFF ;PWL0 (LSW of 128-bit password) .int 0xFFFF ;PWL1 .int 0xFFFF ;PWL2 .int 0xFFFF ;PWL3 .int 0xFFFF ;PWL4 .int 0xFFFF ;PWL5 .int 0xFFFF ;PWL6 .int 0xFFFF ;PWL7 (MSW of 128-bit password .sect "csm_rsvd" .loop (3F7FF5h - 3F7F80h + 1) .int 0x0000 .endloop Write the following statements into CMD, MEMORY { … CSM_RSVD : origin = 0x3F7F80, length = 0x000076 … CSM_PWL : origin = 0x3F7FF8, length = 0x000008 … } SECTIONS { … csmpasswds : > CSM_PWL PAGE = 0 … csm_rsvd : > CSM_RSVD PAGE = 0 … } After compiling according to the above method, your program has been encrypted. You only need to hand over the generated .out to the Flash programmer!

360截图20180128211157221.jpg (12.98 KB, downloads: 0)

360截图20180128211157221.jpg

360截图20180128211206889.jpg (88.93 KB, downloads: 0)

360截图20180128211206889.jpg
This post is from Microcontroller MCU

Latest reply

The so-called implicit is actually the same as the explicit. The password is still clear to the world. As long as you get your out file, the password can be seen at a glance.  Details Published on 2018-5-30 16:29
 

3190

Posts

0

Resources
2
 
I don't understand the second method, I don't know what the password is
This post is from Microcontroller MCU
 
Personal signature为江山踏坏了乌骓马,为社稷拉断了宝雕弓。
 

41

Posts

0

Resources
3
 
chenbingjy posted on 2018-1-29 10:01 I don’t understand the second method, and I don’t know what the password is
The password is still all 0xff, you can change it to the password you want
This post is from Microcontroller MCU
 
 
 

304

Posts

0

Resources
4
 
This password is soft encryption, there should be hard encryption measures, but it is also a convenient encryption method
This post is from Microcontroller MCU
 
 
 

3

Posts

0

Resources
5
 
The so-called implicit is actually the same as the explicit. The password is still clear to the world. As long as you get your out file, the password can be seen at a glance.
This post is from Microcontroller MCU
 
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list