S32K142 disable debug

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32K142 disable debug

634 Views
minsky
Contributor I

你好,我将FSEC中的SEC置为11:

/* Flash Configuration */
.section .FlashConfig, "a"
.long 0xFFFFFFFF /* 8 bytes backdoor comparison key */
.long 0xFFFFFFFF /* */
.long 0xFFFFFFFF /* 4 bytes program flash protection bytes */
.long 0xFFFF7FFF /* FDPROT:FEPROT:FOPT:FSEC(0xFE = unsecured) */

使用J-Flash,选择S32K142(allow security),将程序烧录至芯片后,可以再次与芯片连接和烧录程序(一开始无法连接,尝试2至3次后可以正常连接),但无法debug和读取flash内容,请问这是否为成功失能调试端口?

0 Kudos
Reply
1 Reply

591 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @minsky,

Yes, once secured, JTAG cannot read flash or halt/inspect the core. Changes to the flash configuration will take effect at the next reset:

Snag_56e136.png

Also, when allow security is selected, J-Flash reads MDM-AP register, and if security is set to 1, it tries a mass erase in order to unsecure the chip and connect.

Best regards,
Julián

0 Kudos
Reply