方法如下:
(1) 将Efuse如下Enable_SW_JTAG_CON bit烧起来
[ Security control ]
; if Enable_SW_JTAG_CON = 1, enable sw control to jtag
Enable_SW_JTAG_CON = 1
[ Security control ]
; if Enable_SW_JTAG_CON = 1, enable sw control to jtag
Enable_SW_JTAG_CON = 1
(2) 将alps\mediatek\custom\$(project)\securit\chip_config\s\cfg\SECRE_JTAG_CONFIG.ini文件中
SECURE_JTAG_ENABLE 设置为 FALSE,重新build生成image
Notes:
(1) 上述方法并非永久disable JTAG, 如后续想再重新恢复JTAG功能,可将SECURE_JTAG_ENABLE设置TRUE即可;
(2) 如想永久性disable JTAG功能,需设置efuse register中的JTAG的H/W控制bit位