S32K314 HSE ADKP

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

S32K314 HSE ADKP

1,191 Views
SanZhang1
Contributor I

Hi,NXP

    I'm developing ADKP(HSE static password with UID diversified) function.I have two questuions to ask.

1、when I call interface HSE_ProgramAdkp() to set ADKP password,the response is HSE_SRV_RSP_OK.After excuting HSE_CalculateAdkpHash(),i call  interface  HSE_ReadAdkp(),this time the response is HSE_SRV_RSP_NOT_ALLOWED.I don‘t understand why?image.pngimage.png

image.pngimage.png

2、if JTAG secure Debug is enable, i want to erase and reprogram.At this point, is it only possible to unlock the Jtag by using S32DS PE debug or Trace32 first, and then perform the corresponding operations using Jlink? Can the unlocking process be executed within the Program Flash?

Looking forward to your reply!

Best Regards!

0 Kudos
Reply
2 Replies

1,146 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

1) Which example code this is based on?

2) Certainly not, once you have applied secure debug, a password must be entered after every reset and permanent unlock cannot be done. This needs to be supported by debugger, I am aware of PeMicro and TRACE32. For Segger, please contact their support, I dont know if is supported or not, but in the following thread it is being told it is not:
https://community.nxp.com/t5/S32K/s32k3-secure-debug-interface/m-p/1954589

0 Kudos
Reply

1,133 Views
SanZhang1
Contributor I

Thanks for your reply!

1、It's based on "S32K3_HSE_DemoExamples_1_0_0",specifically the S32K344_DemoAppTemplate in that file.

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2186203%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ES32K314%20HSE%20ADKP%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2186203%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2CNXP%3C%2FP%3E%3CP%3E%26nbsp%3B%20%26nbsp%3B%20I'm%20developing%20ADKP(HSE%20static%20password%20with%20UID%20%3CSPAN%3Ediversified%3C%2FSPAN%3E)%20function.I%20have%20two%20questuions%20to%20ask.%3C%2FP%3E%3CP%3E%3CSPAN%3E1%E3%80%81when%20I%20call%20interface%20HSE_ProgramAdkp()%20to%20set%20ADKP%20password%2Cthe%20response%20is%26nbsp%3BHSE_SRV_RSP_OK.After%20excuting%26nbsp%3BHSE_CalculateAdkpHash()%2Ci%20call%26nbsp%3B%20interface%26nbsp%3B%20HSE_ReadAdkp()%2Cthis%20time%20the%20response%20is%26nbsp%3BHSE_SRV_RSP_NOT_ALLOWED.I%20don%E2%80%98t%20understand%20why%EF%BC%9F%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22image.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22image.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F360785i57B073DB3E634F84%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22image.png%22%20alt%3D%22image.png%22%20%2F%3E%3Cspan%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3Eimage.png%3C%2Fspan%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22image.png%22%20style%3D%22width%3A%20887px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22image.png%22%20style%3D%22width%3A%20887px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F360788i482E7DF4F5FD4EA9%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22image.png%22%20alt%3D%22image.png%22%20%2F%3E%3Cspan%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3Eimage.png%3C%2Fspan%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E2%E3%80%81if%20JTAG%20secure%20Debug%20is%20enable%2C%20i%20want%20to%20erase%20and%20reprogram.At%20this%20point%2C%20is%20it%20only%20possible%20to%20unlock%20the%20Jtag%20by%20using%20S32DS%20PE%20debug%20or%20Trace32%20first%2C%20and%20then%20perform%20the%20corresponding%20operations%20using%20Jlink%3F%20Can%20the%20unlocking%20process%20be%20executed%20within%20the%20Program%20Flash%3F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3ELooking%20forward%20to%20your%20reply!%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EBest%20Regards!%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2187020%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K314%20HSE%20ADKP%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2187020%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThanks%20for%20your%20reply!%3C%2FP%3E%3CP%3E1%E3%80%81It's%20based%20on%20%22S32K3_HSE_DemoExamples_1_0_0%22%2Cspecifically%20the%20S32K344_DemoAppTemplate%20in%20that%20file.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2186658%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K314%20HSE%20ADKP%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2186658%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E1)%20Which%20example%20code%20this%20is%20based%20on%3F%3C%2FP%3E%0A%3CP%3E2)%20Certainly%20not%2C%20once%20you%20have%20applied%20secure%20debug%2C%20a%20password%20must%20be%20entered%20after%20every%20reset%20and%20permanent%20unlock%20cannot%20be%20done.%20This%20needs%20to%20be%20supported%20by%20debugger%2C%20I%20am%20aware%20of%20PeMicro%20and%20TRACE32.%20For%20Segger%2C%20please%20contact%20their%20support%2C%20I%20dont%20know%20if%20is%20supported%20or%20not%2C%20but%20in%20the%20following%20thread%20it%20is%20being%20told%20it%20is%20not%3A%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32K%2Fs32k3-secure-debug-interface%2Fm-p%2F1954589%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32K%2Fs32k3-secure-debug-interface%2Fm-p%2F1954589%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E