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