Hard Fault in ImportPlainSymKeyReq() when running SecureBootAppNoteDemo on S32K344EVB

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

Hard Fault in ImportPlainSymKeyReq() when running SecureBootAppNoteDemo on S32K344EVB

1,231 Views
Luu_Nghia_308
Contributor II

Dear NXP Support Team,

I am currently trying to run the sw745310 SecureBootAppNoteDemo with AB Swap on the S32K344EVB-T172 board.

During execution, I encounter a Hard Fault when the application calls the function ImportPlainSymKeyReq().

Luu_Nghia_308_0-1767774242446.png

 

Could you please help me analyze what might be causing this issue or suggest how to debug it further?

Thank you very much for your support.

0 Kudos
Reply
4 Replies

1,199 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

Have you followed procedure as described in readme.txt file, step by step? It is needed to built App project first then Cfg

0 Kudos
Reply

1,150 Views
Luu_Nghia_308
Contributor II

Hi @davidtosenovjan 

To be compatible with the S32K344 EVB board, I reconfigured the corresponding pins.
I changed the package from BGA 257 to MQFP 172.
I rebuilt the application code first, then rebuilt the configuration (cfg) code.
I also observed that some logs were printed via UART.
From the call stack, can you point out which part looks abnormal?

Luu_Nghia_308_2-1767860367237.png

 

Luu_Nghia_308_1-1767860308365.png

 

Luu_Nghia_308_0-1767859943571.png

 

0 Kudos
Reply

976 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

I am apologizing, I was out of office for couple of days.

Is there any progress on your side?

Are you using the same S32DS and RTD versions as specified?

Unfortunately this appnote is a bit outdated in comparsion to current RTD releases.

Secure boot is also covered in HSE demo examples

davidtosenovjan_0-1768315785629.png

 

0 Kudos
Reply

936 Views
Luu_Nghia_308
Contributor II

Hi @davidtosenovjan 

Currently, I am trying to develop based on the HSE example. You may close this ticket and assist me through the following ticket instead:

https://community.nxp.com/t5/S32K/Issue-with-FLASH-Write-Not-Programming-CMAC-Tag-in-S32K344/m-p/229...

 
Thank you very much.
0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2289252%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EHard%20Fault%20in%20ImportPlainSymKeyReq()%20when%20running%20SecureBootAppNoteDemo%20on%20S32K344EVB%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2289252%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%20class%3D%22%22%3E%3CSPAN%3EDear%20NXP%20Support%20Team%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%3EI%20am%20currently%20trying%20to%20run%20the%20%3C%2FSPAN%3E%3CSTRONG%3E%3CSPAN%3Esw745310%20SecureBootAppNoteDemo%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSPAN%3E%20with%20%3C%2FSPAN%3E%3CSTRONG%3E%3CSPAN%3EAB%20Swap%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSPAN%3E%20on%20the%20%3C%2FSPAN%3E%3CSTRONG%3E%3CSPAN%3ES32K344EVB-T172%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSPAN%3E%20board.%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%3EDuring%20execution%2C%20I%20encounter%20a%20%3C%2FSPAN%3E%3CSTRONG%3E%3CSPAN%3EHard%20Fault%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSPAN%3E%20when%20the%20application%20calls%20the%20function%20%3C%2FSPAN%3E%3CSTRONG%3E%3CSPAN%3EImportPlainSymKeyReq()%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSPAN%3E.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Luu_Nghia_308_0-1767774242446.png%22%20style%3D%22width%3A%201879px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Luu_Nghia_308_0-1767774242446.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Luu_Nghia_308_0-1767774242446.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Luu_Nghia_308_0-1767774242446.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F371968i46BBDAAB6C6B9A75%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Luu_Nghia_308_0-1767774242446.png%22%20alt%3D%22Luu_Nghia_308_0-1767774242446.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%20class%3D%22%22%3E%3CSPAN%3ECould%20you%20please%20help%20me%20analyze%20what%20might%20be%20causing%20this%20issue%20or%20suggest%20how%20to%20debug%20it%20further%3F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EThank%20you%20very%20much%20for%20your%20support.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2289985%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Hard%20Fault%20in%20ImportPlainSymKeyReq()%20when%20running%20SecureBootAppNoteDemo%20on%20S32K344EVB%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2289985%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%2F52613%22%20target%3D%22_blank%22%3E%40davidtosenovjan%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETo%20be%20compatible%20with%20the%20S32K344%20EVB%20board%2C%20I%20reconfigured%20the%20corresponding%20pins.%3CBR%20%2F%3EI%20changed%20the%20package%20from%20%3CSTRONG%3EBGA%20257%3C%2FSTRONG%3E%20to%20%3CSTRONG%3EMQFP%20172%3C%2FSTRONG%3E.%3CBR%20%2F%3EI%20rebuilt%20the%20%3CSTRONG%3Eapplication%20code%20first%3C%2FSTRONG%3E%2C%20then%20rebuilt%20the%20%3CSTRONG%3Econfiguration%20(cfg)%20code%3C%2FSTRONG%3E.%3CBR%20%2F%3EI%20also%20observed%20that%20some%20logs%20were%20printed%20via%20UART.%3CBR%20%2F%3EFrom%20the%20%3CSTRONG%3Ecall%20stack%3C%2FSTRONG%3E%2C%20can%20you%20point%20out%20which%20part%20looks%20abnormal%3F%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Luu_Nghia_308_2-1767860367237.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Luu_Nghia_308_2-1767860367237.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Luu_Nghia_308_2-1767860367237.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Luu_Nghia_308_2-1767860367237.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F372116i892366F8994839F7%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Luu_Nghia_308_2-1767860367237.png%22%20alt%3D%22Luu_Nghia_308_2-1767860367237.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Luu_Nghia_308_1-1767860308365.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Luu_Nghia_308_1-1767860308365.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Luu_Nghia_308_1-1767860308365.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Luu_Nghia_308_1-1767860308365.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F372115iCBE06BD1B1D2A372%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Luu_Nghia_308_1-1767860308365.png%22%20alt%3D%22Luu_Nghia_308_1-1767860308365.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Luu_Nghia_308_0-1767859943571.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Luu_Nghia_308_0-1767859943571.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Luu_Nghia_308_0-1767859943571.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Luu_Nghia_308_0-1767859943571.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F372112i3FDB89C0557E4AFB%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Luu_Nghia_308_0-1767859943571.png%22%20alt%3D%22Luu_Nghia_308_0-1767859943571.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2289635%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Hard%20Fault%20in%20ImportPlainSymKeyReq()%20when%20running%20SecureBootAppNoteDemo%20on%20S32K344EVB%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2289635%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHave%20you%20followed%20procedure%20as%20described%20in%26nbsp%3Breadme.txt%20file%2C%20step%20by%20step%3F%20It%20is%20needed%20to%20built%20App%20project%20first%20then%20Cfg%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2292658%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Hard%20Fault%20in%20ImportPlainSymKeyReq()%20when%20running%20SecureBootAppNoteDemo%20on%20S32K344EVB%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2292658%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20am%20apologizing%2C%20I%20was%20out%20of%20office%20for%20couple%20of%20days.%3C%2FP%3E%0A%3CP%3EIs%20there%20any%20progress%20on%20your%20side%3F%3C%2FP%3E%0A%3CP%3EAre%20you%20using%20the%20same%20S32DS%20and%20RTD%20versions%20as%20specified%3F%3C%2FP%3E%0A%3CP%3EUnfortunately%20this%20appnote%20is%20a%20bit%20outdated%20in%20comparsion%20to%20current%20RTD%20releases.%3C%2FP%3E%0A%3CP%3ESecure%20boot%20is%20also%20covered%20in%20HSE%20demo%20examples%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22davidtosenovjan_0-1768315785629.png%22%20style%3D%22width%3A%20688px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22davidtosenovjan_0-1768315785629.png%22%20style%3D%22width%3A%20688px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22davidtosenovjan_0-1768315785629.png%22%20style%3D%22width%3A%20688px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F372680iD6CE7D5835B83FD6%2Fimage-dimensions%2F688x98%3Fv%3Dv2%22%20width%3D%22688%22%20height%3D%2298%22%20role%3D%22button%22%20title%3D%22davidtosenovjan_0-1768315785629.png%22%20alt%3D%22davidtosenovjan_0-1768315785629.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2293059%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Hard%20Fault%20in%20ImportPlainSymKeyReq()%20when%20running%20SecureBootAppNoteDemo%20on%20S32K344EVB%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2293059%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%2F52613%22%20target%3D%22_blank%22%3E%40davidtosenovjan%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECurrently%2C%20I%20am%20trying%20to%20develop%20based%20on%20the%20HSE%20example.%20You%20may%20close%20this%20ticket%20and%20assist%20me%20through%20the%20following%20ticket%20instead%3A%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32K%2FIssue-with-FLASH-Write-Not-Programming-CMAC-Tag-in-S32K344%2Fm-p%2F2293051%23M56105%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32K%2FIssue-with-FLASH-Write-Not-Programming-CMAC-Tag-in-S32K344%2Fm-p%2F2293051%23M56105%3C%2FA%3E%3C%2FP%3E%3CDIV%20class%3D%22%22%3E%3CDIV%20class%3D%22%22%3E%3CDIV%20class%3D%22%22%3E%3CDIV%20class%3D%22%22%3E%3CDIV%20class%3D%22%22%3E%26nbsp%3B%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CDIV%20class%3D%22%22%3EThank%20you%20very%20much.%3C%2FDIV%3E%3C%2FLINGO-BODY%3E