JM60 Security Programming via CW??

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

JM60 Security Programming via CW??

跳至解决方案
650 次查看
timahrens
Contributor I


Hi Folks,

 

Just finishing up a JM60 project, and need to set the security.


Was wondering if there was a way to do it with Codewarrior.

 

I've used several of the Atmel processors, and it's pretty easy to close the door with their tools.  Didn't know if CW could do it that way.

 

Been playing with setting NVOPT in my source (C), but don't seem to put it in the right place, as the vectors don't get programmed before I get the Error 18 while downloading.

 

Using CW 6.3.

 

Thanks!

 

Tim

标签 (1)
0 项奖励
1 解答
505 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport

if you want secure flash without backdoor key, just below code:

/* NVOPT: KEYEN=0,FNORED=1,??=1,??=1,??=1,??=1,SEC01=0,SEC00=0 */

const unsigned char NVOPT_INIT @0x0000FFBF = 0x7C;

thus only mass erase can unsecure flash.

if you want secure flash with back door key. see attached sample code.

在原帖中查看解决方案

0 项奖励
3 回复数
506 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport

if you want secure flash without backdoor key, just below code:

/* NVOPT: KEYEN=0,FNORED=1,??=1,??=1,??=1,??=1,SEC01=0,SEC00=0 */

const unsigned char NVOPT_INIT @0x0000FFBF = 0x7C;

thus only mass erase can unsecure flash.

if you want secure flash with back door key. see attached sample code.

0 项奖励
505 次查看
timahrens
Contributor I

Thanks a lot Jun!


I was not sure where to put in the line of code - I placed just in front of my code in main.c and worked fine.

If I use the backdoor key code, does Codewarrior give me an option to select that and do a HotSync?

Thanks again,

Tim

0 项奖励
505 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport

you welcome.

you can click HotSync to lauch debugger. but you can't see data in memory window.

Best Regards,

Jun

0 项奖励