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?
Thank you!
Solved! Go to Solution.
Hello @kwagner
No, wont' corrupt your software. The important is please read CRP level definition carefully and config
the right CRP.
BR
Alice
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
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!
Hello @kwagner
No, wont' corrupt your software. The important is please read CRP level definition carefully and config
the right CRP.
BR
Alice