JM60 Security Programming via CW??

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

JM60 Security Programming via CW??

ソリューションへジャンプ
1,371件の閲覧回数
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 解決策
1,226件の閲覧回数
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 返答(返信)
1,227件の閲覧回数
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 件の賞賛
返信
1,226件の閲覧回数
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 件の賞賛
返信
1,226件の閲覧回数
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 件の賞賛
返信