<?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のトピックLPC824 IAP routines do not work on common comand/result buffer</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC824-IAP-routines-do-not-work-on-common-comand-result-buffer/m-p/573268#M18764</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;working on an LPC824 project I re-used the IAP routines of an older LPC1768 project which worked fine there. These IAP routines use a common buffer for both command input and result output. The user manual explicitely allows this to be done.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/3469iB4463DD289AE9660/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately this doesnt work with the LPC824 (at least Rev. 1A). You will always get an INVALID_COMMAND code as result. It looks like the IAP routine writes to ComRes[0] too soon an kills its own command.&lt;/P&gt;&lt;P&gt;So the user manual (UM10800) is wrong here and you HAVE TO use two different buffers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/3470i32DF15AD71408850/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Aug 2016 09:05:39 GMT</pubDate>
    <dc:creator>wernerf</dc:creator>
    <dc:date>2016-08-30T09:05:39Z</dc:date>
    <item>
      <title>LPC824 IAP routines do not work on common comand/result buffer</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC824-IAP-routines-do-not-work-on-common-comand-result-buffer/m-p/573268#M18764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;working on an LPC824 project I re-used the IAP routines of an older LPC1768 project which worked fine there. These IAP routines use a common buffer for both command input and result output. The user manual explicitely allows this to be done.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/3469iB4463DD289AE9660/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately this doesnt work with the LPC824 (at least Rev. 1A). You will always get an INVALID_COMMAND code as result. It looks like the IAP routine writes to ComRes[0] too soon an kills its own command.&lt;/P&gt;&lt;P&gt;So the user manual (UM10800) is wrong here and you HAVE TO use two different buffers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/3470i32DF15AD71408850/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 09:05:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC824-IAP-routines-do-not-work-on-common-comand-result-buffer/m-p/573268#M18764</guid>
      <dc:creator>wernerf</dc:creator>
      <dc:date>2016-08-30T09:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: LPC824 IAP routines do not work on common comand/result buffer</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC824-IAP-routines-do-not-work-on-common-comand-result-buffer/m-p/573269#M18765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" data-content-finding="Community" data-userid="286898" data-username="wernerf" href="https://community.nxp.com/people/wernerf"&gt;Werner Fritsch&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;I'd like to suggest that you can refer to the flashiap demo in the LPCOpen, and the demo demonstrates programming a FLASH block during run-time and generating a FLASH signature.&lt;/P&gt;&lt;P&gt;The LPCOpen's link:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/thread/cache.nxp.com/files/microcontrollers/software/LPCWare/lpcopen_2_19_keil_iar_nxp_lpcxpresso_824.zip"&gt;cache.nxp.com/files/microcontrollers/software/LPCWare/lpcopen_2_19_keil_iar_nxp_lpcxpresso_824.zip&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;BR /&gt;Have a great day,&lt;BR /&gt;Ping&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2016 03:22:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC824-IAP-routines-do-not-work-on-common-comand-result-buffer/m-p/573269#M18765</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2016-08-31T03:22:14Z</dc:date>
    </item>
  </channel>
</rss>

