TI中文支持网
TI专业的中文技术问题搜集分享网站

请问怎么对Cortex-M4进行JTAG锁死来以起到保密作用??

当然在进行JTAG锁死后,以后可以通过上位机进行解锁?请问有谁进行这方面的工作,希望能得到您的指导。。非常感激!!

xyz549040622:

只有JTAG相关的四个脚和NMI复用的2个脚需要解锁。其他脚在功能切换时不需要考虑解锁。

具体方法是在Lock寄存器写入KEY,然后再操作commit寄存器就好了。具体方法如下:

10.2.4 Commit Control The GPIO commit control registers provide a layer of protection against accidental programming of critical hardware peripherals. Protection is provided for the GPIO pins that can be used as the four JTAG/SWD pins and the NMI pin (see “Signal Tables” on page 1330 for pin numbers). Writes to protected bits of the GPIO Alternate Function Select (GPIOAFSEL) register (see page 671), GPIO Pull Up Select (GPIOPUR) register (see page 677), GPIO Pull-Down Select (GPIOPDR) register (see page 679), and GPIO Digital Enable (GPIODEN) register (see page 682) are not committed to storage unless the GPIO Lock (GPIOLOCK) register (see page 684) has been unlocked and the appropriate bits of the GPIO Commit (GPIOCR) register (see page 685) have been set.

Michael Sun:

使用LMFlashProgrammer配合ICDI仿真器可以对芯片进行unlock。

赞(0)
未经允许不得转载:TI中文支持网 » 请问怎么对Cortex-M4进行JTAG锁死来以起到保密作用??
分享到: 更多 (0)