I try to do CRP in LPC51U68 in MCUxpresso.
I can see CRP enable option in LPC804. But I can’t see it in LPC51U68.
Why difference?
How to set CRP protection in LPC51U68 based on MCUxPresso?
LPC804 Project
LPC51U68 Project
There is currently some missing config info in the SDK that the IDE requires for enabling this option. This should be resolved in a future SDK release, But for now, you can easily "fix" this issue locally. This can be done as follows...
Assuming that you have drag'n'dropped the SDK into the IDE as a ZIP file, right click on the SDK in the Installed SDKs view and select "Unzip archive".
Then right click again on the SDK in the Installed SDKs view and select "Open Location". This should open a file browser (e.g. Windows Explorer)
Now close the IDE down, then switch to the file browser that you just opened and open the file "LPCXpresso51U68_manifest_v3_4.xml" in your favourite text editor.
Now search for the string "<linkerSettings".
You will now see a set of lines thus:
<linkerSettings nature="c_nature"> <linker property="start_symbol" value="ResetISR"/> <linker property="text_align" value="4"/> <linker property="data_align" value="4"/> <linker property="bss_align" value="4"/> <linker property="mtb_supported" value="false"/> </linkerSettings> <linkerSettings nature="cpp_nature"> <linker property="start_symbol" value="ResetISR"/> <linker property="text_align" value="4"/> <linker property="data_align" value="4"/> <linker property="bss_align" value="4"/> <linker property="mtb_supported" value="false"/> </linkerSettings>
Edit these both to add the line to both the c_nature and cpp_nature sections:
<linker property="crp_address" value="0x2fc"/>
Thus you should end up with something that looks like:
<linkerSettings nature="c_nature"> <linker property="start_symbol" value="ResetISR"/> <linker property="text_align" value="4"/> <linker property="data_align" value="4"/> <linker property="bss_align" value="4"/> <linker property="mtb_supported" value="false"/> <linker property="crp_address" value="0x2fc"/> </linkerSettings> <linkerSettings nature="cpp_nature"> <linker property="start_symbol" value="ResetISR"/> <linker property="text_align" value="4"/> <linker property="data_align" value="4"/> <linker property="bss_align" value="4"/> <linker property="mtb_supported" value="false"/> <linker property="crp_address" value="0x2fc"/> </linkerSettings>
Then save the file, and restart the IDE. You should now be able to see the CRP option in the IDE's Project Properties page.
Regards,
MCUXpresso IDE Support
Hello Li-Chin Wang,
Our development team team has working on it , it seems the SDK problem.
Anyway, I will tell you after get reply.
BR
Alice