<?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>topic Re: LPC51U68 Reinvoke ISP Fails in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC51U68-Reinvoke-ISP-Fails/m-p/1179025#M42794</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/155472"&gt;@frank5&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Are you using a custom board or is a development board?&lt;/P&gt;
&lt;P data-unlink="true"&gt;Also, this could be related to the following &lt;A href="https://community.nxp.com/t5/LPC-Microcontrollers/LPC51U68-Reinvoke-ISP-in-USB-Mode-is-not-working/m-p/880568" target="_self"&gt;post&lt;/A&gt;,&amp;nbsp;I will suggest to take a look.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Alexis Andalon&lt;/P&gt;</description>
    <pubDate>Fri, 06 Nov 2020 01:08:48 GMT</pubDate>
    <dc:creator>Alexis_A</dc:creator>
    <dc:date>2020-11-06T01:08:48Z</dc:date>
    <item>
      <title>LPC51U68 Reinvoke ISP Fails</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC51U68-Reinvoke-ISP-Fails/m-p/1177511#M42775</link>
      <description>&lt;P&gt;I am trying invoke USB ISP mode, to allow reprogramming from USB. My IAP call always returns the "Reinvoke configuration error" (kStatus_IAP_ReinvokeISPConfig). I am using the "lpcxpresso51u68_flashiap" sample code from the SDK, running on the demo board. I have converted the sample to use the newer fsl_iap.c driver instead of the deprecated deprecated fsl_flashiap.c driver. The Flash write, erase, and read work, but the "IAP_ReinvokeISP(2, &amp;amp;status)" always return with the configuration error. The code I added was:&lt;/P&gt;&lt;P&gt;PRINTF("\r\nIAP_ReinvokeISP\r\n");&lt;BR /&gt;IAP_ReinvokeISP(2, &amp;amp;status);&lt;BR /&gt;if (status != kStatus_IAP_Success) {&lt;BR /&gt;PRINTF("\r\nReinvoke ISP failed. Status = %lu:%lu\r\n", status / 100, status %100);&lt;BR /&gt;&amp;nbsp; if (status == kStatus_IAP_ReinvokeISPConfig) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; PRINTF("Failure Code = Reinvoke configuration error\r\n");&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Running this project gives me the following messages:&lt;BR /&gt;==========================================&lt;BR /&gt;&lt;SPAN&gt;IAP example&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Writing flash sector 1&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Erasing flash sector 1&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Erasing page 1 in flash sector 1&lt;BR /&gt;&lt;/SPAN&gt;IAP_Unique ID workaround:&lt;BR /&gt;ID[0] = 0x1701704a&lt;BR /&gt;ID[1] = 0xaaf2cc48&lt;BR /&gt;ID[2] = 0x597a1b00&lt;BR /&gt;ID[3] = 0xf5001b80&lt;BR /&gt;&lt;SPAN&gt;IAP_ReinvokeISP&lt;BR /&gt;&lt;/SPAN&gt;Reinvoke ISP failed. Status = 102:28&lt;BR /&gt;Failure Code = Reinvoke configuration error&lt;BR /&gt;&lt;SPAN&gt;End of IAP Flash Example&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Can anyone point me in the right direction on what to try next?&lt;BR /&gt;I have attached the project files.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 19:43:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC51U68-Reinvoke-ISP-Fails/m-p/1177511#M42775</guid>
      <dc:creator>frank5</dc:creator>
      <dc:date>2020-11-03T19:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: LPC51U68 Reinvoke ISP Fails</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC51U68-Reinvoke-ISP-Fails/m-p/1179025#M42794</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/155472"&gt;@frank5&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Are you using a custom board or is a development board?&lt;/P&gt;
&lt;P data-unlink="true"&gt;Also, this could be related to the following &lt;A href="https://community.nxp.com/t5/LPC-Microcontrollers/LPC51U68-Reinvoke-ISP-in-USB-Mode-is-not-working/m-p/880568" target="_self"&gt;post&lt;/A&gt;,&amp;nbsp;I will suggest to take a look.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Alexis Andalon&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2020 01:08:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC51U68-Reinvoke-ISP-Fails/m-p/1179025#M42794</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2020-11-06T01:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: LPC51U68 Reinvoke ISP Fails</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC51U68-Reinvoke-ISP-Fails/m-p/1179444#M42802</link>
      <description>&lt;P&gt;I have a custom board that I am implementing the code on. After running into roadblock on this issue on my board, I simplified the problem by switching to NXP SDK example code running on LPCExpresso51u68 board (OM40005), with exact same errors reported. Have tried snippets from suggested post and others, but no luck. I can't find any reference to what "Configuration Error" means. Is this a problem with the configuration block passed in the parameter, USB configuration, or I/O configuration, or clock configuration. Is there any way to troubleshoot what the error is referring to, other than shotgun approach of changing everything one by one? Is there any sample or user code on an LPC51u68 where this actually runs, so I can compare differences and isolate the problem?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2020 13:54:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC51U68-Reinvoke-ISP-Fails/m-p/1179444#M42802</guid>
      <dc:creator>frank5</dc:creator>
      <dc:date>2020-11-06T13:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: LPC51U68 Reinvoke ISP Fails</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC51U68-Reinvoke-ISP-Fails/m-p/1183320#M42879</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/155472"&gt;@frank5&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;The API syntax looks fine so to test if the ISP can enter in some way, could you try using another interface, for example, UART to check if it's possible to enter ISP mode?&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Alexis Andalon&lt;/P&gt;</description>
      <pubDate>Fri, 13 Nov 2020 22:50:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC51U68-Reinvoke-ISP-Fails/m-p/1183320#M42879</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2020-11-13T22:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: LPC51U68 Reinvoke ISP Fails</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC51U68-Reinvoke-ISP-Fails/m-p/1183916#M42893</link>
      <description>&lt;P&gt;I get the same error code asking for UART as selected ISP mode:&lt;BR /&gt;Param0(mode): Selected ISP mode. 1=USART, 2=USB, 5=I2C, 6=SPI&lt;/P&gt;&lt;P&gt;The Reinvoke ISP command always returns with the same error code:&lt;BR /&gt;ERR_ISP_REINVOKE_ISP_CONFIG&lt;/P&gt;&lt;P&gt;It is acting as if I need to configure clocks, registers or some other&lt;BR /&gt;hardware before executing the call, but the documentation gives me no&lt;BR /&gt;hints as to what to look for. What does the ROM driver look for to&amp;nbsp;&lt;BR /&gt;determine when to generate this error?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2020 14:30:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC51U68-Reinvoke-ISP-Fails/m-p/1183916#M42893</guid>
      <dc:creator>frank5</dc:creator>
      <dc:date>2020-11-16T14:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: LPC51U68 Reinvoke ISP Fails</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC51U68-Reinvoke-ISP-Fails/m-p/1188441#M43024</link>
      <description>&lt;P&gt;Hello Frank,&lt;/P&gt;
&lt;P&gt;Looks like the API to call the reinvoke ISP has some errors, try to change it for the next one:&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;void IAP_ReinvokeISP(uint8_t ispType, uint32_t *status)
{
    uint32_t command[5] = {0x00U};
    uint32_t result[5]  = {0x00U};
    uint8_t ispParameterArray[8];

    command[0] = (uint32_t)kIapCmd_IAP_ReinvokeISP;
    command[1] = (uint32_t)ispType;
    iap_entry(command, result);
    *status = (uint32_t)translate_iap_status(result[0]);
}
&lt;/LI-CODE&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Alexis Andalon&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 21:20:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC51U68-Reinvoke-ISP-Fails/m-p/1188441#M43024</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2020-11-24T21:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: LPC51U68 Reinvoke ISP Fails</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC51U68-Reinvoke-ISP-Fails/m-p/1188459#M43026</link>
      <description>&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;This is the simple fix I was looking for.&lt;BR /&gt;The fsl_iap.c file contained in this part's SDK (SDK_2.8.2_LPCXpresso51U68) has this erroneous IAP call. I modified this file as shown above, and this allows the ROM bootloader to properly execute the Reinvoke ISP.&lt;/P&gt;&lt;P&gt;For others with this issue, simply replace your fsl_iap.c file with the attached version.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 22:30:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC51U68-Reinvoke-ISP-Fails/m-p/1188459#M43026</guid>
      <dc:creator>frank5</dc:creator>
      <dc:date>2020-11-24T22:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: LPC51U68 Reinvoke ISP Fails</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC51U68-Reinvoke-ISP-Fails/m-p/1189877#M43060</link>
      <description>&lt;P&gt;A complete working project requires the fix to the fsl_iap.c file in the sdk, and also a modification to the&amp;nbsp;iap_entry macro to allow this function to operate without disabling interrupts. Disabling interrupts will cause the ROM bootloader to hang without servicing the USB interrupts required to enumerate as a flash drive.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attached is the complete working demo which runs on the OM40005 LPCXpresso51U68 demo board. Attach usb cables to both J5 and J6. When the program runs, a flash drive "CRP DISABLD" will appear, allowing update of the CPU flash.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Nov 2020 18:21:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC51U68-Reinvoke-ISP-Fails/m-p/1189877#M43060</guid>
      <dc:creator>frank5</dc:creator>
      <dc:date>2020-11-26T18:21:36Z</dc:date>
    </item>
  </channel>
</rss>

