Code Read Protection (CRP) on MK64F512x issue

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

Code Read Protection (CRP) on MK64F512x issue

Jump to solution
768 Views
chhsu0229
Contributor II

how can I work Code Read Protection (CRD) on MK64f512x.


I am work on MK64F512x Code Read Protection (CPR) as CRP_1 code protection. It should be not accessible read code by JTAG after setting the value 0x12345678 (CRP1 lever ) on flash addreee 0x2FC.

However, the result is not true and it sill is accessible to be read with JTAG..

 

I added the following code in main.c on my projector

The JTAG still can read flash of MK64F512x data.

#include <NXP/crp.h>
// Variable to store CRP value in. Will be placed automatically
// by the linker when "Enable Code Read Protect" selected.
// See crp.h header for more information

__CRP const uint32_t CRP_WORD = CRP_CRP1;

I also read the 0x2FC address and value is 0x12345678. This value is the same as #define CRP_CRP1 0x12345678

Capture.JPG

Thanks

0 Kudos
Reply
1 Solution
734 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi chhsu0229,

Sorry for the delay!
You can refer the discussion in: flash is secured but flash config field is not
FSEC[SEC] is able to achieve this function.

FTFE_FSEC.jpg

If you are using MCUXpresso SDK, then you can modify the configuration in FlashConfig of startup_mk64f12.c.

FlashConfig.jpg

Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

View solution in original post

0 Kudos
Reply
1 Reply
735 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi chhsu0229,

Sorry for the delay!
You can refer the discussion in: flash is secured but flash config field is not
FSEC[SEC] is able to achieve this function.

FTFE_FSEC.jpg

If you are using MCUXpresso SDK, then you can modify the configuration in FlashConfig of startup_mk64f12.c.

FlashConfig.jpg

Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos
Reply