<?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>LPC MicrocontrollersのトピックRe: lpc802 write problem</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc802-write-problem/m-p/965560#M38224</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have test the lpc802 as follows.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Writing 0xAA to a cell containing 0x55 will end up with a value of 0xAA without erase.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;and i can write any data to a cell&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;containing 0x00&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;without erase successfully.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff; "&gt;So pls check&amp;nbsp;my questions again,and you must do some test and then reply my questions seriously.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff; "&gt;1. IAP: write lpc802 the same page 10000 times without erase ,can be writed successful ?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff; "&gt;2.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;if the chip is truely flash,the erase operation is must. but the lpc802 is real flash or eeprom?&lt;/P&gt;&lt;P style="border: 0px;"&gt;&lt;/P&gt;&lt;P style="border: 0px;"&gt;&lt;/P&gt;&lt;P style="border: 0px;"&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff; "&gt;13.1 Flash memory (&lt;EM&gt;EEPROM based&lt;/EM&gt;)&lt;BR /&gt;[1] Number of program/erase cycles.&lt;BR /&gt;[2] Programming times are given for writing 64 bytes to the flash. Tamb &amp;lt;= +85 刟C. Flash programming with IAP&lt;BR /&gt;calls (see LPC802 user manual).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff; "&gt;void writeflash(unsigned int DATA_E2_ADDR) //&amp;nbsp;DATA_E2_ADDR=0x2800&lt;BR /&gt;{&lt;BR /&gt; unsigned short i;&lt;BR /&gt;for(i=0;i&amp;lt;0x40;i++)&lt;BR /&gt; { &lt;BR /&gt; backup[i]=*((volatile uint8_t *)(DATA_E2_ADDR+i));&lt;BR /&gt; } &lt;BR /&gt;//FLASH_ErasePage(DATA_E2_ADDR+(page&amp;amp;0xC0)); //mask the erase&lt;BR /&gt;&lt;BR /&gt; FLASH_WritePage(DATA_E2_ADDR,backup);&lt;BR /&gt;}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 10 Aug 2019 02:42:57 GMT</pubDate>
    <dc:creator>99286547</dc:creator>
    <dc:date>2019-08-10T02:42:57Z</dc:date>
    <item>
      <title>lpc802 write problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc802-write-problem/m-p/965556#M38220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;IAP: write lpc802 the same page 10000 times without erase ,can be writed successful ?&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;or is there another method to erase and write the same page within 3ms?&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;write one time will be powerdown,and there is no time to erase before.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Aug 2019 01:15:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc802-write-problem/m-p/965556#M38220</guid>
      <dc:creator>99286547</dc:creator>
      <dc:date>2019-08-08T01:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: lpc802 write problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc802-write-problem/m-p/965557#M38221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Initialially (after an erase) all bits in flash are set to 1. The *only* thing you can do when writing to flash is to change a bit from 1 to 0. It is impossible to change a bit from 0 to 1, unless you erase the whole page (and thus change every bit in the page to 1). So, it depends entirely on what you want to store in your flash. If you can get away with only changing bits from 1 to 0 (unlikely, but it may suit your need), then it may be possible to write without erase, but if you are storing values, then, you will need to erase a page before writing to&amp;nbsp;it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Aug 2019 15:56:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc802-write-problem/m-p/965557#M38221</guid>
      <dc:creator>converse</dc:creator>
      <dc:date>2019-08-08T15:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: lpc802 write problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc802-write-problem/m-p/965558#M38222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;tks so much for your reply.&lt;/P&gt;&lt;P&gt;i see ,if the chip is truely flash,the erase operation is must.&lt;/P&gt;&lt;P&gt;but the lpc802 is real flash or eeprom?&lt;/P&gt;&lt;P&gt;have you tried to write the data 0x55 and then&amp;nbsp;&lt;SPAN&gt;write the data 0xAA without erase successfully?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Aug 2019 01:22:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc802-write-problem/m-p/965558#M38222</guid>
      <dc:creator>99286547</dc:creator>
      <dc:date>2019-08-09T01:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: lpc802 write problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc802-write-problem/m-p/965559#M38223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is real flash.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Writing 0xAA to a cell containing 0x55 will end up with a value of 0x00 as you can only change he value of he '1' bits.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Aug 2019 08:13:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc802-write-problem/m-p/965559#M38223</guid>
      <dc:creator>converse</dc:creator>
      <dc:date>2019-08-09T08:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: lpc802 write problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc802-write-problem/m-p/965560#M38224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have test the lpc802 as follows.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Writing 0xAA to a cell containing 0x55 will end up with a value of 0xAA without erase.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;and i can write any data to a cell&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;containing 0x00&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;without erase successfully.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff; "&gt;So pls check&amp;nbsp;my questions again,and you must do some test and then reply my questions seriously.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff; "&gt;1. IAP: write lpc802 the same page 10000 times without erase ,can be writed successful ?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff; "&gt;2.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;if the chip is truely flash,the erase operation is must. but the lpc802 is real flash or eeprom?&lt;/P&gt;&lt;P style="border: 0px;"&gt;&lt;/P&gt;&lt;P style="border: 0px;"&gt;&lt;/P&gt;&lt;P style="border: 0px;"&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff; "&gt;13.1 Flash memory (&lt;EM&gt;EEPROM based&lt;/EM&gt;)&lt;BR /&gt;[1] Number of program/erase cycles.&lt;BR /&gt;[2] Programming times are given for writing 64 bytes to the flash. Tamb &amp;lt;= +85 刟C. Flash programming with IAP&lt;BR /&gt;calls (see LPC802 user manual).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff; "&gt;void writeflash(unsigned int DATA_E2_ADDR) //&amp;nbsp;DATA_E2_ADDR=0x2800&lt;BR /&gt;{&lt;BR /&gt; unsigned short i;&lt;BR /&gt;for(i=0;i&amp;lt;0x40;i++)&lt;BR /&gt; { &lt;BR /&gt; backup[i]=*((volatile uint8_t *)(DATA_E2_ADDR+i));&lt;BR /&gt; } &lt;BR /&gt;//FLASH_ErasePage(DATA_E2_ADDR+(page&amp;amp;0xC0)); //mask the erase&lt;BR /&gt;&lt;BR /&gt; FLASH_WritePage(DATA_E2_ADDR,backup);&lt;BR /&gt;}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Aug 2019 02:42:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc802-write-problem/m-p/965560#M38224</guid>
      <dc:creator>99286547</dc:creator>
      <dc:date>2019-08-10T02:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: lpc802 write problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc802-write-problem/m-p/965561#M38225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I read the LPC802 manual in greater detail. It appears to work in a different way to other LPC parts that I have used.specifically you can write 16 times before requiring an erase, so sorry for misleading you. See the bold section below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From lpc802 User manual section&amp;nbsp;4.5.7&amp;nbsp;Copy RAM to flash&lt;BR /&gt;When writing to the flash, the following limitations apply:&lt;BR /&gt;The smallest amount of data that can be written to flash by the copy RAM to flash command is 64 byte (equal to one page).&lt;BR /&gt;One page consists of 16 flash words (lines), and the smallest amount that can be modified per flash write is one flash word (one line). This limitation exists because ECC is applied during the flash write operation, see Section 4.3.3.&lt;BR /&gt;&lt;STRONG&gt;To avoid write disturbance (a mechanism intrinsic to flash memories), an erase should be performed after 16 consecutive writes inside the same page. Note that the erase operation then erases the entire sector.&lt;/STRONG&gt;&lt;BR /&gt;Remark: Once a page has been written to 16 times, it is still possible to write to other pages within the same sector without performing a sector erase (assuming that those pages have been erased previously).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Aug 2019 20:46:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc802-write-problem/m-p/965561#M38225</guid>
      <dc:creator>converse</dc:creator>
      <dc:date>2019-08-12T20:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: lpc802 write problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc802-write-problem/m-p/965562#M38226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;1. IAP: write lpc802 the same page 10000 times without erase ,can be writed successful ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;i have &amp;nbsp;&lt;SPAN&gt;writen lpc802 the same address (0x2800) 256&amp;nbsp;times without erase successfully.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;and so far i have&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;wirten the chip&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff;"&gt;without erase&amp;nbsp;successfully.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;so i want to know if i can wirte the chip&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;without erase forever?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f; "&gt;so if the lpc802 is real eeprom,i will&amp;nbsp;be sure to do that&amp;nbsp;disregard the datasheet .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f; "&gt;i &amp;nbsp;persist in you have&amp;nbsp;to do some test.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f; "&gt;if you do not sure about it,pls ask for original designer.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f; "&gt;tks so much.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Aug 2019 00:49:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc802-write-problem/m-p/965562#M38226</guid>
      <dc:creator>99286547</dc:creator>
      <dc:date>2019-08-13T00:49:55Z</dc:date>
    </item>
  </channel>
</rss>

