Can LPC1754 CRP settings be changed from code in runtime?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Can LPC1754 CRP settings be changed from code in runtime?

474 Views
amit1234
NXP Employee
NXP Employee

Customer needs to change CRP settings in runtime in code... Can it be done? If yes how?

Thanks,

amit.

0 Kudos
2 Replies

363 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Amit Gombi,

   From the user manual, we can get that:

Code Read Protection is a mechanism that allows user to enable different levels of security in the system so that access to the on-chip flash and use of the ISP can be
restricted. When needed, CRP is invoked by programming a specific pattern in flash location at 0x000002FC. IAP commands are not affected by the code read protection.

  So, when you run the code, you can use the IAP to modify the flash address 0X000002FC, to change the CRP, then do a software reset, the modified CRP will work.

Wish it helps you!


Have a great day,
Kerry

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

363 Views
converse
Senior Contributor V

I don't see why not. CRP is just a value in flash, so rewrite it (the whole sector containing the CRP value) and reset the cpu. 

0 Kudos