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
Solved! Go to Solution.
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.
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.
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
you welcome.
you can click HotSync to lauch debugger. but you can't see data in memory window.
Best Regards,
Jun