<?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_CopyRamToFlash undocumented error code</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/IAP-CopyRamToFlash-undocumented-error-code/m-p/1573786#M51076</link>
    <description>&lt;P&gt;Thanks for your prompt response.&lt;/P&gt;&lt;P&gt;Actually.&amp;nbsp; The error code documentation in UM10912 5.6.15 led me astray.&amp;nbsp; 21 = 0x15 which is a user code checksum error.&amp;nbsp; Our executable that we were writing into the flash did not have checksum applied.&amp;nbsp; Calling the checksum command on the final binary solved our problem.&lt;BR /&gt;&lt;BR /&gt;checksum&amp;nbsp;-p LPC54608 -d our.bin&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.nxp.com/t5/LPC-Microcontrollers/LPC546xx-iap-write-returns-undocumented-error-code-21/m-p/852754#M33895" target="_blank"&gt;https://community.nxp.com/t5/LPC-Microcontrollers/LPC546xx-iap-write-returns-undocumented-error-code-21/m-p/852754#M33895&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Dec 2022 14:20:49 GMT</pubDate>
    <dc:creator>manderson107</dc:creator>
    <dc:date>2022-12-22T14:20:49Z</dc:date>
    <item>
      <title>IAP_CopyRamToFlash undocumented error code</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/IAP-CopyRamToFlash-undocumented-error-code/m-p/1573228#M51068</link>
      <description>&lt;P&gt;Greetings,&lt;BR /&gt;&lt;BR /&gt;I am working with an &lt;STRONG&gt;LPC54608&lt;/STRONG&gt;.&amp;nbsp; I am calling&amp;nbsp;&lt;STRONG&gt;IAP_CopyRamToFlash&lt;/STRONG&gt; to reprogram flash.&amp;nbsp; Every page successfully writes except for page 0 of the flash.&amp;nbsp; I get an &lt;STRONG&gt;error code 10221&lt;/STRONG&gt;.&amp;nbsp; 102 kStatusGroup_IAP does not have a code 21 documented in the header files or the user manual for the processor.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Can someone help me understand this error code from the ROM IAP function?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2022 16:34:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/IAP-CopyRamToFlash-undocumented-error-code/m-p/1573228#M51068</guid>
      <dc:creator>manderson107</dc:creator>
      <dc:date>2022-12-21T16:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: IAP_CopyRamToFlash undocumented error code</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/IAP-CopyRamToFlash-undocumented-error-code/m-p/1573417#M51072</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I suppose that you call the &lt;STRONG&gt;IAP_CopyRamToFlash&lt;/STRONG&gt;() in application code, furthermore you allocate the application in the flash memory from 0x0000_0000, especially the interrupt and Reset vectors are located at 0x0000_0000, the page 0 is at the address 0x0000_0000, if you erase page0, the application code is destroyed, interrupt/Reset vectors are destroyed, you application code can not run in the case. that is why I suppose you can not erase page 0.&lt;/P&gt;
&lt;P&gt;Hope it can help you&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 02:34:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/IAP-CopyRamToFlash-undocumented-error-code/m-p/1573417#M51072</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2022-12-22T02:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: IAP_CopyRamToFlash undocumented error code</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/IAP-CopyRamToFlash-undocumented-error-code/m-p/1573786#M51076</link>
      <description>&lt;P&gt;Thanks for your prompt response.&lt;/P&gt;&lt;P&gt;Actually.&amp;nbsp; The error code documentation in UM10912 5.6.15 led me astray.&amp;nbsp; 21 = 0x15 which is a user code checksum error.&amp;nbsp; Our executable that we were writing into the flash did not have checksum applied.&amp;nbsp; Calling the checksum command on the final binary solved our problem.&lt;BR /&gt;&lt;BR /&gt;checksum&amp;nbsp;-p LPC54608 -d our.bin&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.nxp.com/t5/LPC-Microcontrollers/LPC546xx-iap-write-returns-undocumented-error-code-21/m-p/852754#M33895" target="_blank"&gt;https://community.nxp.com/t5/LPC-Microcontrollers/LPC546xx-iap-write-returns-undocumented-error-code-21/m-p/852754#M33895&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 14:20:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/IAP-CopyRamToFlash-undocumented-error-code/m-p/1573786#M51076</guid>
      <dc:creator>manderson107</dc:creator>
      <dc:date>2022-12-22T14:20:49Z</dc:date>
    </item>
  </channel>
</rss>

