S32K3 Unlock Secure Debug with Trace32

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

S32K3 Unlock Secure Debug with Trace32

Jump to solution
1,962 Views
NewbieNerd
Contributor IV

Hello S32K3 Team,

I am currently experiencing an issue with secure debug unlock.

The debugger I am using is Trace32 and autosar os using....
The Life Cycle (LC) has been switched to OEM, and secure debug is configured in password mode (not challenge–response).

The configured TEST password is:

0xFFEEDDCCBBAA99887766554433221100


Before switching the LC, I confirmed that the HASH value matched correctly.

I have tried the following two methods to unlock secure debug:

Using the Trace32 command:

SYStem.Option KEYCODE %Byte 0xFF 0xEE 0xDD 0xCC 0xBB 0xAA 0x99 0x88 0x77 0x66 0x55 0x44 0x33 0x22 0x11 0x00


Using the S32_JTAG_WRITE.cmm script

However, both methods failed to unlock secure debug.

I would appreciate your guidance on what I should check next or any potential causes I might be overlooking.

I have attached my script for reference.

Best regards,

NewbieNerd_0-1768555507583.png

 

#HSE #secureDebug

 

Tags (3)
0 Kudos
Reply
1 Solution
1,923 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

I have recently test it. See attached scripts

debug_authorization.cmm shows how to enter the password and then it calls other scripts.

I am sending you attachment directly.

View solution in original post

0 Kudos
Reply
5 Replies
107 Views
cwjiro
Contributor II

Dear NewbieNerd,

I am facing the same issue in a similar environment.

If you were able to resolve it, could you please share the solution and explain what changed compared to the previous setup?

Your experience would be greatly appreciated and would be very helpful for troubleshooting this issue on my side.

Thank you for your time and support.

Tags (2)
0 Kudos
Reply
91 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

Please create new ticket and I will send it to you. Thanks for understanding.

https://www.nxp.com/support/support:SUPPORTHOME

 

0 Kudos
Reply
47 Views
cwjiro
Contributor II

Thank you for your response.

I have already created a support ticket (Case#00994181), which is currently being handled by another support engineer. If possible, would you be able to take a look at the ticket or provide additional support?

Thank you again for your support.

Tags (2)
0 Kudos
Reply
1,924 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

I have recently test it. See attached scripts

debug_authorization.cmm shows how to enter the password and then it calls other scripts.

I am sending you attachment directly.

0 Kudos
Reply
390 Views
cwjiro
Contributor II

Hello,

I am experiencing the same issue in the same environment.

Could you please share the file with me as well? I would really appreciate your help.

Thank you!

Tags (2)
0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2294883%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ES32K3%20Unlock%20Secure%20Debug%20with%20Trace32%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2294883%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%20S32K3%20Team%2C%3C%2FP%3E%3CP%3EI%20am%20currently%20experiencing%20an%20issue%20with%20secure%20debug%20unlock.%3C%2FP%3E%3CP%3EThe%20debugger%20I%20am%20using%20is%20Trace32%20and%20autosar%20os%20using....%3CBR%20%2F%3EThe%20Life%20Cycle%20(LC)%20has%20been%20switched%20to%20OEM%2C%20and%20secure%20debug%20is%20configured%20in%20password%20mode%20(not%20challenge%E2%80%93response).%3C%2FP%3E%3CP%3EThe%20configured%20TEST%20password%20is%3A%3C%2FP%3E%3CP%3E0xFFEEDDCCBBAA99887766554433221100%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EBefore%20switching%20the%20LC%2C%20I%20confirmed%20that%20the%20HASH%20value%20matched%20correctly.%3C%2FP%3E%3CP%3EI%20have%20tried%20the%20following%20two%20methods%20to%20unlock%20secure%20debug%3A%3C%2FP%3E%3CP%3EUsing%20the%20Trace32%20command%3A%3C%2FP%3E%3CP%3ESYStem.Option%20KEYCODE%20%25Byte%200xFF%200xEE%200xDD%200xCC%200xBB%200xAA%200x99%200x88%200x77%200x66%200x55%200x44%200x33%200x22%200x11%200x00%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EUsing%20the%20S32_JTAG_WRITE.cmm%20script%3C%2FP%3E%3CP%3EHowever%2C%20both%20methods%20failed%20to%20unlock%20secure%20debug.%3C%2FP%3E%3CP%3EI%20would%20appreciate%20your%20guidance%20on%20what%20I%20should%20check%20next%20or%20any%20potential%20causes%20I%20might%20be%20overlooking.%3C%2FP%3E%3CP%3EI%20have%20attached%20my%20script%20for%20reference.%3C%2FP%3E%3CP%3EBest%20regards%2C%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22NewbieNerd_0-1768555507583.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22NewbieNerd_0-1768555507583.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22NewbieNerd_0-1768555507583.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22NewbieNerd_0-1768555507583.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22NewbieNerd_0-1768555507583.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22NewbieNerd_0-1768555507583.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F373154iA8B1B7093938F54C%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22NewbieNerd_0-1768555507583.png%22%20alt%3D%22NewbieNerd_0-1768555507583.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%23HSE%20%23secureDebug%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2295114%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K3%20Unlock%20Secure%20Debug%20with%20Trace32%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2295114%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20have%20recently%20test%20it.%20See%20attached%20scripts%3C%2FP%3E%0A%3CP%3Edebug_authorization.cmm%20shows%20how%20to%20enter%20the%20password%20and%20then%20it%20calls%20other%20scripts.%3C%2FP%3E%0A%3CP%3EI%20am%20sending%20you%20attachment%20directly.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2389427%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K3%20Unlock%20Secure%20Debug%20with%20Trace32%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2389427%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%20class%3D%22%22%3E%3CSPAN%3EHello%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%3EI%20am%20experiencing%20the%20same%20issue%20in%20the%20same%20environment.%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%3ECould%20you%20please%20share%20the%20file%20with%20me%20as%20well%3F%20I%20would%20really%20appreciate%20your%20help.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EThank%20you!%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2396972%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K3%20Unlock%20Secure%20Debug%20with%20Trace32%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2396972%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EDear%26nbsp%3B%3CSPAN%3ENewbieNerd%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3EI%20am%20facing%20the%20same%20issue%20in%20a%20similar%20environment.%3C%2FP%3E%3CP%3EIf%20you%20were%20able%20to%20resolve%20it%2C%20could%20you%20please%20share%20the%20solution%20and%20explain%20what%20changed%20compared%20to%20the%20previous%20setup%3F%3C%2FP%3E%3CP%3EYour%20experience%20would%20be%20greatly%20appreciated%20and%20would%20be%20very%20helpful%20for%20troubleshooting%20this%20issue%20on%20my%20side.%3C%2FP%3E%3CP%3EThank%20you%20for%20your%20time%20and%20support.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2397109%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K3%20Unlock%20Secure%20Debug%20with%20Trace32%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2397109%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EPlease%20create%20new%20ticket%20and%20I%20will%20send%20it%20to%20you.%20Thanks%20for%20understanding.%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fsupport%2Fsupport%3ASUPPORTHOME%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.nxp.com%2Fsupport%2Fsupport%3ASUPPORTHOME%3C%2FA%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2397963%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K3%20Unlock%20Secure%20Debug%20with%20Trace32%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2397963%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%20class%3D%22%22%3E%3CSPAN%3EThank%20you%20for%20your%20response.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EI%20have%20already%20created%20a%20support%20ticket%20(%3C%2FSPAN%3E%3CSPAN%3ECase%2300994181%3C%2FSPAN%3E%3CSPAN%3E)%3C%2FSPAN%3E%3CSPAN%3E%2C%20which%20is%20currently%20being%20handled%20by%20another%20support%20engineer.%20If%20possible%2C%20would%20you%20be%20able%20to%20take%20a%20look%20at%20the%20ticket%20or%20provide%20additional%20support%3F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EThank%20you%20again%20for%20your%20support.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E