JM60 Security Programming via CW??

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

JM60 Security Programming via CW??

Jump to solution
632 Views
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

Labels (1)
0 Kudos
1 Solution
487 Views
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.

View solution in original post

0 Kudos
3 Replies
488 Views
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 Kudos
487 Views
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 Kudos
487 Views
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 Kudos