<?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: LPC5528 Simple CRP enable/disable in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5528-Simple-CRP-enable-disable/m-p/1462515#M48881</link>
    <description>&lt;P&gt;&lt;SPAN class=""&gt;For all users, which want to implement s&lt;/SPAN&gt;&lt;SPAN class=""&gt;imple CRP (Code Read Protection) for LPC55xx / LPC55Sxx:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Disable debug, and fully read protection: CMPA cc_socu_pin / cc_socu_dflt to 0xFC0003FF / 0xFFFF0000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Reenable debug: CMPA cc_socu_pin / cc_socu_dflt to 0/0&lt;/SPAN&gt;&lt;STRONG&gt;&lt;I&gt;&lt;SPAN class=""&gt; and CFPA&lt;/SPAN&gt;&lt;/I&gt;&lt;/STRONG&gt;&lt;SPAN class=""&gt; set all 0 and increase version.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 23 May 2022 14:24:36 GMT</pubDate>
    <dc:creator>bressan</dc:creator>
    <dc:date>2022-05-23T14:24:36Z</dc:date>
    <item>
      <title>LPC5528 Simple CRP enable/disable</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5528-Simple-CRP-enable-disable/m-p/1449007#M48564</link>
      <description>&lt;P&gt;I want to write a simple code read protection for LPC5528, which can be enabled/disabled via USB.&lt;/P&gt;&lt;P&gt;Until now, I have only LPC55S28.&lt;/P&gt;&lt;P&gt;Afraid of bricking the device, I tried writing in customer area first.&lt;/P&gt;&lt;P&gt;I tried writing on a LPC55S28 via FFR this way:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;DisableIRQ(); setcpu100MHz();
Status = FLASH_Init(&amp;amp;flashInstance); //returns 0
Status = FFR_Init(&amp;amp;flashInstance);  //returns 0=ok
FLASH_GetProperty(&amp;amp;flashInstance, kFLASH_PropertyPflashPageSize, &amp;amp;PflashPageSize);

Status = FFR_InfieldPageWrite(&amp;amp;flashInstance, iap_FlashRam, len);
//returns 0x64. why?&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;iap_flashram contains a copy of the 0x09df00 region with modified data at offset 0x100. len is 32 bytes.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 08:14:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5528-Simple-CRP-enable-disable/m-p/1449007#M48564</guid>
      <dc:creator>bressan</dc:creator>
      <dc:date>2022-04-26T08:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: LPC5528 Simple CRP enable/disable</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5528-Simple-CRP-enable-disable/m-p/1449085#M48565</link>
      <description>&lt;P&gt;I was able to write, if len==0x200.&lt;BR /&gt;It seems, like I must write the full page at once. So, why is there a parameter for the length?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 09:04:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5528-Simple-CRP-enable-disable/m-p/1449085#M48565</guid>
      <dc:creator>bressan</dc:creator>
      <dc:date>2022-04-26T09:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: LPC5528 Simple CRP enable/disable</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5528-Simple-CRP-enable-disable/m-p/1449694#M48571</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hello Bressan,&lt;/P&gt;
&lt;P&gt;Yes, the length must equal the page size.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Alice_Yang_0-1651042551025.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/178127iA5C3B91BD3103E0E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Alice_Yang_0-1651042551025.png" alt="Alice_Yang_0-1651042551025.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;There may be different length for other part flash page.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 06:57:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5528-Simple-CRP-enable-disable/m-p/1449694#M48571</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2022-04-27T06:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: LPC5528 Simple CRP enable/disable</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5528-Simple-CRP-enable-disable/m-p/1462515#M48881</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;For all users, which want to implement s&lt;/SPAN&gt;&lt;SPAN class=""&gt;imple CRP (Code Read Protection) for LPC55xx / LPC55Sxx:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Disable debug, and fully read protection: CMPA cc_socu_pin / cc_socu_dflt to 0xFC0003FF / 0xFFFF0000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Reenable debug: CMPA cc_socu_pin / cc_socu_dflt to 0/0&lt;/SPAN&gt;&lt;STRONG&gt;&lt;I&gt;&lt;SPAN class=""&gt; and CFPA&lt;/SPAN&gt;&lt;/I&gt;&lt;/STRONG&gt;&lt;SPAN class=""&gt; set all 0 and increase version.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2022 14:24:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC5528-Simple-CRP-enable-disable/m-p/1462515#M48881</guid>
      <dc:creator>bressan</dc:creator>
      <dc:date>2022-05-23T14:24:36Z</dc:date>
    </item>
  </channel>
</rss>

