Script to Unlock JTAG via Trace32

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

Script to Unlock JTAG via Trace32

Jump to solution
664 Views
NileshDharap
Contributor III

Hello Team,

I am working on S32K3x controller. I will be locking the JTAG using HSE with a key.

I am looking for a script which will do the following things when I connect to Trace32

1. The script checks if Debug interface is locked.
2. If yes, read PW from password.txt (some file).
3. Attach command to unlock JTAG.

I saw almost all the queries here, either it uses some external application or accesses JTAG Port directly to unlock it (S32_JTAG_WRITE.cmm). I am not sure whether it works when JTAG is locked via HSE. I suspect it doesn't. 
I haven't tried any since I don't want to brick by controller.


Can someone help here please, I'll provide any other info if needed.

Thanks in advance.
Nilesh

0 Kudos
Reply
1 Solution
624 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

No, as I know it cannot be used this simple way.

I have recently tested it with scripts I am attaching.

Hope it helps

View solution in original post

0 Kudos
Reply
3 Replies
662 Views
NileshDharap
Contributor III
Also, I used to perform Unlocking with the below command for MPC5476C controller

sys.option.KEYCODE 0x11111111 0x22222222 0x33333333 0x44444444 0x55555555 0x66666666 0x77777777 0x88888888.

Will it work the same as for S32K3 as well? That would be also helpful to know
0 Kudos
Reply
625 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

No, as I know it cannot be used this simple way.

I have recently tested it with scripts I am attaching.

Hope it helps

0 Kudos
Reply
617 Views
NileshDharap
Contributor III
Thanks, I will check and let you know
0 Kudos
Reply