<?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 LPC51U68 enter ISP from user code in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC51U68-enter-ISP-from-user-code/m-p/2037745#M57619</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;on my last project, I tried to enter the LPC51U68 in USART0 ISP Mode by invoking the function&amp;nbsp;&lt;SPAN&gt;IAP_ReinvokeISP. USART 0 is routed to PIO0_0 and PIO0_1 and configured inside BOARD_InitBootPeripherals(); function.&lt;BR /&gt;Here below the code I add to my application, that isn't working.&lt;BR /&gt;I tryed the&amp;nbsp;ispType 0, 1, 4, 8 wit same result, the function returns always error 10228 (0x27f4)&lt;/SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-02-04 153916.jpg" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/322332i3F4BF8314C3426AB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2025-02-04 153916.jpg" alt="Screenshot 2025-02-04 153916.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I tryed also using ISP pins and connecting USART0 to external serial, and ISP answer right to command "?" (0x3f)&lt;/P&gt;&lt;P&gt;Where I wrong?&lt;BR /&gt;Could help me to solve this issue?&lt;/P&gt;&lt;P&gt;Many thank&lt;/P&gt;&lt;P&gt;Abele Barbieri - Italy&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 04 Feb 2025 14:48:24 GMT</pubDate>
    <dc:creator>abele_barbieri</dc:creator>
    <dc:date>2025-02-04T14:48:24Z</dc:date>
    <item>
      <title>LPC51U68 enter ISP from user code</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC51U68-enter-ISP-from-user-code/m-p/2037745#M57619</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;on my last project, I tried to enter the LPC51U68 in USART0 ISP Mode by invoking the function&amp;nbsp;&lt;SPAN&gt;IAP_ReinvokeISP. USART 0 is routed to PIO0_0 and PIO0_1 and configured inside BOARD_InitBootPeripherals(); function.&lt;BR /&gt;Here below the code I add to my application, that isn't working.&lt;BR /&gt;I tryed the&amp;nbsp;ispType 0, 1, 4, 8 wit same result, the function returns always error 10228 (0x27f4)&lt;/SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-02-04 153916.jpg" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/322332i3F4BF8314C3426AB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2025-02-04 153916.jpg" alt="Screenshot 2025-02-04 153916.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I tryed also using ISP pins and connecting USART0 to external serial, and ISP answer right to command "?" (0x3f)&lt;/P&gt;&lt;P&gt;Where I wrong?&lt;BR /&gt;Could help me to solve this issue?&lt;/P&gt;&lt;P&gt;Many thank&lt;/P&gt;&lt;P&gt;Abele Barbieri - Italy&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2025 14:48:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC51U68-enter-ISP-from-user-code/m-p/2037745#M57619</guid>
      <dc:creator>abele_barbieri</dc:creator>
      <dc:date>2025-02-04T14:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: LPC51U68 enter ISP from user code</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC51U68-enter-ISP-from-user-code/m-p/2038335#M57628</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/112751"&gt;@abele_barbieri&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The parameter for selecting the ISP mode is set as 1, which represents USART. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please note that you should&lt;STRONG&gt; enable the clocks for the default USART RXD and TXD pins&lt;/STRONG&gt; before calling this command.&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV id="tinyMceEditor_39d684ee7c9dfcAlice_Yang_0" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV id="tinyMceEditor_39d6a3be3a6002Alice_Yang_0" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&lt;SPAN&gt;BR&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Alice&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2025 07:26:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC51U68-enter-ISP-from-user-code/m-p/2038335#M57628</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2025-02-05T07:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: LPC51U68 enter ISP from user code</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC51U68-enter-ISP-from-user-code/m-p/2038460#M57632</link>
      <description>&lt;P&gt;Many thanks Alice for the quick reply&lt;BR /&gt;The UART0 (as I writed) is configured and activated BEFORE invoking the function. I tried further tests, and I discovered that the&amp;nbsp;IAP_ReinvokeISP seems "wrong" in the project where I need to enter ISP by user code (this project is several years old)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-02-05 095127.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/322504i88E20BC9FA49BC3D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2025-02-05 095127.png" alt="Screenshot 2025-02-05 095127.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I tried in new project, and it works fine. Here below the "upgraded"&amp;nbsp;IAP_ReinvokeISP that I have found in fsl_iap.c file&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-02-05 100259.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/322506i0B40E85285BEFFD7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2025-02-05 100259.png" alt="Screenshot 2025-02-05 100259.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Using this versione It work also on this old project.&lt;BR /&gt;A further important question:&lt;BR /&gt;the board that need to program via ISP has only the UART0 RX &amp;amp; TX signals ruoted the ISP host board (that perform the programming), and we heve no chance to power off o reset the target board to restart it.&lt;BR /&gt;There is an ISP command that can be sent to target to force "exit" from ISP mode at end of programming?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Abele Barbieri&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2025 09:20:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC51U68-enter-ISP-from-user-code/m-p/2038460#M57632</guid>
      <dc:creator>abele_barbieri</dc:creator>
      <dc:date>2025-02-05T09:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: LPC51U68 enter ISP from user code</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC51U68-enter-ISP-from-user-code/m-p/2039246#M57639</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/112751"&gt;@abele_barbieri&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, ISP&lt;STRONG&gt; Go&lt;/STRONG&gt; command.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="go.jpg" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/322720i26DC283F58268E41/image-size/large?v=v2&amp;amp;px=999" role="button" title="go.jpg" alt="go.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope it helps you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2025 10:05:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC51U68-enter-ISP-from-user-code/m-p/2039246#M57639</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2025-02-06T10:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: LPC51U68 enter ISP from user code</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC51U68-enter-ISP-from-user-code/m-p/2039299#M57640</link>
      <description>&lt;P&gt;Thanks Alice&lt;BR /&gt;This means that I has to know what the address of reset code, in other words, where is locate the&amp;nbsp;ResetISR() startup function?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2025 11:28:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC51U68-enter-ISP-from-user-code/m-p/2039299#M57640</guid>
      <dc:creator>abele_barbieri</dc:creator>
      <dc:date>2025-02-06T11:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: LPC51U68 enter ISP from user code</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC51U68-enter-ISP-from-user-code/m-p/2039747#M57645</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/112751"&gt;@abele_barbieri&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By default, the address of&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;reset is 0x00.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;BR&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Alice&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2025 06:55:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC51U68-enter-ISP-from-user-code/m-p/2039747#M57645</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2025-02-07T06:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: LPC51U68 enter ISP from user code</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC51U68-enter-ISP-from-user-code/m-p/2039898#M57649</link>
      <description>&lt;P&gt;I'm sorry Alice, but if I invoke the "GO" command with address 0 the board never restart&lt;BR /&gt;Thne, I have "sniffed" the comunication at end of Flash Magic, an here below the result&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-02-07 110545.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/322888i9522402AA44D971A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2025-02-07 110545.png" alt="Screenshot 2025-02-07 110545.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Seems the GO is on RAM address ... could you help me about?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2025 10:23:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC51U68-enter-ISP-from-user-code/m-p/2039898#M57649</guid>
      <dc:creator>abele_barbieri</dc:creator>
      <dc:date>2025-02-07T10:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: LPC51U68 enter ISP from user code</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC51U68-enter-ISP-from-user-code/m-p/2040263#M57653</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/112751"&gt;@abele_barbieri&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How about using the same address with Flash Maigc?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;</description>
      <pubDate>Sat, 08 Feb 2025 02:22:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC51U68-enter-ISP-from-user-code/m-p/2040263#M57653</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2025-02-08T02:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: LPC51U68 enter ISP from user code</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC51U68-enter-ISP-from-user-code/m-p/2043409#M57676</link>
      <description>&lt;P&gt;Hello Alice,&lt;BR /&gt;I tried to send "G" command using Flash Magic as you said ...&lt;/P&gt;&lt;P&gt;Here below the test I made, but the target don't restart&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-02-13 123059.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/323845i479749A685C9CAEF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2025-02-13 123059.png" alt="Screenshot 2025-02-13 123059.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If I try as here, the target restarts. It seems that needs to load a code into RAM and then send G command to this area. Could you verify and send me more details about this behaviour and how I can integrate it on my code?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Abele&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-02-13 122812.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/323846iF654DE8C87D33C20/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2025-02-13 122812.png" alt="Screenshot 2025-02-13 122812.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2025 11:40:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC51U68-enter-ISP-from-user-code/m-p/2043409#M57676</guid>
      <dc:creator>abele_barbieri</dc:creator>
      <dc:date>2025-02-13T11:40:27Z</dc:date>
    </item>
  </channel>
</rss>

