Enable CRP in S32K322 (bootloader + app )

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

Enable CRP in S32K322 (bootloader + app )

2,031 Views
AbdNxp
Contributor II

Hello Dear NXP support Team,

Target : S32K322 (2MB PFlash, 295KB RAM)

I need help on how to Enable CRP (only code read protection).

any reference document.

how CRP can be disabled/enabled at Run time ?

 

Thanks

 

0 Kudos
Reply
4 Replies

1,918 Views
AbdNxp
Contributor II

Hi Daniel,

The source link you provided seems to have the content I need.

Thanks, Will update once I experiment it,

0 Kudos
Reply

1,998 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @AbdNxp,

Each application core is equipped with its own Memory Protection Unit (MPU), enabling control over memory access permissions at the core level.

At the system level, memory and peripheral access control is managed by the Extended Resource Domain Controller (XRDC).

The XRDC can be configured using the Resource Management (RM) module provided in the RTD MCAL package.

Additionally, there are RTD example projects available that demonstrate how to configure and use XRDC.

danielmartynek_0-1755241985078.png

 

BR, Daniel

0 Kudos
Reply

1,937 Views
AbdNxp
Contributor II

Hello Daniel,

I want Code read protection; Suppose I connect the J-link and tried reading the code from the Code flash then the debugger shall not be able to read the application.

will the solution you mentioned in the 1st reply fulfill this requirement? 

0 Kudos
Reply

1,924 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @AbdNxp,

No, that is something different.

Refer to this thread:

https://community.nxp.com/t5/S32K/S32K344-Application-debug-authorization-mode/td-p/2014871

There are links to other documents.

 

BR, Daniel

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2152235%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EEnable%20CRP%20in%20S32K322%20(bootloader%20%2B%20app%20)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2152235%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%20Dear%20NXP%20support%20Team%2C%3C%2FP%3E%3CP%3ETarget%20%3A%20S32K322%20(2MB%20PFlash%2C%20295KB%20RAM)%3C%2FP%3E%3CP%3EI%20need%20help%20on%20how%20to%20Enable%20CRP%20(only%20code%20read%20protection).%3C%2FP%3E%3CP%3Eany%20reference%20document.%3C%2FP%3E%3CP%3Ehow%20CRP%20can%20be%20disabled%2Fenabled%20at%20Run%20time%20%3F%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EThanks%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2153589%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Enable%20CRP%20in%20S32K322%20(bootloader%20%2B%20app%20)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2153589%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20Daniel%2C%3C%2FP%3E%3CP%3EThe%20source%20link%20you%20provided%20seems%20to%20have%20the%20content%20I%20need.%3C%2FP%3E%3CP%3EThanks%2C%20Will%20update%20once%20I%20experiment%20it%2C%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2153584%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Enable%20CRP%20in%20S32K322%20(bootloader%20%2B%20app%20)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2153584%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%2F239701%22%20target%3D%22_blank%22%3E%40AbdNxp%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3ENo%2C%20that%20is%20something%20different.%3C%2FP%3E%0A%3CP%3ERefer%20to%20this%20thread%3A%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32K%2FS32K344-Application-debug-authorization-mode%2Ftd-p%2F2014871%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32K%2FS32K344-Application-debug-authorization-mode%2Ftd-p%2F2014871%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EThere%20are%20links%20to%20other%20documents.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBR%2C%20Daniel%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2153327%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Enable%20CRP%20in%20S32K322%20(bootloader%20%2B%20app%20)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2153327%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%20Daniel%2C%3C%2FP%3E%3CP%3EI%20want%20Code%20read%20protection%3B%20Suppose%20I%20connect%20the%20%3CSTRONG%3EJ-link%3C%2FSTRONG%3E%20and%20tried%20reading%20the%20code%20from%20the%20Code%20flash%20then%20the%20debugger%20shall%20not%20be%20able%20to%20read%20the%20application.%3C%2FP%3E%3CP%3Ewill%20the%20solution%20you%20mentioned%20in%20the%201st%20reply%20fulfill%20this%20requirement%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2152740%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Enable%20CRP%20in%20S32K322%20(bootloader%20%2B%20app%20)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2152740%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%2F239701%22%20target%3D%22_blank%22%3E%40AbdNxp%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3EEach%20application%20core%20is%20equipped%20with%20its%20own%20Memory%20Protection%20Unit%20(MPU)%2C%20enabling%20control%20over%20memory%20access%20permissions%20at%20the%20core%20level.%3C%2FP%3E%0A%3CP%3EAt%20the%20system%20level%2C%20memory%20and%20peripheral%20access%20control%20is%20managed%20by%20the%20Extended%20Resource%20Domain%20Controller%20(XRDC).%3C%2FP%3E%0A%3CP%3EThe%20XRDC%20can%20be%20configured%20using%20the%20Resource%20Management%20(RM)%20module%20provided%20in%20the%20RTD%20MCAL%20package.%3C%2FP%3E%0A%3CP%3EAdditionally%2C%20there%20are%20RTD%20example%20projects%20available%20that%20demonstrate%20how%20to%20configure%20and%20use%20XRDC.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22danielmartynek_0-1755241985078.png%22%20style%3D%22width%3A%20524px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22danielmartynek_0-1755241985078.png%22%20style%3D%22width%3A%20524px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F352525i698CDFE4890B279B%2Fimage-dimensions%2F524x233%3Fv%3Dv2%22%20width%3D%22524%22%20height%3D%22233%22%20role%3D%22button%22%20title%3D%22danielmartynek_0-1755241985078.png%22%20alt%3D%22danielmartynek_0-1755241985078.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBR%2C%20Daniel%3C%2FP%3E%3C%2FLINGO-BODY%3E