Code Read Protection (CRP) on MK64F512x issue

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Code Read Protection (CRP) on MK64F512x issue

跳至解决方案
1,215 次查看
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 项奖励
回复
1 解答
1,181 次查看
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 项奖励
回复
1 回复
1,182 次查看
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 项奖励
回复