<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: LPC54114 NO_ISP setting for CRP in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54114-NO-ISP-setting-for-CRP/m-p/767070#M30863</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Luke Beno,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; From the MCUXpresso IDE user manual, we can get:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/35271i2986DE48947D1573/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The new project create Wizard have the CRP options:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/35403i2D056EF6AC143BB9/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You can refer to this post:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-334959"&gt;How to create a new LPC project using LPCOpen and MCUXpresso IDE&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After create it, then modify the crp.c file:&lt;/P&gt;&lt;P&gt;#if defined (__CODE_RED)&lt;BR /&gt;#include &amp;lt;NXP/crp.h&amp;gt;&lt;BR /&gt;// Variable to store CRP value in. Will be placed automatically&lt;BR /&gt;// by the linker when "Enable Code Read Protect" selected.&lt;BR /&gt;// See crp.h header for more information&lt;BR /&gt;__CRP const unsigned int CRP_WORD = &lt;STRONG&gt;CRP_NO_ISP&lt;/STRONG&gt;;//CRP_NO_CRP ;&lt;BR /&gt;#endif&lt;/P&gt;&lt;P&gt;Then build the project again, you can find the .hex file, address 0x2fc already be changed to the CRP_NO_ISP data:&lt;/P&gt;&lt;P&gt;#define CRP_NO_ISP&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x4E697370&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_5.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/35497i9036F7C83C9BA4C4/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_5.png" alt="pastedImage_5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then debug the code, check the memory:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_6.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/35542i954C43D8890C8E17/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_6.png" alt="pastedImage_6.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The CRP data really be changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can't make it work, you can check your hex file, whether 0X2FC have changed to 0x4E697370.&lt;/P&gt;&lt;P&gt;Just modify the data, and don't do the configuration in the IDE, won't realize the CRP modified function.&lt;/P&gt;&lt;P&gt;But, to the SDK, I still meet the same problem as you, I didn't find the CRP enable item in both the SDK create and SDK sample code, I will check it with our IDE department, after I get the reply, I will let you know!&lt;/P&gt;&lt;P&gt;Please wait patiently.&lt;/P&gt;&lt;P&gt;But if you are using the lpcopen, you can try my above method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Feb 2018 09:11:52 GMT</pubDate>
    <dc:creator>kerryzhou</dc:creator>
    <dc:date>2018-02-01T09:11:52Z</dc:date>
    <item>
      <title>LPC54114 NO_ISP setting for CRP</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54114-NO-ISP-setting-for-CRP/m-p/767069#M30862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using PIO0_31 in my product which also happens to be the pin that is used to put the MCU into ISP mode at boot.&amp;nbsp; Due to pin constraints, it is really difficult to use a different pin and I do not really intend jumping to the ISP modes using this pin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reading the User guide, it appeard that I can disable the ISP modes using the CRP register location in Flash.&amp;nbsp; Reading through the documents here&amp;nbsp;&lt;A class="link-titled" href="https://www.nxp.com/docs/en/user-guide/MCUXpresso_IDE_User_Guide.pdf" rel="nofollow noopener noreferrer" title="https://www.nxp.com/docs/en/user-guide/MCUXpresso_IDE_User_Guide.pdf" target="_blank"&gt;https://www.nxp.com/docs/en/user-guide/MCUXpresso_IDE_User_Guide.pdf&lt;/A&gt;&amp;nbsp; Page 119, it sounds like the following code can instruct the linker to load in this setting to Flash:&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;__CRP &lt;SPAN class="keyword token"&gt;const&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;unsigned&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;int&lt;/SPAN&gt; CRP_WORD &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; CRP_NO_CRP &lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The doc also refers to a gui setting in the "linker tab" which I have been unable to find.&amp;nbsp; I did find the code snippet in my startup_lpc5411x.c file.&amp;nbsp; So I edited that file to:&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;//*****************************************************************************&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;// Variable to store CRP value in. Will be placed automatically&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;// by the linker when "Enable Code Read Protect" selected.&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;// See crp.h header for more information&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;//*****************************************************************************&lt;/SPAN&gt;
&lt;SPAN class="property macro token"&gt;#if !defined (CORE_M0PLUS)&lt;/SPAN&gt;
&lt;SPAN class="property macro token"&gt;#include &lt;SPAN class="string token"&gt;&amp;lt;NXP/crp.h&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
__CRP &lt;SPAN class="keyword token"&gt;const&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;unsigned&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;int&lt;/SPAN&gt; CRP_WORD &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; CRP_NO_ISP&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="property macro token"&gt;#endif&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Re-build and program the device, it seems like the ISP is still enabled.&amp;nbsp; I test by driving the PIO0_31 pin low (enables ISP) and I can see with the debugger that the CPU jumps to a bootloader.&amp;nbsp; If I drive the pin high, code runs as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I'm confident that my method for changing CRP is not working, what is the recommended way, is there some GUI function that overrides it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jan 2018 05:07:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54114-NO-ISP-setting-for-CRP/m-p/767069#M30862</guid>
      <dc:creator>lukebeno</dc:creator>
      <dc:date>2018-01-30T05:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54114 NO_ISP setting for CRP</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54114-NO-ISP-setting-for-CRP/m-p/767070#M30863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Luke Beno,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; From the MCUXpresso IDE user manual, we can get:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/35271i2986DE48947D1573/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The new project create Wizard have the CRP options:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/35403i2D056EF6AC143BB9/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You can refer to this post:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-334959"&gt;How to create a new LPC project using LPCOpen and MCUXpresso IDE&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After create it, then modify the crp.c file:&lt;/P&gt;&lt;P&gt;#if defined (__CODE_RED)&lt;BR /&gt;#include &amp;lt;NXP/crp.h&amp;gt;&lt;BR /&gt;// Variable to store CRP value in. Will be placed automatically&lt;BR /&gt;// by the linker when "Enable Code Read Protect" selected.&lt;BR /&gt;// See crp.h header for more information&lt;BR /&gt;__CRP const unsigned int CRP_WORD = &lt;STRONG&gt;CRP_NO_ISP&lt;/STRONG&gt;;//CRP_NO_CRP ;&lt;BR /&gt;#endif&lt;/P&gt;&lt;P&gt;Then build the project again, you can find the .hex file, address 0x2fc already be changed to the CRP_NO_ISP data:&lt;/P&gt;&lt;P&gt;#define CRP_NO_ISP&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x4E697370&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_5.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/35497i9036F7C83C9BA4C4/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_5.png" alt="pastedImage_5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then debug the code, check the memory:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_6.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/35542i954C43D8890C8E17/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_6.png" alt="pastedImage_6.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The CRP data really be changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can't make it work, you can check your hex file, whether 0X2FC have changed to 0x4E697370.&lt;/P&gt;&lt;P&gt;Just modify the data, and don't do the configuration in the IDE, won't realize the CRP modified function.&lt;/P&gt;&lt;P&gt;But, to the SDK, I still meet the same problem as you, I didn't find the CRP enable item in both the SDK create and SDK sample code, I will check it with our IDE department, after I get the reply, I will let you know!&lt;/P&gt;&lt;P&gt;Please wait patiently.&lt;/P&gt;&lt;P&gt;But if you are using the lpcopen, you can try my above method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2018 09:11:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54114-NO-ISP-setting-for-CRP/m-p/767070#M30863</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2018-02-01T09:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54114 NO_ISP setting for CRP</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54114-NO-ISP-setting-for-CRP/m-p/1856733#M55944</link>
      <description>&lt;P&gt;I have the same problem. Can I set NO_ISP in SDK example?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2024 12:30:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54114-NO-ISP-setting-for-CRP/m-p/1856733#M55944</guid>
      <dc:creator>mohammadreza9977</dc:creator>
      <dc:date>2024-04-29T12:30:28Z</dc:date>
    </item>
  </channel>
</rss>

