Device is secure

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

Device is secure

546 次查看
vimalprasath
Contributor II

I have custom Board with K64 MCU embedded in it.when i try to flash the code via MCUXpresso and Multilink Debugger.Im getting this error "Device is secure .Erase to unsecure" 
How do i solve this issue?Capture.PNG

0 项奖励
回复
1 回复

482 次查看
jingpan
NXP TechSupport
NXP TechSupport

Hi,

Please select yes to unsecure the chip.

In Flash address 0x40c is the Flash security byte. If this byte is changed to a error value, you'll see it. This value is set in startup_mk64fxxx12.c.

__attribute__ ((used,section(".FlashConfig"))) const struct {
    unsigned int word1;
    unsigned int word2;
    unsigned int word3;
    unsigned int word4;
} Flash_Config = {0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFE};  //if you dont want to secure the chip

Details please find in 29.34.3 Flash Security Register (FTFE_FSEC)

Regards,

Jing

0 项奖励
回复