<?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: LPC1857, Chip_IAP_ErasePage(addr_start, addr_start) fail!</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1857-Chip-IAP-ErasePage-addr-start-addr-start-fail/m-p/1437918#M48396</link>
    <description>&lt;P&gt;No, just stucked in the function&amp;nbsp;Chip_IAP_ErasePage().&lt;/P&gt;</description>
    <pubDate>Sat, 02 Apr 2022 04:38:07 GMT</pubDate>
    <dc:creator>KellyZou</dc:creator>
    <dc:date>2022-04-02T04:38:07Z</dc:date>
    <item>
      <title>LPC1857, Chip_IAP_ErasePage(addr_start, addr_start) fail!</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1857-Chip-IAP-ErasePage-addr-start-addr-start-fail/m-p/1436647#M48382</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;I want to use the internal flash for saving some data in BANK B with Sector_64KB.&lt;/P&gt;&lt;P&gt;I only succeeded in writing data to the fronter pages(1024B) of this sector a few times.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But now it is no possible to erase the page anymore, the code is stucked in&amp;nbsp;Chip_IAP_ErasePage().&lt;/P&gt;&lt;P&gt;Here is my steps:&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;Chip_IAP_PreSectorForReadWrite(sector, bankB)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; --&amp;nbsp;ret_code =&amp;nbsp;IAP_CMD_SUCCESS;&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;Chip_IAP_ErasePage(addr_start, addr_start)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; -- stucked. (But it successed for a few times)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help what I can do.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2022 03:10:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1857-Chip-IAP-ErasePage-addr-start-addr-start-fail/m-p/1436647#M48382</guid>
      <dc:creator>KellyZou</dc:creator>
      <dc:date>2022-03-31T03:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1857, Chip_IAP_ErasePage(addr_start, addr_start) fail!</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1857-Chip-IAP-ErasePage-addr-start-addr-start-fail/m-p/1437482#M48390</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In order to erase a page , please make sure you prepare that particular sector beforehand.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Following code will erase first page in Bank B.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/* Prepare sector 0 in Bank B*/&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;ret_code = Chip_IAP_PreSectorForReadWrite(0, 0, IAP_FLASH_BANK_B);&lt;BR /&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;/* Error checking */&lt;/DIV&gt;&lt;DIV&gt;if (ret_code != IAP_CMD_SUCCESS) {&lt;/DIV&gt;&lt;DIV&gt;while(1);&lt;/DIV&gt;&lt;DIV&gt;DEBUGOUT("Command failed to execute, return code is: %x\r\n", ret_code);&lt;/DIV&gt;&lt;DIV&gt;}&lt;/DIV&gt;&lt;DIV&gt;/* Erase Page */&lt;/DIV&gt;&lt;DIV&gt;Chip_IAP_ErasePage(START_PAGE_ADDR,END_PAGE_ADDR);&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks,&lt;/DIV&gt;&lt;DIV&gt;Jun Zhang&lt;/DIV&gt;</description>
      <pubDate>Fri, 01 Apr 2022 07:22:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1857-Chip-IAP-ErasePage-addr-start-addr-start-fail/m-p/1437482#M48390</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2022-04-01T07:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1857, Chip_IAP_ErasePage(addr_start, addr_start) fail!</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1857-Chip-IAP-ErasePage-addr-start-addr-start-fail/m-p/1437506#M48392</link>
      <description>&lt;P&gt;Thank you Mr.Zhang&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did do the same step as you did, but it didn't work.&lt;/P&gt;&lt;P&gt;Is there any misunderstanding about the erase process?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;__disable_irq();&lt;BR /&gt;ret_code = Chip_IAP_PreSectorForReadWrite(sector, sector, bank);&lt;BR /&gt;/* Error checking */&lt;BR /&gt;if (ret_code != IAP_CMD_SUCCESS) {&lt;BR /&gt;return ret_code;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/* Only erase a page */&lt;BR /&gt;ret_code = Chip_IAP_ErasePage(addr_page_start, addr_page_start);&lt;/P&gt;&lt;P&gt;/* Error checking */&lt;BR /&gt;if (ret_code != IAP_CMD_SUCCESS) {&lt;BR /&gt;}&lt;BR /&gt;__enable_irq();&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2022 07:45:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1857-Chip-IAP-ErasePage-addr-start-addr-start-fail/m-p/1437506#M48392</guid>
      <dc:creator>KellyZou</dc:creator>
      <dc:date>2022-04-01T07:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1857, Chip_IAP_ErasePage(addr_start, addr_start) fail!</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1857-Chip-IAP-ErasePage-addr-start-addr-start-fail/m-p/1437898#M48395</link>
      <description>&lt;P&gt;Did you check the error code？&lt;/P&gt;</description>
      <pubDate>Sat, 02 Apr 2022 03:24:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1857-Chip-IAP-ErasePage-addr-start-addr-start-fail/m-p/1437898#M48395</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2022-04-02T03:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1857, Chip_IAP_ErasePage(addr_start, addr_start) fail!</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1857-Chip-IAP-ErasePage-addr-start-addr-start-fail/m-p/1437918#M48396</link>
      <description>&lt;P&gt;No, just stucked in the function&amp;nbsp;Chip_IAP_ErasePage().&lt;/P&gt;</description>
      <pubDate>Sat, 02 Apr 2022 04:38:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1857-Chip-IAP-ErasePage-addr-start-addr-start-fail/m-p/1437918#M48396</guid>
      <dc:creator>KellyZou</dc:creator>
      <dc:date>2022-04-02T04:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1857, Chip_IAP_ErasePage(addr_start, addr_start) fail!</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1857-Chip-IAP-ErasePage-addr-start-addr-start-fail/m-p/1437986#M48397</link>
      <description>&lt;P&gt;Can I reproduce your issue with NXP demo code? Please let me know the the demo link and name. Thanks.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Apr 2022 09:25:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1857-Chip-IAP-ErasePage-addr-start-addr-start-fail/m-p/1437986#M48397</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2022-04-02T09:25:04Z</dc:date>
    </item>
  </channel>
</rss>

