<?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: Programming LPCXpresso54018 board produces &amp;quot;The flash loader program reported an error&amp;quot; in IAR in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Programming-LPCXpresso54018-board-produces-quot-The-flash-loader/m-p/729441#M29491</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also I'm using IAR version 8.20.2.14838 which I think supports this MCU.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Feb 2018 02:58:51 GMT</pubDate>
    <dc:creator>viveksrinivasan</dc:creator>
    <dc:date>2018-02-09T02:58:51Z</dc:date>
    <item>
      <title>Programming LPCXpresso54018 board produces "The flash loader program reported an error" in IAR</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Programming-LPCXpresso54018-board-produces-quot-The-flash-loader/m-p/729440#M29490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;Hi Guys,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;I recently had a chance to experiment with the LPCXpresso54018 board. I was just trying out different example codes that came with the SDK "SDK_2.3.0_LPCXpresso54018"(mainly the UART examples) using IAR. It was working fine for a day and then the next day after few download and debugging, suddenly this error popped up and not able to program the board after many retries.&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="IAR error.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/4835i985136E52943DC7A/image-size/large?v=v2&amp;amp;px=999" role="button" title="IAR error.jpg" alt="IAR error.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&lt;SPAN&gt;I tried few things to debug this issue:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&lt;SPAN&gt;1. We have another spare LPCXpresso54018 board which produces the same error when trying to program the board at the very first attempt. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&lt;SPAN&gt;2. I tried to program this board on a different PC but the same error shows up.&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;3. Tried powering the board directly from the PC instead of a USB hub.&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;4. Tried reprogramming the LPC-Link2 to use J-Link instead of CMSIS-DAP using the LPCScrypt installation&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;5.&amp;nbsp;Tried&lt;SPAN style="font-size: 11.0pt;"&gt;&amp;nbsp;forcing the board into an ISP boot mode by holding down ISP2 or ISP1 and pressing and releasing the reset button(I'm not sure what is supposed to happen by doing this but did it anyway)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;At this stage, I’m not sure what could be the cause of this error since none of the above steps helped. I have attached the IAR debug log for your reference. I don't think that both the boards are doomed since I was just trying out the example codes from the SDK. Could you please help me identify the cause of this error?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;Thanks for your help!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;Vivek&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2018 02:55:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Programming-LPCXpresso54018-board-produces-quot-The-flash-loader/m-p/729440#M29490</guid>
      <dc:creator>viveksrinivasan</dc:creator>
      <dc:date>2018-02-09T02:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: Programming LPCXpresso54018 board produces "The flash loader program reported an error" in IAR</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Programming-LPCXpresso54018-board-produces-quot-The-flash-loader/m-p/729441#M29491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also I'm using IAR version 8.20.2.14838 which I think supports this MCU.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2018 02:58:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Programming-LPCXpresso54018-board-produces-quot-The-flash-loader/m-p/729441#M29491</guid>
      <dc:creator>viveksrinivasan</dc:creator>
      <dc:date>2018-02-09T02:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: Programming LPCXpresso54018 board produces "The flash loader program reported an error" in IAR</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Programming-LPCXpresso54018-board-produces-quot-The-flash-loader/m-p/729442#M29492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is always the risk that software blocks somehow the programming algorithm.&lt;/P&gt;&lt;P&gt;Think about the execution order:&lt;/P&gt;&lt;P&gt;1. You do a reset --&amp;gt; user software in flash starts running --&amp;gt; could block access&lt;/P&gt;&lt;P&gt;2. You do a reset with the ISP buttons held (you enforce ISP mode, so user software from flash will not start) --&amp;gt; debugger does a reset over the debug channel --&amp;gt; device starts over and again starts user software from flash --&amp;gt; could block access&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try it this way:&amp;nbsp; keep the ISP buttons pressed while starting the programming out of IAR EWARM. This would force the chip to stay in the bootloader also when the debugger initiates a reset.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2018 13:16:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Programming-LPCXpresso54018-board-produces-quot-The-flash-loader/m-p/729442#M29492</guid>
      <dc:creator>bernhardfink</dc:creator>
      <dc:date>2018-02-09T13:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: Programming LPCXpresso54018 board produces "The flash loader program reported an error" in IAR</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Programming-LPCXpresso54018-board-produces-quot-The-flash-loader/m-p/729443#M29493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vivek,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Please also check your project mac file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; From your error log, your problem is caused by the macro file:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/4760i6A95D6EF848000CF/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please use the SDK project attached mac file, like the following picture, you can select the setup macros:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/4718i2566A2BD6C9334D7/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&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>Sun, 11 Feb 2018 05:36:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Programming-LPCXpresso54018-board-produces-quot-The-flash-loader/m-p/729443#M29493</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2018-02-11T05:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: Programming LPCXpresso54018 board produces "The flash loader program reported an error" in IAR</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Programming-LPCXpresso54018-board-produces-quot-The-flash-loader/m-p/729444#M29494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/kerryzhou"&gt;kerryzhou&lt;/A&gt;‌, &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/bernhardfink"&gt;bernhardfink&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your quick response. But unfortunately I'm still having the same issue with IAR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/kerryzhou"&gt;kerryzhou&lt;/A&gt;‌ - I am using the .mac file from the SDK. But still IAR refers to the .mac file from the IAR installation folder. So I copied the .mac file from the SDK to IAR installation folder but still the same error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/bernhardfink"&gt;bernhardfink&lt;/A&gt;‌ - I tried your suggestion but still the same error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One good news is that I was able to program the board using keil mdk with some examples(that does not use external flash XIP) from the SDK. This confirms that the board is working properly. I use J-link instead of CMSIS-DAP which is the only change that I make in the examples. I programmed LPC-Link2 with the J-Link binary Firmware_JLink_LPCXpressoV2.bin downloaded from the SEGGER website. But even with keil, I'm not able to&amp;nbsp;program&amp;nbsp;the examples that uses the external flash XIP such as (hello_world_qspi_xip, utick_wakeup_xip) using J-Link.&amp;nbsp; I get the following error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper" image-alt="mdk_jlink_error.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/8212iC8F39AB01B43AA3B/image-size/large?v=v2&amp;amp;px=999" role="button" title="mdk_jlink_error.png" alt="mdk_jlink_error.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper" image-alt="jlink_log.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/8256i400472CE2AE71BDB/image-size/large?v=v2&amp;amp;px=999" role="button" title="jlink_log.png" alt="jlink_log.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I'm not sure what I'm doing wrong and why the example programs are not working. Any suggestions would be very helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2018 02:34:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Programming-LPCXpresso54018-board-produces-quot-The-flash-loader/m-p/729444#M29494</guid>
      <dc:creator>viveksrinivasan</dc:creator>
      <dc:date>2018-02-13T02:34:31Z</dc:date>
    </item>
  </channel>
</rss>

