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
Thanks
Solved! Go to Solution.
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.
If you are using MCUXpresso SDK, then you can modify the configuration in FlashConfig of startup_mk64f12.c.
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.
-------------------------------------------------------------------------------
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.
If you are using MCUXpresso SDK, then you can modify the configuration in FlashConfig of startup_mk64f12.c.
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.
-------------------------------------------------------------------------------