<?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 QSPI Flash Programming Problem in i.MX RT Crossover MCUs</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/QSPI-Flash-Programming-Problem/m-p/1038960#M7508</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Environment:&lt;/P&gt;&lt;P&gt;Windows 10 Pro&lt;BR /&gt;MCUXpresso IDE v11.2.0_4120&lt;BR /&gt;SEGGER J-Link V6.82d&lt;BR /&gt;MIMXRT1052CVL5B with QPSI Flash, IS25WP064A-JBLE (No Hyperflash)&lt;/P&gt;&lt;P&gt;JLinkDevices.xml has been edited to use “NXP_iMXRT105x_QSPI.elf”&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to boot from the QSPI, and execute from RAM for maximum program performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The J-Link will load the program image directly into internal RAM, and the debugger works as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have successfully erased the QPSI flash using the “GUI Flash Tool.”&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, if I use the MCUXpresso IDE "GUI Flash Tool”, to load a “.hex” file I get:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; (a good connection to the M7) ...&lt;BR /&gt; Writing target memory failed.&lt;BR /&gt; Script processing completed.&lt;BR /&gt; Unable to perform operation!&lt;BR /&gt; Command failed with exit code 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there some configuration thing I am missing? Wrong driver? Where do I look?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does AN12108 still apply?&lt;BR /&gt;Do I need to go through this process to create and load a working bootable image into Flash&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or, do the latest versions of MCUExpresso IDE and J-Link allow me to load a bootable program image into external Flash?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would switching to a LPC-Link2 make any difference ? (None available anywhere)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, --- Graham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Aug 2020 14:44:35 GMT</pubDate>
    <dc:creator>gh78731</dc:creator>
    <dc:date>2020-08-17T14:44:35Z</dc:date>
    <item>
      <title>QSPI Flash Programming Problem</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/QSPI-Flash-Programming-Problem/m-p/1038960#M7508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Environment:&lt;/P&gt;&lt;P&gt;Windows 10 Pro&lt;BR /&gt;MCUXpresso IDE v11.2.0_4120&lt;BR /&gt;SEGGER J-Link V6.82d&lt;BR /&gt;MIMXRT1052CVL5B with QPSI Flash, IS25WP064A-JBLE (No Hyperflash)&lt;/P&gt;&lt;P&gt;JLinkDevices.xml has been edited to use “NXP_iMXRT105x_QSPI.elf”&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to boot from the QSPI, and execute from RAM for maximum program performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The J-Link will load the program image directly into internal RAM, and the debugger works as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have successfully erased the QPSI flash using the “GUI Flash Tool.”&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, if I use the MCUXpresso IDE "GUI Flash Tool”, to load a “.hex” file I get:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; (a good connection to the M7) ...&lt;BR /&gt; Writing target memory failed.&lt;BR /&gt; Script processing completed.&lt;BR /&gt; Unable to perform operation!&lt;BR /&gt; Command failed with exit code 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there some configuration thing I am missing? Wrong driver? Where do I look?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does AN12108 still apply?&lt;BR /&gt;Do I need to go through this process to create and load a working bootable image into Flash&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or, do the latest versions of MCUExpresso IDE and J-Link allow me to load a bootable program image into external Flash?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would switching to a LPC-Link2 make any difference ? (None available anywhere)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, --- Graham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2020 14:44:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/QSPI-Flash-Programming-Problem/m-p/1038960#M7508</guid>
      <dc:creator>gh78731</dc:creator>
      <dc:date>2020-08-17T14:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: QSPI Flash Programming Problem</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/QSPI-Flash-Programming-Problem/m-p/1038961#M7509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A _jive_internal="true" data-userid="356256" data-username="gh78731@gmail.com" href="https://community.nxp.com/people/gh78731@gmail.com" style="color: #3d9ce7; background-color: #ffffff; border: 0px; font-weight: 600; text-decoration: underline; font-size: 11.9994px;"&gt;Graham Haddock&lt;/A&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;RT1050 JLINK xml file in default is using the hyper flash.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;So, you modify it to the QSPI flash is correct.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;I have a question, do you try to use the JLINK commander to do the qspi flash write and erase, whether it is a success or not?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;You can try it on your side, as I know, the JLINK commander also uses the XML file, which the MCUXPresso IDE will use it.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;If the JLINK commander can do the erase, write successfully, then the MCUXPresso IDE should also can do it.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;But if the JLINK commander has issues, then I think the external IDE call the related files also have issues.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;In fact, recently, I find the new JLINK drivers JLINK commander seems have issues to process the RT1050 QSPI function, but in the older JLINK drivers, eg. v6.62a, it has no issues.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Wish it helps you!&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;If you still have questions about it, please kindly let me know.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;Best Regards,&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;Kerry&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2020 03:30:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/QSPI-Flash-Programming-Problem/m-p/1038961#M7509</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2020-08-18T03:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: QSPI Flash Programming Problem</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/QSPI-Flash-Programming-Problem/m-p/1038962#M7510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/kerryzhou"&gt;kerryzhou&lt;/A&gt;:&lt;/P&gt;&lt;P&gt;Thank you for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try the manual operation from the JLink Commander as you suggest, but have not done so, yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I am able to obtain "LPC Link 2", should I expect it to be able to install bootable code image on external QSPI flash from MPUXpresso?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I want the program to boot from QSPI, but execute from RAM, what is the correct setting for the Preprocessor Flags?&lt;/P&gt;&lt;P&gt;Is it as simple as&amp;nbsp;setting&amp;nbsp;all XIP_xxx_ENABLE flags to '0' ?&lt;/P&gt;&lt;P&gt;Is there some other configuration I need to do?&lt;/P&gt;&lt;P&gt;Is&amp;nbsp;execute from RAM the default condition?&lt;/P&gt;&lt;P&gt;If it is easier to point me to documentation, rather than explain in forum, please do so.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, --- Graham&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;==&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2020 16:33:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/QSPI-Flash-Programming-Problem/m-p/1038962#M7510</guid>
      <dc:creator>gh78731</dc:creator>
      <dc:date>2020-08-18T16:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: QSPI Flash Programming Problem</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/QSPI-Flash-Programming-Problem/m-p/1038963#M7511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="356256" data-username="gh78731@gmail.com" href="https://community.nxp.com/people/gh78731@gmail.com" style="color: #3d9ce7; background-color: #ffffff; border: 0px; font-weight: 200; text-decoration: none; font-size: 1.286rem;"&gt;Graham Haddock&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; You are welcome!&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1.&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;LPC Link 2 can be firmware with CMSIS DAP or the JLINK, so I think even the JLINK driver have issues, you also can use the CMSIS DAP to download the code to your external qspi flash.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; Please don't worry, it is not the big issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp; 2.&amp;nbsp;&lt;/SPAN&gt;If I want the program to boot from QSPI, but execute from RAM, what is the correct setting for the Preprocessor&amp;nbsp; &amp;nbsp;Flags?&lt;/P&gt;&lt;P&gt;&amp;nbsp; Answer: just select link application to RAM is OK&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/115239i550AC789A0E6E913/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;Then the code location will in the RAM, when you download the code, you can use the external tool to download the code to the QSPI flash, eg. MCUBootUtility:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/JayHeng/NXP-MCUBootUtility/archive/v2.3.0.zip"&gt;https://github.com/JayHeng/NXP-MCUBootUtility/archive/v2.3.0.zip&lt;/A&gt;&lt;BR /&gt;the related user manual is:&lt;BR /&gt;&lt;A href="https://github.com/JayHeng/NXP-MCUBootUtility"&gt;https://github.com/JayHeng/NXP-MCUBootUtility&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Secure Provisioning Tools:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/design/software/development-software/mcuxpresso-software-and-tools-/mcuxpresso-secure-provisioning-tool:MCUXPRESSO-SECURE-PROVISIONING" title="https://www.nxp.com/design/software/development-software/mcuxpresso-software-and-tools-/mcuxpresso-secure-provisioning-tool:MCUXPRESSO-SECURE-PROVISIONING"&gt;MCUXpresso Secure Provisioning Tool | Software Development for NXP Microcontrollers (MCUs) | NXP | NXP&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or the flashloader with the MFGtool&lt;/P&gt;&lt;P&gt;&amp;nbsp; You can find it in the SDK middleware mcu-boot area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="border: 0px;"&gt;&amp;nbsp;3 Is it as simple as&amp;nbsp;setting&amp;nbsp;all XIP_xxx_ENABLE flags to '0' ?&lt;/P&gt;&lt;P style="border: 0px;"&gt;&amp;nbsp; &amp;nbsp;Answer: No, refer to item 2.&lt;/P&gt;&lt;P style="border: 0px;"&gt;&lt;/P&gt;&lt;P style="border: 0px;"&gt;&amp;nbsp;4 Is there some other configuration I need to do?&lt;/P&gt;&lt;P style="border: 0px;"&gt;&amp;nbsp; Answer: No, refer to item2.&lt;/P&gt;&lt;P style="border: 0px;"&gt;&lt;/P&gt;&lt;P style="border: 0px;"&gt;&amp;nbsp;5 Is&amp;nbsp;execute from RAM the default condition?&lt;/P&gt;&lt;P style="border: 0px;"&gt;&amp;nbsp;Answer: After you generate the RAM code, then when you download the code to the QSPI flash, the ROM will copy it to the RAM, and execute the code from RAM.&lt;/P&gt;&lt;P style="border: 0px;"&gt;&lt;/P&gt;&lt;P style="border: 0px;"&gt;&amp;nbsp;6 If it is easier to point me to documentation, rather than explain in forum, please do so.&lt;/P&gt;&lt;P style="border: 0px;"&gt;&amp;nbsp;Answer: After you generate the RAM app code, you totally can use the tools to download it. I prefer to use the MCUbootUtility, it is very easy to use, and it is designed by our RT AE.&lt;/P&gt;&lt;P style="border: 0px;"&gt;&lt;/P&gt;&lt;P style="border: 0px;"&gt;Wish it helps you!&lt;/P&gt;&lt;P style="border: 0px;"&gt;If you still have questions about it, please kindly let me know.&lt;/P&gt;&lt;DIV style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;&lt;DIV class="" style="border: 0px; font-weight: inherit; margin: 20px 0px;"&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;Best Regards,&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;Kerry&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px;"&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;&lt;/DIV&gt;&lt;DIV class="" style="border: 0px; font-weight: inherit; font-size: 14px; margin: 20px 0px 0px;"&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2020 02:56:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/QSPI-Flash-Programming-Problem/m-p/1038963#M7511</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2020-08-19T02:56:08Z</dc:date>
    </item>
  </channel>
</rss>

