LPC824 - Setting Code Read Protection (CRP)

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

LPC824 - Setting Code Read Protection (CRP)

ソリューションへジャンプ
469件の閲覧回数
kwagner
Contributor II

Hello!

I was hoping to understand more about the Code Read Protection on the LPC824 microcontroller. From what I've been reading, it sounds like the Code Read Protection isn't a dedicated register, but rather just a specific location in memory. Is this correct?

Why it matters to me - I have a production released binary that was compiled without "Enable automatic placement of Code Read Protection field in image" selected. I'd like to enabled Code Read Protection after programming the binary. If I simply write 0x87654321 to memory location 0x02FC, is it possible that I overwrite a functional part of my binary?

kwagner_0-1715715303379.png

 

Thank you!

ラベル(1)
0 件の賞賛
返信
1 解決策
442件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @kwagner 

No, wont' corrupt your software. The important is please read CRP level definition carefully and config 

the right CRP.

 

BR

Alice

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
454件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @kwagner 

1)"From what I've been reading, it sounds like the Code Read Protection isn't a dedicated register, but rather just a specific location in memory. Is this correct?"

->> Yes.

2) The minimum size of flash write and erase is 64 bytes. 

Recommend you read out flash, then change the CRP configuration. Then program the whole flash again using new image.

 

BR

Alice

0 件の賞賛
返信
446件の閲覧回数
kwagner
Contributor II

Hi Alice,

Thanks for the information! If I overwrite memory locations 0x02FC - 0x02FF in my binary, is that dangerous? Is this memory location specifically set aside for CRP or could this corrupt my software?

Thanks!

0 件の賞賛
返信
443件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @kwagner 

No, wont' corrupt your software. The important is please read CRP level definition carefully and config 

the right CRP.

 

BR

Alice

0 件の賞賛
返信