S32K312 Advanced Secure Boot Debug Configuration

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

S32K312 Advanced Secure Boot Debug Configuration

Jump to solution
1,162 Views
muzaffer-yavuz
Contributor I

I have a question regarding S32K312 Advanced Secure Boot implementation. Does "RAM application (reload after each reset/restart)" option in GDB SEGGER J-Link Debug Configuration Startup menu in S32DS has any effect on advanced secure boot in any possible linker script configuration at least in S32KXX_demo_app? For example does debugger loads application on different address (because of linker script) based on whether this option is selected or not?

 

 

0 Kudos
Reply
1 Solution
1,141 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @muzaffer-yavuz 

1. "RAM application (reload after each reset/restart)" has an effect for RAM projects only, not for flash projects. S32KXX_demo_app is flash project.
RAM projects are usually used for quick tests only to save time (flash is not programmed, project is loaded only to RAM). Obviously the limitation is size of RAM. It does not make sense to use RAM project for testing of advanced secure boot.
2. HSE_DEMOAPP (S32KXX_demo_app) can be used only with debugger Trace32 from Lauterbach. It does not work with other debuggers.
3. HSE_DEMOAPP was ported to HSE DemoExamples which can be used with any debugger:
https://www.nxp.com/webapp/Download?colCode=S32K3_HSE_DemoExamples

Regards,
Lukas

View solution in original post

0 Kudos
Reply
1 Reply
1,142 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @muzaffer-yavuz 

1. "RAM application (reload after each reset/restart)" has an effect for RAM projects only, not for flash projects. S32KXX_demo_app is flash project.
RAM projects are usually used for quick tests only to save time (flash is not programmed, project is loaded only to RAM). Obviously the limitation is size of RAM. It does not make sense to use RAM project for testing of advanced secure boot.
2. HSE_DEMOAPP (S32KXX_demo_app) can be used only with debugger Trace32 from Lauterbach. It does not work with other debuggers.
3. HSE_DEMOAPP was ported to HSE DemoExamples which can be used with any debugger:
https://www.nxp.com/webapp/Download?colCode=S32K3_HSE_DemoExamples

Regards,
Lukas

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2048212%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ES32K312%20Advanced%20Secure%20Boot%20Debug%20Configuration%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2048212%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20have%20a%20question%20regarding%20S32K312%20Advanced%20Secure%20Boot%20implementation.%20Does%20%22RAM%20application%20(reload%20after%20each%20reset%2Frestart)%22%20option%20in%20GDB%20SEGGER%20J-Link%20Debug%20Configuration%20Startup%20menu%20in%20S32DS%20has%20any%20effect%20on%20advanced%20secure%20boot%20in%20any%20possible%20linker%20script%20configuration%20at%20least%20in%20S32KXX_demo_app%3F%20For%20example%20does%20debugger%20loads%20application%20on%20different%20address%20(because%20of%20linker%20script)%20based%20on%20whether%20this%20option%20is%20selected%20or%20not%3F%3C%2FP%3E%3CDIV%20class%3D%22%22%3E%26nbsp%3B%3C%2FDIV%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2048491%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20S32K312%20Advanced%20Secure%20Boot%20Debug%20Configuration%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2048491%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F247031%22%20target%3D%22_blank%22%3E%40muzaffer-yavuz%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E1.%20%22RAM%20application%20(reload%20after%20each%20reset%2Frestart)%22%20has%20an%20effect%20for%20RAM%20projects%20only%2C%20not%20for%20flash%20projects.%20S32KXX_demo_app%20is%20flash%20project.%20%3CBR%20%2F%3ERAM%20projects%20are%20usually%20used%20for%20quick%20tests%20only%20to%20save%20time%20(flash%20is%20not%20programmed%2C%20project%20is%20loaded%20only%20to%20RAM).%20Obviously%20the%20limitation%20is%20size%20of%20RAM.%20It%20does%20not%20make%20sense%20to%20use%20RAM%20project%20for%20testing%20of%20advanced%20secure%20boot.%20%3CBR%20%2F%3E2.%20HSE_DEMOAPP%20(S32KXX_demo_app)%20can%20be%20used%20only%20with%20debugger%20Trace32%20from%20Lauterbach.%20It%20does%20not%20work%20with%20other%20debuggers.%3CBR%20%2F%3E3.%20HSE_DEMOAPP%20was%20ported%20to%20HSE%20DemoExamples%20which%20can%20be%20used%20with%20any%20debugger%3A%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fwebapp%2FDownload%3FcolCode%3DS32K3_HSE_DemoExamples%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.nxp.com%2Fwebapp%2FDownload%3FcolCode%3DS32K3_HSE_DemoExamples%3C%2FA%3E%3C%2FP%3E%0A%3CP%3ERegards%2C%3CBR%20%2F%3ELukas%3C%2FP%3E%3C%2FLINGO-BODY%3E