<?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: LPC54018 IOT OM40007 flash via UART 0 in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54018-IOT-OM40007-flash-via-UART-0/m-p/1776288#M54995</link>
    <description>&lt;P&gt;Thankyou for the great answer.&lt;/P&gt;</description>
    <pubDate>Mon, 18 Dec 2023 09:39:20 GMT</pubDate>
    <dc:creator>jamie3</dc:creator>
    <dc:date>2023-12-18T09:39:20Z</dc:date>
    <item>
      <title>LPC54018 IOT OM40007 flash via UART 0</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54018-IOT-OM40007-flash-via-UART-0/m-p/1775583#M54974</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to flash the QSPI flash on an OM40007 via the UART (I have had USB DFU and BLHost working but as the IAP command for DFU is non functional (as described in the ERRATA) I now need a way to flash code from the UART&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a few questions.&lt;/P&gt;&lt;P&gt;1. Can you tell me where the Flashloader source code is for the 54018 IOT board ? I have looked in the SDK and the bootloader folder isnt included and the bootloader in the 54018 SDK doesnt seem to work when used with BLHOST.&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.What program/utilitie can I use to load the flashloader into the SRAMX using the UART to be able to used BLHost.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jamie Lowrie&lt;/P&gt;</description>
      <pubDate>Fri, 15 Dec 2023 12:25:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54018-IOT-OM40007-flash-via-UART-0/m-p/1775583#M54974</guid>
      <dc:creator>jamie3</dc:creator>
      <dc:date>2023-12-15T12:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54018 IOT OM40007 flash via UART 0</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54018-IOT-OM40007-flash-via-UART-0/m-p/1776223#M54994</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/164588"&gt;@jamie3&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1)USB DFU mode, refer to:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/LPC-Microcontrollers-Knowledge/Use-blhost-to-program-erase-LPC54-S-0xx-flash/ta-p/1105629" target="_blank"&gt;https://community.nxp.com/t5/LPC-Microcontrollers-Knowledge/Use-blhost-to-program-erase-LPC54-S-0xx-flash/ta-p/1105629&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) UART ISP command. below is method from our SE team:&lt;/P&gt;
&lt;P&gt;In order to program the SPIFI flash, the flashloader has to be placed in to the RAM and execute from there.&lt;/P&gt;
&lt;P&gt;The entire procedure can be described as follows:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Put the device into ISP mode&lt;/LI&gt;
&lt;LI&gt;Synchronize USART ISP interface&lt;/LI&gt;
&lt;LI&gt;Write the content of flashloader.bin to SRAMX (0x0000_0000)&lt;/LI&gt;
&lt;LI&gt;Use Go command to start the execution of the flashloader&lt;/LI&gt;
&lt;LI&gt;Communicate with the flashloader using blhost&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;For step 2-4, please refer to the attached archive, which contains a simple python script to download and execute the flashloader using the ISP commands.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Please also note this script is for reference only and comes without waranty, thus should not be used in production.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;In order to use the script, the following steps should be performed:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Extract the contents of the archive to a directory&lt;/LI&gt;
&lt;LI&gt;Prepare Python3 environment&lt;/LI&gt;
&lt;LI&gt;Open a command line window, navigate to the extracted directory, and execute:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;pip install -r requirements.txt&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;Connect the board's ISP UART to the computer and put the device into ISP mode&lt;/LI&gt;
&lt;LI&gt;Modify the connection parameters located in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;pyisp.py&lt;/STRONG&gt;, such as port and baud rate (see below).&lt;/LI&gt;
&lt;LI&gt;In the same directory, execute:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;python pyisp.py&lt;/STRONG&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Parameter settings:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Alice_Yang_0-1702889344057.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/254808iFB9CC7D337E0A44F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Alice_Yang_0-1702889344057.png" alt="Alice_Yang_0-1702889344057.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If everything has been set up correctly, the following output can be observed in the commandline window:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Alice_Yang_1-1702889344242.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/254810i3FD71B26FC83FA26/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Alice_Yang_1-1702889344242.png" alt="Alice_Yang_1-1702889344242.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The flashloader should be running by now, and with blhost, we can communicate with the flashloader.&lt;/P&gt;
&lt;P&gt;The source code of the flashloader can be obtained from SDK&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;bootloader_examples/flashloader&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Please refer to "&lt;STRONG&gt;Getting Started with LPC540xx/LPC54S0xx Flashloader User's Guide&lt;/STRONG&gt;" for further configuration of the SPIFI flash. Note the connection mode should be UART instead of USB:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Alice_Yang_2-1702889344186.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/254809i30CA9AB556348D8F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Alice_Yang_2-1702889344186.png" alt="Alice_Yang_2-1702889344186.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Alice_Yang_3-1702889344101.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/254813i10A512E26D4CDF86/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Alice_Yang_3-1702889344101.png" alt="Alice_Yang_3-1702889344101.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The SPIFI configuration word should be placed outside of the reserved region:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Alice_Yang_4-1702889344067.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/254811iA723D45ACF0B9DD2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Alice_Yang_4-1702889344067.png" alt="Alice_Yang_4-1702889344067.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Alice_Yang_5-1702889344091.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/254812i937CC4D88D8BAC82/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Alice_Yang_5-1702889344091.png" alt="Alice_Yang_5-1702889344091.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Alice_Yang_6-1702889344086.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/254815i84762791A26EF900/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Alice_Yang_6-1702889344086.png" alt="Alice_Yang_6-1702889344086.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then the user should be able to erase or program the external flash memory:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Alice_Yang_7-1702889344081.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/254814i3F7F2DB76BFE931A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Alice_Yang_7-1702889344081.png" alt="Alice_Yang_7-1702889344081.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&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>Mon, 18 Dec 2023 08:49:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54018-IOT-OM40007-flash-via-UART-0/m-p/1776223#M54994</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2023-12-18T08:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54018 IOT OM40007 flash via UART 0</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54018-IOT-OM40007-flash-via-UART-0/m-p/1776288#M54995</link>
      <description>&lt;P&gt;Thankyou for the great answer.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2023 09:39:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54018-IOT-OM40007-flash-via-UART-0/m-p/1776288#M54995</guid>
      <dc:creator>jamie3</dc:creator>
      <dc:date>2023-12-18T09:39:20Z</dc:date>
    </item>
  </channel>
</rss>

