<?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: Writing Flash LPC1114 in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/Writing-Flash-LPC1114/m-p/529531#M1533</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by frame on Mon May 21 03:09:56 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Actually, yes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem with Flash is, you can erase only blockwise, i.e. one page.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Erasing sets all bits to 1, thus empty pages contain 0xFF Once you 'programmed' one bit/byte to 0, you can't change it without erasing the whole page.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But you can change all bits down to zeros at any time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If that's not sufficient for you, get a part with internal EEPROM (this is byte-wise erasable), or use an external EEPROM.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: Zero&lt;/STRONG&gt;&lt;BR /&gt;No :mad:&lt;BR /&gt;&lt;BR /&gt;IAP AN: &lt;A href="http://"&gt;http://www.nxp.com/documents/application_note/AN10995.zip&lt;/A&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 00:14:58 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T00:14:58Z</dc:date>
    <item>
      <title>Writing Flash LPC1114</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Writing-Flash-LPC1114/m-p/529529#M1531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by celephicus on Sun May 20 21:31:01 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Greetings. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am investigating the IAP commands to write Flash. They only write a complete Flash page (256 bytes), so I need to allocate a 256 byte buffer in RAM, copy the Flash contents to it, write my data to the buffer, and then call IAP to write the buffer to Flash. Is there any way to write just a few bytes?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:14:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Writing-Flash-LPC1114/m-p/529529#M1531</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: Writing Flash LPC1114</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Writing-Flash-LPC1114/m-p/529530#M1532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Mon May 21 00:24:13 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: celephicus&lt;/STRONG&gt;&lt;BR /&gt;Flash. Is there any way to write just a few bytes?&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;No :mad:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;IAP AN: &lt;/SPAN&gt;&lt;A href="http://"&gt;http://www.nxp.com/documents/application_note/AN10995.zip&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:14:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Writing-Flash-LPC1114/m-p/529530#M1532</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: Writing Flash LPC1114</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Writing-Flash-LPC1114/m-p/529531#M1533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by frame on Mon May 21 03:09:56 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Actually, yes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem with Flash is, you can erase only blockwise, i.e. one page.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Erasing sets all bits to 1, thus empty pages contain 0xFF Once you 'programmed' one bit/byte to 0, you can't change it without erasing the whole page.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But you can change all bits down to zeros at any time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If that's not sufficient for you, get a part with internal EEPROM (this is byte-wise erasable), or use an external EEPROM.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: Zero&lt;/STRONG&gt;&lt;BR /&gt;No :mad:&lt;BR /&gt;&lt;BR /&gt;IAP AN: &lt;A href="http://"&gt;http://www.nxp.com/documents/application_note/AN10995.zip&lt;/A&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:14:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Writing-Flash-LPC1114/m-p/529531#M1533</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: Writing Flash LPC1114</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Writing-Flash-LPC1114/m-p/529532#M1534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by celephicus on Mon May 21 20:17:07 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: frame&lt;/STRONG&gt;&lt;BR /&gt;Actually, yes.&lt;BR /&gt;&lt;BR /&gt;The problem with Flash is, you can erase only blockwise, i.e. one page.&lt;BR /&gt;Erasing sets all bits to 1, thus empty pages contain 0xFF Once you 'programmed' one bit/byte to 0, you can't change it without erasing the whole page.&lt;BR /&gt;But you can change all bits down to zeros at any time.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is a further wrinkle: writes (setting a bit from '1' to '0') should only be done [B]once[/B] per 16 byte page, due to the error correction hardware associated with the Flash. Multiple writes per page may give errors on read. This is gone into in the (somewhat misleadingly titled) Flash Programming Hardware chapter of the LPC111x User Manual.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Full marks to NXP for allowing access to the IAP routines.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:14:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Writing-Flash-LPC1114/m-p/529532#M1534</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:14:58Z</dc:date>
    </item>
  </channel>
</rss>

