<?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: IAP not to work?</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/IAP-not-to-work/m-p/516949#M1929</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by capiman on Sat Feb 07 12:42:48 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you checked if your function return 0 or 1?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you checked if one of the IAP functions failed?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If one failed, what result[0] is reported?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You are talking about "debug mode". Is it working in release mode?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 17:24:29 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T17:24:29Z</dc:date>
    <item>
      <title>IAP not to work?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/IAP-not-to-work/m-p/516947#M1927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by LeonCorleone on Sat Feb 07 11:13:22 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello all&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't know what to do with this big problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you can please help me.I takes me too much.&amp;nbsp;&amp;nbsp; :(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to write some data from Sram into flash by IAP. Actually I don't know why IAP doesn't work in debug mode of Keil?In debug it doesn't write anything into flash.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;my code is the same as below. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks. :)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#include &amp;lt;lpc17xx.h&amp;gt;//lpc17xx.h&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#include &amp;lt;absacc.h&amp;gt;/absacc.h&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;unsigned char IAP_Write(unsigned char *string);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;unsigned char a[5] __at(0x10000200);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#define IAP_ADDRESS&amp;nbsp; 0x1FFF1FF1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;unsigned int command[5];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;unsigned int result[5];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;typedef unsigned int (*IAP)(unsigned int[], unsigned int[]);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;static const IAP iap_entry = (IAP) IAP_ADDRESS;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;int main(void)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;unsigned char i=0;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;for(i=0;i&amp;lt;5;i++)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;a&lt;/SPAN&gt;&lt;I&gt;=i;&lt;BR /&gt;IAP_Write(a);&lt;BR /&gt;}&lt;BR /&gt;unsigned char IAP_Write(unsigned char *string)&lt;BR /&gt;{&lt;BR /&gt;command[0]=50;&lt;BR /&gt;command[1]=8;&amp;nbsp; //Start sector number is 8&lt;BR /&gt;command[2]=8;&amp;nbsp; //Finish sector number is 8&lt;BR /&gt;&amp;nbsp; iap_entry(command,result);&lt;BR /&gt;if(result[0]!=0)&lt;BR /&gt;{&lt;BR /&gt;return 0;&lt;BR /&gt;}&lt;BR /&gt;command[0]=51;&lt;BR /&gt;command[1]=0x00008100;&amp;nbsp; //Addrees of Flash&lt;BR /&gt;command[2]=0x10000200;&amp;nbsp; //Addrees of Sram&lt;BR /&gt;command[3]=256;&amp;nbsp; //How many bytes want to transfer&lt;BR /&gt;command[4]=12000;&amp;nbsp; //Frequency in khz&lt;BR /&gt;iap_entry(command,result);&lt;BR /&gt;if(result[0]!=0)&lt;BR /&gt;{&lt;BR /&gt;return 0;&lt;BR /&gt;}&lt;BR /&gt;else&lt;BR /&gt;{&lt;BR /&gt;return 1;&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;&lt;/I&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:24:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/IAP-not-to-work/m-p/516947#M1927</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: IAP not to work?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/IAP-not-to-work/m-p/516948#M1928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Sat Feb 07 12:41:39 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you check your data in RAM, did you check correct pointer settings before IAP functions are called and did you erase sector 8 before :quest: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Start with reading the Serial number to confirm that IAP is working, then prepare / erase / blank check your sector before you write...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(BTW: Please use Code tags...)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:24:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/IAP-not-to-work/m-p/516948#M1928</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: IAP not to work?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/IAP-not-to-work/m-p/516949#M1929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by capiman on Sat Feb 07 12:42:48 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you checked if your function return 0 or 1?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you checked if one of the IAP functions failed?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If one failed, what result[0] is reported?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You are talking about "debug mode". Is it working in release mode?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:24:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/IAP-not-to-work/m-p/516949#M1929</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: IAP not to work?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/IAP-not-to-work/m-p/516950#M1930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Sat Feb 07 12:48:18 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;BTW: There's a Keil sample for IAP&amp;nbsp; :) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.nxp.com%2Fdocuments%2Fapplication_note%2FAN11071.zip" rel="nofollow" target="_blank"&gt;http://www.nxp.com/documents/application_note/AN11071.zip&lt;/A&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:24:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/IAP-not-to-work/m-p/516950#M1930</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: IAP not to work?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/IAP-not-to-work/m-p/516951#M1931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by LeonCorleone on Sun Feb 08 01:39:00 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks R2D2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes the data in Sram is O.K, but I think IAP function is read but doesn't work,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have another question of you , I want to ask my question online if it's alright ,sorry when are you usually Online?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:24:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/IAP-not-to-work/m-p/516951#M1931</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: IAP not to work?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/IAP-not-to-work/m-p/516952#M1932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by LeonCorleone on Sun Feb 08 01:43:23 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi capiman.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks to answer for my problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes I think IAP routine is read but it doesn't work and result[0] always returns 0.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Actually I have not tested in release mode. but I think it also doesn't work .&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:24:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/IAP-not-to-work/m-p/516952#M1932</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: IAP not to work?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/IAP-not-to-work/m-p/516953#M1933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Sun Feb 08 03:15:32 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;As mentioned already above it's a good idea to start with 'simple' IAP functions ('Read serial number = IAP58) to test your IAP function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Flash functions are more dangerous because RAM (top 32 bytes) has to be reserved and interrupts have to be disabled...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:24:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/IAP-not-to-work/m-p/516953#M1933</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: IAP not to work?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/IAP-not-to-work/m-p/516954#M1934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by xianghuiwang on Mon Feb 09 14:50:01 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;please reference LPCOpen IAP sample project.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Fnxpfile%2Flpcopen-software-development-platform-lpc17xx-packages" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/nxpfile/lpcopen-software-development-platform-lpc17xx-packages&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If the CPU is operating at 60MHz and above, please make sure ROM_LAT in register MATRIXARB is set to 1. If the CPU is operating at 120MHz, please make sure BOOST bits in register PBOOST is set to 3 and FLASHTIM is set to 5 in register FLASHCFG.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:24:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/IAP-not-to-work/m-p/516954#M1934</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: IAP not to work?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/IAP-not-to-work/m-p/516955#M1935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Mon Feb 09 15:40:54 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: xianghuiwang&lt;/STRONG&gt;&lt;BR /&gt;Hi, &lt;BR /&gt;&lt;BR /&gt;please reference LPCOpen IAP sample project.&lt;BR /&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Fnxpfile%2Flpcopen-software-development-platform-lpc17xx-packages" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/nxpfile/lpcopen-software-development-platform-lpc17xx-packages&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;If the CPU is operating at 60MHz and above, please make sure ROM_LAT in register MATRIXARB is set to 1. If the CPU is operating at 120MHz, please make sure BOOST bits in register PBOOST is set to 3 and FLASHTIM is set to 5 in register FLASHCFG.&lt;BR /&gt;&lt;BR /&gt;regards,&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; :~ &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are we talking about LPC177x/8x here&amp;nbsp; :quest: &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:24:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/IAP-not-to-work/m-p/516955#M1935</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: IAP not to work?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/IAP-not-to-work/m-p/516956#M1936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by xianghuiwang on Mon Feb 09 15:45:58 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi, R2D2,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are using LPC1759/69, just set FLASHTIM based on its UM requirement.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry previous information is for LPC177x/8x - should not have assumed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:24:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/IAP-not-to-work/m-p/516956#M1936</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: IAP not to work?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/IAP-not-to-work/m-p/516957#M1937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by LeonCorleone on Mon Feb 16 23:52:37 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi xianghuiwang.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You have told me to reference to LPCOpen IAP sample. But I couldn't find the project for IAP.:(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you help me about it,please?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:24:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/IAP-not-to-work/m-p/516957#M1937</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:24:34Z</dc:date>
    </item>
  </channel>
</rss>

