how to debug csec function use jlink gdbsever

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

how to debug csec function use jlink gdbsever

Jump to solution
331 Views
top
Contributor I

hi

  we enable csec function and write key in CSEC_KEY_1,then debug the app use jlink gdbsever,so mcu is locked.

  how to debug csec function use jlink gdbsever ,must be erase all csec key?

Tags (1)
0 Kudos
Reply
1 Solution
311 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @top 

I just answered similar question here:

https://community.nxp.com/t5/S32K/S32K142%E4%BD%BF%E7%94%A8CSEc%E5%8A%9F%E8%83%BD%E8%8A%AF%E7%89%87%...

Yes, it's necessary to erase the keys (disable CSEc) by CMD_DBG_CHAL and CMD_DBG_AUTH commands with knowledge of MASTER_ECU_KEY. Or use different debug probe (like Pemicro)

Regards,

Lukas

View solution in original post

0 Kudos
Reply
1 Reply
312 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @top 

I just answered similar question here:

https://community.nxp.com/t5/S32K/S32K142%E4%BD%BF%E7%94%A8CSEc%E5%8A%9F%E8%83%BD%E8%8A%AF%E7%89%87%...

Yes, it's necessary to erase the keys (disable CSEc) by CMD_DBG_CHAL and CMD_DBG_AUTH commands with knowledge of MASTER_ECU_KEY. Or use different debug probe (like Pemicro)

Regards,

Lukas

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2162612%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Ehow%20to%20debug%20csec%20function%20use%20jlink%20gdbsever%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2162612%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Ehi%3C%2FP%3E%3CP%3E%26nbsp%3B%20we%20enable%20csec%20function%20and%20write%20key%20in%20CSEC_KEY_1%EF%BC%8Cthen%20debug%20the%20app%20use%20jlink%20gdbsever%EF%BC%8Cso%20mcu%20is%20locked.%3C%2FP%3E%3CP%3E%26nbsp%3B%20how%20to%20debug%20csec%20function%20use%20jlink%20gdbsever%20%2Cmust%20be%20erase%20all%20csec%20key%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2162842%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20how%20to%20debug%20csec%20function%20use%20jlink%20gdbsever%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2162842%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F253564%22%20target%3D%22_blank%22%3E%40top%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20just%20answered%20similar%20question%20here%3A%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32K%2FS32K142%25E4%25BD%25BF%25E7%2594%25A8CSEc%25E5%258A%259F%25E8%2583%25BD%25E8%258A%25AF%25E7%2589%2587%25E8%25A2%25AB%25E9%2594%2581%25E6%25AD%25BB%2Fm-p%2F2162840%2Fhighlight%2Ftrue%23M52369%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32K%2FS32K142%25E4%25BD%25BF%25E7%2594%25A8CSEc%25E5%258A%259F%25E8%2583%25BD%25E8%258A%25AF%25E7%2589%2587%25E8%25A2%25AB%25E9%2594%2581%25E6%25AD%25BB%2Fm-p%2F2162840%2Fhighlight%2Ftrue%23M52369%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EYes%2C%20it's%20necessary%20to%20erase%20the%20keys%20(disable%20CSEc)%20by%20CMD_DBG_CHAL%20and%20CMD_DBG_AUTH%20commands%20with%20knowledge%20of%20MASTER_ECU_KEY.%20Or%20use%20different%20debug%20probe%20(like%20Pemicro)%3C%2FP%3E%0A%3CP%3ERegards%2C%3C%2FP%3E%0A%3CP%3ELukas%3C%2FP%3E%3C%2FLINGO-BODY%3E