Can LPC1754 CRP settings be changed from code in runtime?

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

Can LPC1754 CRP settings be changed from code in runtime?

578件の閲覧回数
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 件の賞賛
返信
2 返答(返信)

467件の閲覧回数
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 件の賞賛
返信

467件の閲覧回数
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 件の賞賛
返信