LPC824 - Setting Code Read Protection (CRP)

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

LPC824 - Setting Code Read Protection (CRP)

跳至解决方案
1,293 次查看
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 解答
1,266 次查看
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 回复数
1,278 次查看
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 项奖励
回复
1,270 次查看
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 项奖励
回复
1,267 次查看
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 项奖励
回复