Other Parts Discussed in Thread: C2000WARE, UNIFLASH
看了c2000的例程,只是把内存分为两个空间,然后对这两个空间进行加密,有什么办法可以直接对整个程序进行加密,程序需要烧写到flash中。
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.
有关DCSM的教程,可以看下这个页面:
其实我之前发的那个中文链接,总结的也非常到位。
详细的只能通过TRM来学习:spruhx5g_TMS320F2837xS Microcontrollers Technical Reference Manual (Rev. G)第145页3.13 Dual Code Security Module (DCSM)
例程就是在C2000Ware中的:C:\ti\c2000\C2000Ware_5_00_00_00\driverlib\f2837xs\examples\cpu1\dcsm
没有配置DCSM的库函数。配置就是通过写相应的OTP以及操作相关的寄存器来完成的。这一部分的内容并不多。读完TRM了解了工作原理之后你肯定就会使用了。
UniFlash也可以配置:
(从截图的部分往下翻,都是配置DCSM的)
我刚刚在使用uniflash后,输入密码无法解锁,提示
Error connecting to the target: (Error -1156 @ 0x0) Device may be operating in low-power mode. Do you want to bring it out of this mode? Choose 'Yes' to force the device to wake up and retry the operation. Choose 'No' to retry the operation without waking the device. (Emulation package 9.12.0.00150)
是否需要更改boot模式,当前为获取模式