<?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のトピックflash programming library (IAP) problem</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/flash-programming-library-IAP-problem/m-p/577170#M19557</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by kim-y on Tue Mar 31 22:10:53 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have trouble with using the flash programming library (IAP).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I run it at the M0 core of LPC4357. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems there is no problem with using the library when I assigned the program data region to on-chip RAM.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;However, when I assigned program data region to external SDRAM, the flash writing api fails with error number of 14.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the return value of "Chip_IAP_CopyRamToFlash()" is 14. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Other functions "Chip_IAP_PreSectorForReadWrite()" and "Chip_IAP_EraseSector()" returns no error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I just add external SDRAM region (0x28000000)&amp;nbsp; in the "Memory configuration editor" of the "MCU Settings" and assigned it to the top of all other rams in the list.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(If I move one of on-chip RAMs to the top of the list, the library works with no problem.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What is the problem?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 20:19:27 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T20:19:27Z</dc:date>
    <item>
      <title>flash programming library (IAP) problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/flash-programming-library-IAP-problem/m-p/577170#M19557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by kim-y on Tue Mar 31 22:10:53 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have trouble with using the flash programming library (IAP).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I run it at the M0 core of LPC4357. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems there is no problem with using the library when I assigned the program data region to on-chip RAM.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;However, when I assigned program data region to external SDRAM, the flash writing api fails with error number of 14.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the return value of "Chip_IAP_CopyRamToFlash()" is 14. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Other functions "Chip_IAP_PreSectorForReadWrite()" and "Chip_IAP_EraseSector()" returns no error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I just add external SDRAM region (0x28000000)&amp;nbsp; in the "Memory configuration editor" of the "MCU Settings" and assigned it to the top of all other rams in the list.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(If I move one of on-chip RAMs to the top of the list, the library works with no problem.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What is the problem?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:19:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/flash-programming-library-IAP-problem/m-p/577170#M19557</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: flash programming library (IAP) problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/flash-programming-library-IAP-problem/m-p/577171#M19558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by MikeSimmonds on Tue Mar 31 22:19:44 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;In the 1700 series, to my certain knowledge, IAP 'copy ram to flash' only works from the&amp;nbsp; on-chip internal static ram.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I presume that this is also the case with the 4300 family.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is probably documented somewhere. If not it should d*mn well be.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:19:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/flash-programming-library-IAP-problem/m-p/577171#M19558</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: flash programming library (IAP) problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/flash-programming-library-IAP-problem/m-p/577172#M19559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by kim-y on Wed Apr 01 23:26:07 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems when I set the program data region to on-chip ram , coping the data from SDRAM to the flash.works. But if I changed program data region to SDRAM, it fails. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you think the difference is only the stack region? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If so, Just changing only the stack region may solve this problem??&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(I do not know how to do it though..)&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:19:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/flash-programming-library-IAP-problem/m-p/577172#M19559</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: flash programming library (IAP) problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/flash-programming-library-IAP-problem/m-p/577173#M19560</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 02 01:59:06 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;AFAIK, the data to be programmed MUST be placed in on-chip SRAM. You cannot put it in external RAM.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:19:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/flash-programming-library-IAP-problem/m-p/577173#M19560</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:19:29Z</dc:date>
    </item>
  </channel>
</rss>

