<?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: IAP write block not blank in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/IAP-write-block-not-blank/m-p/538625#M6124</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by TheFallGuy on Fri Apr 22 03:08:31 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;What larryvc described works with both Red Probe and LPC-Link&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 21:53:25 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T21:53:25Z</dc:date>
    <item>
      <title>IAP write block not blank</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/IAP-write-block-not-blank/m-p/538604#M6103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by blasiis on Wed Apr 20 08:56:29 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using LPC1758 with LPCXpresso&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have try to use the IAP command "copy ram to flash" when the sector flash it isn't blank, but i need only to move a bit from 1 to 0.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Using this function other bit is write to 0 !!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Why ? I cannot write a 256 byte block already write ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:53:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/IAP-write-block-not-blank/m-p/538604#M6103</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: IAP write block not blank</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/IAP-write-block-not-blank/m-p/538605#M6104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by larryvc on Wed Apr 20 14:15:21 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Ciao blasiis,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you post your IAP call or your code so that we have more information to help you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Bouna notte,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Larry - O quando mi trovo in Italia, Lorenzo:)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:53:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/IAP-write-block-not-blank/m-p/538605#M6104</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: IAP write block not blank</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/IAP-write-block-not-blank/m-p/538606#M6105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by blasiis on Wed Apr 20 23:20:59 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Buongiorno&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is my problem:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I write the last 256 block in the sector 26, this loop run every 1 ms&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;uint8_t flash_buf[FLASH_BUF_SIZE];&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;addSett = 0x00060F00;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; add = addSett ;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // read 256 block &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (i = 0; i &amp;lt;FLASH_BUF_SIZE; i++)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; flash_buf&lt;/SPAN&gt;&lt;I&gt; = (*(uint8_t *)add);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; add ++;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&lt;BR /&gt;tmp = flash_buf[pnt] &amp;lt;&amp;lt;1;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // force to 0 the last bit at level 1&lt;BR /&gt;flash_buf[pnt] = tmp;&lt;BR /&gt;IAP_WriteFlash(26, 26, (unsigned)addSett, (unsigned *)flash_buf, FLASH_BUF_SIZE);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;void IAP_WriteFlash(unsigned Start, unsigned End, unsigned flash_address, unsigned * flash_data_buf, unsigned count)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IAP_SectorPrepare(Start, End, SystemCoreClock/1000);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IAP_WriteData(SystemCoreClock/1000, flash_address, flash_data_buf, count);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;void IAP_SectorPrepare(unsigned start_sector,unsigned end_sector,unsigned cclk)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; __disable_irq();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; param_table[0] = PREPARE_SECTOR_FOR_WRITE;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; param_table[1] = start_sector;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; param_table[2] = end_sector;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; param_table[3] = cclk;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; iap_entry(param_table,result_table);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; __enable_irq();&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;void IAP_WriteData(unsigned cclk, unsigned flash_address, unsigned * flash_data_buf, unsigned count)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; __disable_irq();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; param_table[0] = COPY_RAM_TO_FLASH;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; param_table[1] = flash_address;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; param_table[2] = (unsigned)flash_data_buf;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; param_table[3] = count;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; param_table[4] = cclk;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; iap_entry(param_table,result_table);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; __enable_irq();&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;When I force to 0 the bit, in lpcxpresso memory display, other bit in other addres (3-4 byte previuos)go to 0 !!!!!&lt;BR /&gt;In this phase I don't use erase sector, but i whish only delete 1 bit each loop !&lt;BR /&gt;I think the problem is that i try to write a 256 block not erased, it is possible this ?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/I&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:53:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/IAP-write-block-not-blank/m-p/538606#M6105</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: IAP write block not blank</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/IAP-write-block-not-blank/m-p/538607#M6106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by TheFallGuy on Thu Apr 21 00:08:29 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;You cannot write a single bit. The minimum you can flash is a sector, and to completely write it, it must be first be erased. The problem is the way that flash works. It is erased to all 1's and a write, can only change a 1 into a 0.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You should also re-think how you are writing to flash, as it has a maximum number of times it can be written to. I think NXP claim 10,000 write cycles. If you are trying to write every 1ms, that would imply you would write 10,000 times in 10 seconds! Even if they are conservative and are an order of magnitude out, that would still only last 100 seconds!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:53:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/IAP-write-block-not-blank/m-p/538607#M6106</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: IAP write block not blank</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/IAP-write-block-not-blank/m-p/538608#M6107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by blasiis on Thu Apr 21 01:01:30 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry for misunderstanding, 1 ms is only a time between 2 write command, but obviously after 8 write cycle the function is stopped (8 write cycle = 8 bit)!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I know that is possible only force a bit from 1 to 0 in the memory flash.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sequence Example :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;before write, byte = 11111110&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;write without erase with byte = 11111100&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;after write, byte = 11111100, but in other address (3-4 before) a bit is go to 0 !!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My question is: Before write command i must erase all sector also if I move bit only from 1 to 0 ??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;By&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:53:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/IAP-write-block-not-blank/m-p/538608#M6107</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: IAP write block not blank</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/IAP-write-block-not-blank/m-p/538609#M6108</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 Thu Apr 21 03:14:21 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;1. The correct sequence is: prepare-erase-prepare-write&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. If you want to change 1 bit of a sector, you have to read this sector in a buffer, change that bit and then write changed sector back to flash&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. You should read the return code of the IAP command to control if your command is executed:&lt;/SPAN&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;32.8.10 IAP Status Codes&lt;BR /&gt;0 CMD_SUCCESS Command is executed successfully.&lt;BR /&gt;1 INVALID_COMMAND Invalid command.&lt;BR /&gt;2 SRC_ADDR_ERROR Source address is not on a word boundary.&lt;BR /&gt;3 DST_ADDR_ERROR Destination address is not on a correct boundary.&lt;BR /&gt;4 SRC_ADDR_NOT_MAPPED Source address is not mapped in the memory map. Count value is taken in to consideration where applicable.&lt;BR /&gt;5 DST_ADDR_NOT_MAPPED Destination address is not mapped in the memory map. Count value is taken in to consideration where applicable.&lt;BR /&gt;6 COUNT_ERROR Byte count is not multiple of 4 or is not a permitted value.&lt;BR /&gt;7 INVALID_SECTOR Sector number is invalid.&lt;BR /&gt;8 SECTOR_NOT_BLANK Sector is not blank.&lt;BR /&gt;9 SECTOR_NOT_PREPARED_FOR_WRITE_OPERATION Command to prepare sector for write operation was not executed.&lt;BR /&gt;10 COMPARE_ERROR Source and destination data is not same.&lt;BR /&gt;11 BUSY Flash programming hardware interface is busy.&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:53:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/IAP-write-block-not-blank/m-p/538609#M6108</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: IAP write block not blank</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/IAP-write-block-not-blank/m-p/538610#M6109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by blasiis on Thu Apr 21 03:23:28 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: Zero&lt;/STRONG&gt;&lt;BR /&gt;1. The correct sequence is: prepare-erase-prepare-write&lt;BR /&gt; &lt;BR /&gt;2. If you want to change 1 bit of a sector, you have to read this sector in a buffer, change that bit and then write changed sector back to flash&lt;BR /&gt; &lt;BR /&gt;3. You should read the return code of the IAP command to control if your command is executed:&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I work as in the point 2 !!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt; // read 256 block 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (i = 0; i &amp;lt;FLASH_BUF_SIZE; i++)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; flash_buf&lt;I&gt; = (*(uint8_t *)add);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; add ++;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }

// change a bit
tmp = flash_buf[pnt] &amp;lt;&amp;lt;1;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // force to 0 the last bit at level 1
flash_buf[pnt] = tmp;

// prepare and write
IAP_WriteFlash(26, 26, (unsigned)addSett, (unsigned *)flash_buf, FLASH_BUF_SIZE);&lt;/I&gt;&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;SPAN&gt;The problem is that when execute write flash the second time with byte not a FF, but I change only a bit from 1 to 0 (tmp = flash_buf[pnt] &amp;lt;&amp;lt;) is changed also other bit. !!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The return code is CMD_SUCCESS !!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:53:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/IAP-write-block-not-blank/m-p/538610#M6109</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:53:16Z</dc:date>
    </item>
    <item>
      <title>Re: IAP write block not blank</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/IAP-write-block-not-blank/m-p/538611#M6110</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 Thu Apr 21 03:35:22 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Can't see there any erase command in your code :confused::confused:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Write without erase will not work !!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:53:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/IAP-write-block-not-blank/m-p/538611#M6110</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:53:16Z</dc:date>
    </item>
    <item>
      <title>Re: IAP write block not blank</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/IAP-write-block-not-blank/m-p/538612#M6111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by blasiis on Thu Apr 21 04:34:29 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: Zero&lt;/STRONG&gt;&lt;BR /&gt;Can't see there any erase command in your code :confused::confused:&lt;BR /&gt; &lt;BR /&gt;Write without erase will not work !!&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the problem, i want write without erase, but only bit 1 to 0 !&lt;/SPAN&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;2. If you want to change 1 bit of a sector, you have to read this sector&amp;nbsp; in a buffer, change that bit and then write changed sector back to&amp;nbsp; flash&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want execute this operation.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:53:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/IAP-write-block-not-blank/m-p/538612#M6111</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: IAP write block not blank</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/IAP-write-block-not-blank/m-p/538613#M6112</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 Thu Apr 21 04:44:02 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: blasiis&lt;/STRONG&gt;&lt;BR /&gt;This is the problem, i want write without erase...&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then you have to use something external like EEPROM / FRAM or RTC GPREG0-4.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:53:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/IAP-write-block-not-blank/m-p/538613#M6112</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: IAP write block not blank</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/IAP-write-block-not-blank/m-p/538614#M6113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by blasiis on Thu Apr 21 05:11:14 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: Zero&lt;/STRONG&gt;&lt;BR /&gt;Then you have to use something external like EEPROM / FRAM or RTC GPREG0-4.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want use flash as eeprom, but i don't have it !&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I want use flash without erase, any time that I write flash the modification is only bit 1 to 0, NOT 0 TO 1 that it isn't possible, I know !&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When all bit is a 0 I execute the erase sector, in this way I saving many life cycles&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am in debug mode with LPCXpresso&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:53:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/IAP-write-block-not-blank/m-p/538614#M6113</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: IAP write block not blank</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/IAP-write-block-not-blank/m-p/538615#M6114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by TheFallGuy on Thu Apr 21 08:00:55 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you looked at the LPC1777x and LPC178x families? They have a 4K EEPROM.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:53:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/IAP-write-block-not-blank/m-p/538615#M6114</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: IAP write block not blank</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/IAP-write-block-not-blank/m-p/538616#M6115</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 Thu Apr 21 08:23:02 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: TheFallGuy&lt;/STRONG&gt;&lt;BR /&gt;Have you looked at the LPC1777x and LPC178x families? They have a 4K EEPROM.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sounds lika a good idea, but&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Product status: Development :mad:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Package: &amp;gt;= LQFP144 :mad::mad:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:53:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/IAP-write-block-not-blank/m-p/538616#M6115</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: IAP write block not blank</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/IAP-write-block-not-blank/m-p/538617#M6116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by rmteo on Thu Apr 21 08:39:49 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Several companies (such as Microchip and ST) have published app notes describing how to use FLASH memory as EEPROM.&amp;nbsp; Using these software techniques you can achieve [B][U]effective[/U] [/B]FLASH endurance equivalent to EEPROM up to several million write cycles.&amp;nbsp; I have used the MCHP AN1095 app note - code is in C and should be easily adaptable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;______________________________________&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Why use 8 bits when you can have 32?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ARM CORTEX Rules!!! :D:D:D&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:53:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/IAP-write-block-not-blank/m-p/538617#M6116</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: IAP write block not blank</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/IAP-write-block-not-blank/m-p/538618#M6117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by blasiis on Thu Apr 21 09:19:20 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: rmteo&lt;/STRONG&gt;&lt;BR /&gt;Several companies (such as Microchip and ST) have published app notes describing how to use FLASH memory as EEPROM.&amp;nbsp; Using these software techniques you can achieve [B][U]effective[/U] [/B]FLASH endurance equivalent to EEPROM up to several million write cycles.&amp;nbsp; I have used the MCHP AN1095 app note - code is in C and should be easily adaptable.&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I cannot change Microprocessor !&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I know the techniques for use flash as eeprom (2 bank in alternation).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But this case is different: I need to write many time (15 min ) a timer value decremented, for solve the endurance flash cycle (10.000), I have think to start from a 4k sector with all bit in at 1 (flash erased) and any 15 minutes erase a single bit in byte in sequence.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here comes my problem: When write a byte from FF to FE in a 256 block where other byte it isn't&amp;nbsp; a FF some bit goes wrongly to zero in the same block !!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:53:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/IAP-write-block-not-blank/m-p/538618#M6117</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: IAP write block not blank</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/IAP-write-block-not-blank/m-p/538619#M6118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by larryvc on Thu Apr 21 10:19:02 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: blasiis&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;Here comes my problem: When write a byte from FF to FE in a 256 block where other byte it isn't&amp;nbsp; a FF some bit goes wrongly to zero in the same block !!&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This sounds like a hardware problem, bad flash.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you have another chip to test?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:53:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/IAP-write-block-not-blank/m-p/538619#M6118</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: IAP write block not blank</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/IAP-write-block-not-blank/m-p/538620#M6119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by blasiis on Thu Apr 21 23:47:12 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: larryvc&lt;/STRONG&gt;&lt;BR /&gt;This sounds like a hardware problem, bad flash.&lt;BR /&gt; &lt;BR /&gt;Do you have another chip to test?&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You had a Good idea :D !! &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But unfortunately after I tried the same result . . . . :(&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Viewed with lpcxpresso vindow memory but also with array in code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The 26 sector is blank (all bye a FF)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Write 0x00060000 = 00 - no problem&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Write 0x00060001 = 00 - no problem&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Write 0x00060002 = 00 - also the address 0x0006000B = BF !!!!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Remember that when write, befor i not erase the sector, but i move the bit only to 0 !!!!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:53:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/IAP-write-block-not-blank/m-p/538620#M6119</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: IAP write block not blank</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/IAP-write-block-not-blank/m-p/538621#M6120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by larryvc on Fri Apr 22 00:07:40 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;blasiis,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Bestia maiale.:D&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I see you have&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;tmp = flash_buf[pnt] &amp;lt;&amp;lt;1;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // force to 0 the last bit at level 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;flash_buf[pnt] = tmp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What is "pnt" defined as and what is it set to?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want,&amp;nbsp; export your code and attach it here.&amp;nbsp; I can try it on an LPC1769.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:53:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/IAP-write-block-not-blank/m-p/538621#M6120</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: IAP write block not blank</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/IAP-write-block-not-blank/m-p/538622#M6121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by blasiis on Fri Apr 22 00:35:21 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: larryvc&lt;/STRONG&gt;&lt;BR /&gt;blasiis,&lt;BR /&gt; &lt;BR /&gt;Bestia maiale.:D&lt;BR /&gt; &lt;BR /&gt;I see you have&lt;BR /&gt; &lt;BR /&gt;tmp = flash_buf[pnt] &amp;lt;&amp;lt;1;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // force to 0 the last bit at level 1&lt;BR /&gt;flash_buf[pnt] = tmp;&lt;BR /&gt; &lt;BR /&gt;What is "pnt" defined as and what is it set to?&lt;BR /&gt; &lt;BR /&gt;If you want,&amp;nbsp; export your code and attach it here.&amp;nbsp; I can try it on an LPC1769.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have change the code now for make test.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Try this wuth lpcxpresso:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) Mass Erase &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) Load application with write flash in a loop (1 second) like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;uint8_t flash_buf[FLASH_BUF_SIZE];
addSett = 0x00060000;
 add = addSett ;
 
// main every 1 second for example 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // read 256 block 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (i = 0; i &amp;lt;FLASH_BUF_SIZE; i++)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; flash_buf&lt;I&gt; = (*(uint8_t *)add);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; add ++;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }

IAP_WriteFlash(26, 26, (unsigned)addSett, (unsigned *)flash_buf, FLASH_BUF_SIZE);&amp;nbsp;&amp;nbsp; &amp;lt;--- break
// end main


void IAP_WriteFlash(unsigned Start, unsigned End, unsigned flash_address, unsigned * flash_data_buf, unsigned count)
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; IAP_SectorPrepare(Start, End, SystemCoreClock/1000);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IAP_WriteData(SystemCoreClock/1000, flash_address, flash_data_buf, count);


void IAP_SectorPrepare(unsigned start_sector,unsigned end_sector,unsigned cclk)
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; __disable_irq();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; param_table[0] = PREPARE_SECTOR_FOR_WRITE;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; param_table[1] = start_sector;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; param_table[2] = end_sector;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; param_table[3] = cclk;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; iap_entry(param_table,result_table);
&amp;nbsp;&amp;nbsp;&amp;nbsp; __enable_irq();
}

void IAP_WriteData(unsigned cclk, unsigned flash_address, unsigned * flash_data_buf, unsigned count)
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; __disable_irq();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; param_table[0] = COPY_RAM_TO_FLASH;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; param_table[1] = flash_address;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; param_table[2] = (unsigned)flash_data_buf;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; param_table[3] = count;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; param_table[4] = cclk;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; iap_entry(param_table,result_table);
&amp;nbsp;&amp;nbsp;&amp;nbsp; __enable_irq();
}

&lt;/I&gt;&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;SPAN&gt;3) Add break at IAP_WriteFlash call (not run for too many write)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4) Run&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;5) When break change in&amp;nbsp; flash_data_buf [0] = 0;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;6 ) Run&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;7) When break check in debug window mwmory address 0x00060000 = 0 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;8 ) change in&amp;nbsp; flash_data_buf [1] = 0; ([0] already = 0)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;9) Run&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;10) When break check in debug window mwmory address 0x00060001 = 0 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;11) change in&amp;nbsp; flash_data_buf [2] = 0; ([0 and 1] already = 0)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;12) Run&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;13) When break check in debug window mwmory address 0x00060002 = 0 and 0x0006000B = BF !!!!!!!!!! ????????????&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:53:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/IAP-write-block-not-blank/m-p/538622#M6121</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: IAP write block not blank</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/IAP-write-block-not-blank/m-p/538623#M6122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by larryvc on Fri Apr 22 01:11:30 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Why don't you try using a printf in semihosting mode to read and display the values in sector 26?&amp;nbsp; This way you will be able to determine if the debugger is returning correct values from your hardware or not.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It will be slow, but there are ways to speed up the output to the console.&amp;nbsp; See this post:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://"&gt;http://knowledgebase.nxp.com/showpost.php?p=6761&amp;amp;postcount=3&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:53:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/IAP-write-block-not-blank/m-p/538623#M6122</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:53:24Z</dc:date>
    </item>
  </channel>
</rss>

