<?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: QSPI Flash not detected on 2nd FlexSPI pinmux (i.MX RT 1021) in i.MX RT Crossover MCUs</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/QSPI-Flash-not-detected-on-2nd-FlexSPI-pinmux-i-MX-RT-1021/m-p/977908#M5096</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good day Kerry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are most welcome!&amp;nbsp; I will message you directly with the contact details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Nov 2019 21:36:01 GMT</pubDate>
    <dc:creator>samsaprunoff</dc:creator>
    <dc:date>2019-11-19T21:36:01Z</dc:date>
    <item>
      <title>QSPI Flash not detected on 2nd FlexSPI pinmux (i.MX RT 1021)</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/QSPI-Flash-not-detected-on-2nd-FlexSPI-pinmux-i-MX-RT-1021/m-p/977867#M5055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to get working a custom board with a MIMXRT1021DAG5A&amp;nbsp;which has a QSPI Flash (IS25LP128F-JBLE) on the 2nd pinmux option (BOOT_CFG[3:1] = 111), but I can't get the flash to be detected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With boot config set to FlexSPI&amp;nbsp;NOR on the secondary pinmux and internal boot, I tried the &lt;EM&gt;flexspi_nor_polling_transfert&lt;/EM&gt; example (changing the pinmux to the 2nd flexspi option, using MCUxpresso config tools), running in&amp;nbsp;RAM, but it gets stuck in&amp;nbsp;&lt;EM&gt;flexspi_nor_enable_quad_mode&lt;/EM&gt;&amp;nbsp;(in a wait idle loop). I tried to change other config values, for which it doesn't get stuck, but the reads are wrong.&lt;/P&gt;&lt;P&gt;I also tried lowering the clock with no effects. Even at a low FlexSPI clock speed (36MHz) I can see that the CS line is pulsed low for less than 250ns, which doesn't seems right?&lt;/P&gt;&lt;P&gt;I also tested the example with the EVK and it's working with it (with the original pinmux).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried MCU Boot Utility v2.0.0 (via USB), working on the EVK, but with my board it can't find the flash. Strangely, there is no activity on the 2nd flexspi pinmux option, but there is some on the default pinmux, which suggests that it doesn't use the right pins?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm a bit stuck right now, so any help would be welcomed.&lt;/P&gt;&lt;P&gt;First time using the i.MX RT but I didn't expect it would be so hard to get it working! I specifically used the same flash "model" of the EVK (just with more memory) to not have to deal with&amp;nbsp;custom&amp;nbsp;flash config&amp;nbsp;and such.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I joined some schematics and the &lt;EM&gt;flexspi_nor_polling_transfert &lt;/EM&gt;code I used.&lt;/P&gt;&lt;P&gt;All power lines are good, everything runs off 3V3, flash is powered, etc. The default FlexSPI pinmux is used for ethernet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Benjamin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2019 12:21:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/QSPI-Flash-not-detected-on-2nd-FlexSPI-pinmux-i-MX-RT-1021/m-p/977867#M5055</guid>
      <dc:creator>bbenj</dc:creator>
      <dc:date>2019-10-29T12:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: QSPI Flash not detected on 2nd FlexSPI pinmux (i.MX RT 1021)</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/QSPI-Flash-not-detected-on-2nd-FlexSPI-pinmux-i-MX-RT-1021/m-p/977868#M5056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" data-content-finding="Community" data-userid="333224" data-username="bbenj" href="https://community.nxp.com/people/bbenj"&gt;Benjamin Balga&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;If it is your first time use the RT chip, why you don't connect the&amp;nbsp; qspi flash to FlexSPI1? They will be more easy to get start, in factor the secondary pinmux just used as the backup memory.&lt;/P&gt;&lt;P&gt;&amp;nbsp; If you use the &lt;EM&gt;lexspi_nor_polling_transfert&lt;/EM&gt;&amp;nbsp; run in RAM also can't make your external QSPI works, I think the hardware or your modified code still has problems.&lt;/P&gt;&lt;P&gt;&amp;nbsp; From the RT102X RAM, your connected pins is correct.&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/94569i97D60D734BA98950/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;So, now, can you test the FlexSPI1 secondary bus,whether there has the related QSPI wave or not?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any updated information, please kindly let me know.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&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="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&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>Wed, 30 Oct 2019 10:13:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/QSPI-Flash-not-detected-on-2nd-FlexSPI-pinmux-i-MX-RT-1021/m-p/977868#M5056</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2019-10-30T10:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: QSPI Flash not detected on 2nd FlexSPI pinmux (i.MX RT 1021)</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/QSPI-Flash-not-detected-on-2nd-FlexSPI-pinmux-i-MX-RT-1021/m-p/977869#M5057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kerry,&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;P&gt;I couldn't route properly the flash to the first FlexSPI on the PCB (lots of other stuff around) and as I saw on this forum that using the second FlexSPI was supposed to be as easy as using the right boot configuration, I went for it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a new check for hardware I decided after your post to test the GPIOs with a "blinky" example code, from RAM, to verify that the I/O are working. Test ok, all GPIOs blinks correctly.&lt;/P&gt;&lt;P&gt;Then I run again the flexspi&amp;nbsp;polling example, without any changes, and to my surprise, &lt;STRONG&gt;it worked&lt;/STRONG&gt;. I really don't know why and it bothers me quite a bit.&amp;nbsp;Something changed, but I don't know what.&lt;/P&gt;&lt;P&gt;The only thing I did last with MCU Boot Utility was to burn fuses for the secondary pinmux, as a last resort in my attempts to get the flash to work. But I'm not booting from fuses and the boot config I/O have the right levels....&lt;/P&gt;&lt;P&gt;I also tried with another "fresh" board that I only tested with MCU Boot Utility, and the same flexspi polling example works too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway... the polling example now works, but I still cannot upload to flash with my debugger.&lt;/P&gt;&lt;P&gt;There is activity on the flash I/Os when I try to debug: pulse on CS, clock on SCLK and some data on D0 &amp;amp; D1 (D2&amp;amp;D3 at 0). Unfortunately my scope isn't fast enough to read any meaningful value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are the outputs with the 2 flash drivers:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;Opening flash driver MIMXRT1020-EVK_IS25LP064.cfx&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;Sending VECTRESET to run flash driver&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;Flash device supported (8MB = 128*64K at 0x60000000)&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;Writing 32692 bytes to address 0x60000000 in Flash&lt;/P&gt;&lt;P style="color: #ff2600; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;ProgramPage (0x60000000, 0x20002260, 0x4000) status 0x1 - driver reported driver error - EXTSPI driver rc -2 (0xFFFFFFFE)&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;Closing flash driver MIMXRT1020-EVK_IS25LP064.cfx&lt;/P&gt;&lt;P style="color: #ff2600; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;Target error from Commit Flash write: Ef(49): Flash driver operation gave error.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;Inspected v.2 External Flash Device on SPI using SFDP JEDEC ID MIMXRT1020_SFDP_QSPI.cfx&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;Image 'iMXRT1020_SFDP_QSPI Aug 27 2019 15:38:40'&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;Opening flash driver MIMXRT1020_SFDP_QSPI.cfx&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;Sending VECTRESET to run flash driver&lt;/P&gt;&lt;P style="color: #ff2600; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;Driver V.2 dynamic startup failed - driver Init provided no flash parameters&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;Flash Driver V.2 startup failed - rc Ef(55): Dynamic flash driver startup failed to provide flash parameters.&lt;/P&gt;&lt;P style="color: #ff2600; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;Terminate (0x0, 0x0, 0x0) status 0x40 - driver reports init failure - EXTSPIJ driver rc 20107 (0x4E8B)&lt;/P&gt;&lt;P style="color: #ff2600; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;chip initialization failed - Ef(55): Dynamic flash driver startup failed to provide flash parameters.&lt;/P&gt;&lt;P style="color: #929000; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;failed to initialize flash driver MIMXRT1020_SFDP_QSPI.cfx&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Could&amp;nbsp;these error codes hint to something?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Benjamin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Oct 2019 12:46:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/QSPI-Flash-not-detected-on-2nd-FlexSPI-pinmux-i-MX-RT-1021/m-p/977869#M5057</guid>
      <dc:creator>bbenj</dc:creator>
      <dc:date>2019-10-30T12:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: QSPI Flash not detected on 2nd FlexSPI pinmux (i.MX RT 1021)</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/QSPI-Flash-not-detected-on-2nd-FlexSPI-pinmux-i-MX-RT-1021/m-p/977870#M5058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="333224" data-username="bbenj" href="https://community.nxp.com/people/bbenj"&gt;Benjamin Balga&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Thanks a lot for your updated information.&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; And it's good to hear you make the flexspi&amp;nbsp;polling example and MCUBootUtility works with your second FlexSPI, perfect!&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; About the debugger download with the IDE, you need to modify the download flashloader.&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Just take MIMXRT1020-EVK_IS25LP064.cfx as the example, this is used for the first FlexSPI in default, and it is mainly used for the CMSIS DAP debugger. If you want to use the CMSIS DAP debugger to download the code with IDE, you need to modify the flash driver, you can find the MIMXRT1020-EVK_IS25LP064.cfx&amp;nbsp; source code from this folder:&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&amp;nbsp;C:\nxp\MCUXpressoIDE_11.0.0_2516\ide\Examples\Flashdrivers\NXP\iMXRT\iMXRT1020_QSPI&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &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/91234iB34C4C5AF6BAEACF/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;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;You can find, all the configuration in the flashdriver source code is used for first FlexSPI, so you need to modify the .cfx source code, and generate the new .cfx for your secondary FlexSPI.&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;You can try it if you have interest in it.&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&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;SPAN&gt; &lt;/SPAN&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&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>Thu, 31 Oct 2019 03:11:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/QSPI-Flash-not-detected-on-2nd-FlexSPI-pinmux-i-MX-RT-1021/m-p/977870#M5058</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2019-10-31T03:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: QSPI Flash not detected on 2nd FlexSPI pinmux (i.MX RT 1021)</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/QSPI-Flash-not-detected-on-2nd-FlexSPI-pinmux-i-MX-RT-1021/m-p/977871#M5059</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;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;Thank you for the infos.&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;The polling example works, but I couldn't make MCU Boot Utility to work.&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;I modified the flash driver with the 2nd flexspi, used it on a Blinky example code, and I'm now getting another error:&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;   &lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;Opening flash driver workspace/iMXRT1020_QSPI/iMXRT1020_QSPI/builds/MIMXRT1020-IS25LP128-FLEXSPI2.cfx&lt;/P&gt;   &lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;Sending VECTRESET to run flash driver&lt;/P&gt;   &lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;Flash device supported (8MB = 128*64K at 0x60000000)&lt;/P&gt;   &lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;Writing 32588 bytes to address 0x60000000 in Flash&lt;/P&gt;   &lt;P style="color: #ff2600; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;driver "EraseSector" timeout (6000 ms)&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;PC: 20000808&lt;/P&gt;   &lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;There was a problem after a flash driver operation timed out, so we are going to compare the flash driver code with the memory where it was loaded.&lt;/P&gt;   &lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;Note that, after driver initialization, some difference is normal in 'generic' drivers.&lt;/P&gt;   &lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;   &lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;Driver from AXF file:&lt;/P&gt;   &lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;200011D8: 11b3dc40 00000000 00000000 &lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;@...........&lt;/P&gt;   &lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;Driver code in memory:&lt;/P&gt;   &lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;200011D8: 1dcd6500 016e3600 00008000 &lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;.e...6n.....&lt;/P&gt;   &lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;Closing flash driver workspace/iMXRT1020_QSPI/iMXRT1020_QSPI/builds/MIMXRT1020-IS25LP128-FLEXSPI2.cfx&lt;/P&gt;   &lt;P style="color: #ff2600; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;Target error from Commit Flash write: Ec: Flash driver "EraseSector" timeout (6000 ms)&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;PC: 20000808&lt;/P&gt; &lt;/BLOCKQUOTE&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;And I joined&amp;nbsp;my pinmux, it's a bit long to include in this post. I used the pinmux of the flexspi polling example. I had to remove the DQS pin as it's not available on the 2nd pinmux, but I don't think that's an issue?&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;Do I need to change other parts of the driver? I only changed the pinmux.&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;I will look through the flash driver to&amp;nbsp;see what I can find in the meantime.&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;Benjamin&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Nov 2019 11:19:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/QSPI-Flash-not-detected-on-2nd-FlexSPI-pinmux-i-MX-RT-1021/m-p/977871#M5059</guid>
      <dc:creator>bbenj</dc:creator>
      <dc:date>2019-11-02T11:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: QSPI Flash not detected on 2nd FlexSPI pinmux (i.MX RT 1021)</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/QSPI-Flash-not-detected-on-2nd-FlexSPI-pinmux-i-MX-RT-1021/m-p/977872#M5060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="333224" data-username="bbenj" href="https://community.nxp.com/people/bbenj"&gt;Benjamin Balga&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Please also check this post at first:&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/509297"&gt;RT1050 - Debugging with QSPI flash on secondary pinmux&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;Do you configure the correct MCUBootUtility settings?&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&amp;nbsp;You also need to make sure your first Flexspi didn't connect other nor flash, and it can't boot, then the bootloader will goto the secondary pinmux.&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&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;SPAN&gt; &lt;/SPAN&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&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, 05 Nov 2019 03:01:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/QSPI-Flash-not-detected-on-2nd-FlexSPI-pinmux-i-MX-RT-1021/m-p/977872#M5060</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2019-11-05T03:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: QSPI Flash not detected on 2nd FlexSPI pinmux (i.MX RT 1021)</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/QSPI-Flash-not-detected-on-2nd-FlexSPI-pinmux-i-MX-RT-1021/m-p/977873#M5061</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;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;I tried every settings in MCU Boot Utility, I never managed to get it to work on the 2nd FlexSPI (I tried with Option1 and Enable Secondary Pinmux). And I don't remember reading&amp;nbsp;someone that did it. It was probably never&amp;nbsp;tested, if I had to guess?&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;I have an ethernet IC on the pinmux shared with the first FlexSPI, but it is held on reset. And I never saw any signal activity on the 2nd flexspi with&amp;nbsp;&lt;SPAN&gt;MCU Boot Utility.&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN&gt;I made some progress with the flash driver, I will make a new post below.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Nov 2019 11:10:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/QSPI-Flash-not-detected-on-2nd-FlexSPI-pinmux-i-MX-RT-1021/m-p/977873#M5061</guid>
      <dc:creator>bbenj</dc:creator>
      <dc:date>2019-11-05T11:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: QSPI Flash not detected on 2nd FlexSPI pinmux (i.MX RT 1021)</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/QSPI-Flash-not-detected-on-2nd-FlexSPI-pinmux-i-MX-RT-1021/m-p/977874#M5062</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;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;I modified the flash driver to match the polling example. I changed the sector size to 4K, copied the LUT from&amp;nbsp;the polling example as they differs quite a bit, and other things.&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;Right now I can upload code to the flash with my CMSIS-DAP adapter, and the&amp;nbsp;GUI Flash Tool works too.&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;BUT, the code don't boot at the right&amp;nbsp;address, it runs at&amp;nbsp;0x200000 or so and stalls there.&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;The debug output prints: "&lt;EM&gt;Note - system reset leaves VTOR at 0x200000 (not 0x60000000 which a booted image might assume)&lt;/EM&gt;"&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;I tried with the EVK and it also prints the same message, actually. But runs fine.&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;Any idea? Some project settings I am missing, or is it linked to the flash driver in some way?&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;Benjamin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Nov 2019 11:41:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/QSPI-Flash-not-detected-on-2nd-FlexSPI-pinmux-i-MX-RT-1021/m-p/977874#M5062</guid>
      <dc:creator>bbenj</dc:creator>
      <dc:date>2019-11-05T11:41:06Z</dc:date>
    </item>
    <item>
      <title>Re: QSPI Flash not detected on 2nd FlexSPI pinmux (i.MX RT 1021)</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/QSPI-Flash-not-detected-on-2nd-FlexSPI-pinmux-i-MX-RT-1021/m-p/977875#M5063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="333224" data-username="bbenj" href="https://community.nxp.com/people/bbenj"&gt;Benjamin Balga&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Do you modify BOOT_CFG[10:8]:111?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If you use the MCUbootUtitly, you also need to modify BOOT_MODE as 01 serial downloader,&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/92785i4343649BCD9C2E3B/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;In the MCUBootility, you also need to configure the FlexSPI NOR device configuration as:&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/92862i1772CDF87C33435F/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, could you check it again?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&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="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&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&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Nov 2019 05:43:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/QSPI-Flash-not-detected-on-2nd-FlexSPI-pinmux-i-MX-RT-1021/m-p/977875#M5063</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2019-11-06T05:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: QSPI Flash not detected on 2nd FlexSPI pinmux (i.MX RT 1021)</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/QSPI-Flash-not-detected-on-2nd-FlexSPI-pinmux-i-MX-RT-1021/m-p/977876#M5064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-userid="333224" data-username="bbenj" href="https://community.nxp.com/people/bbenj"&gt;Benjamin Balga&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; If you want to debug the code in XIP, please check the hardware:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; BOOT_CFG[10:8]=111&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; BOOT_MODE = 10; Internal boot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; The&amp;nbsp; const struct flexspi_nor_config_s flash_config need to use your QSPI configuration.&lt;/P&gt;&lt;P&gt;&amp;nbsp; You can refer to :&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/509297"&gt;RT1050 - Debugging with QSPI flash on secondary pinmux&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; correct answer.&lt;/P&gt;&lt;P&gt;&amp;nbsp; In your project, please check the memory detail:&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/92956i93F01EF61433C444/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;Do you modify the .cfx driver as your secondary pinmux?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&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="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&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>Wed, 06 Nov 2019 05:53:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/QSPI-Flash-not-detected-on-2nd-FlexSPI-pinmux-i-MX-RT-1021/m-p/977876#M5064</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2019-11-06T05:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: QSPI Flash not detected on 2nd FlexSPI pinmux (i.MX RT 1021)</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/QSPI-Flash-not-detected-on-2nd-FlexSPI-pinmux-i-MX-RT-1021/m-p/977877#M5065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &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;&lt;/P&gt;&lt;P&gt;About the MCU Boot Utility:&lt;/P&gt;&lt;P&gt;I did exactly as in your image. Boot config is set to 111, I checked directly on the IC. &lt;STRONG&gt;Is there a way to check the boot config values used at startup?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I can boot with serial downloader, via USB. That works, but at the step to configure the external&amp;nbsp;memory, it fails.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For debugging:&lt;/P&gt;&lt;P&gt;I did set the right .cfx file. I can program, verify and erase the flash via the debugger and the Flash GUI.&lt;/P&gt;&lt;P&gt;Boot config still to BOOT_CFG[3:1] = 111. BOOT_MODE to Internal boot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to burn&amp;nbsp;the fuses to boot the second spi, then&amp;nbsp;booted from fuses (boot_mode = 00) with my CMSIS-DAP interface, and I have the same issue (runs at a wrong address).&lt;/P&gt;&lt;P&gt;Also tried to boot from fuses with USB connected, and the serial downloader boots, which suggests that it fails to connect to the flash, &lt;STRONG&gt;BUT there is still no activity whatsoever on any of the flash I/Os!&lt;/STRONG&gt; I also check for activity on the first FlexSPI, but nothing either. There should at least be something pulsing just a bit these IOs?! Every power supply is good (and I tested these I/Os with a program from RAM).&lt;/P&gt;&lt;P&gt;If I set the BOOT_CFG to the first FlexSPI, I see activity on the I/Os.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output from MCU Boot Utility:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;--------MCU device eFusemap--------&lt;/P&gt;&lt;P&gt;(0x450) BOOT_CFG0 = 0xe&lt;/P&gt;&lt;P&gt;(0x460) BOOT_CFG1 = 0x0&lt;/P&gt;&lt;P&gt;(0x470) BOOT_CFG2 = 0x0&lt;/P&gt;&lt;P&gt;BT_FUSE_SEL = 1'b0&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the EVK I see activity on the flash I/Os. &lt;STRONG&gt;If I set the boot cfg to 111 on the EVK, it boots the serial downloader &lt;/STRONG&gt;(with BOOT_MODE to 10 (internal boot))&lt;STRONG&gt; and there is no activity&amp;nbsp;on the secondary pinmux I/Os.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is the secondary SPI supposed to work at all? I am missing something??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Benjamin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Nov 2019 11:52:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/QSPI-Flash-not-detected-on-2nd-FlexSPI-pinmux-i-MX-RT-1021/m-p/977877#M5065</guid>
      <dc:creator>bbenj</dc:creator>
      <dc:date>2019-11-06T11:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: QSPI Flash not detected on 2nd FlexSPI pinmux (i.MX RT 1021)</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/QSPI-Flash-not-detected-on-2nd-FlexSPI-pinmux-i-MX-RT-1021/m-p/977878#M5066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Benjamin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks a lot for your effort, with MCUBootUtility, please try this configuration:&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/93049iA0ABDA99ACEB612C/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;Just enable the QE bit again.&lt;/P&gt;&lt;P&gt;In factory, the BOOT_CFG in default use the external GPIO pin, you don't need to modify the fuse bit,&lt;/P&gt;&lt;P&gt;The related pins are:&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/93083i8DA583EA4B8F97A4/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;If you want to boot from fuse, you need to burn the fuse BT_FUSE_SEL = 1, but I am not recommend to modify the fuse in the experimental phase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&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="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&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>Thu, 07 Nov 2019 01:54:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/QSPI-Flash-not-detected-on-2nd-FlexSPI-pinmux-i-MX-RT-1021/m-p/977878#M5066</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2019-11-07T01:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: QSPI Flash not detected on 2nd FlexSPI pinmux (i.MX RT 1021)</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/QSPI-Flash-not-detected-on-2nd-FlexSPI-pinmux-i-MX-RT-1021/m-p/977879#M5067</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;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks. Tried your config, doesn't work. I burned&amp;nbsp;the fuses to rule out any GPIO config level issues. I known it's not "recommended", but I have nothing else to boot from anyway and nothing else worked, so gotta try everything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The main issue here is that I don't see any activity AT ALL on the flash I/Os !! EVEN ON THE EVK!&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;How could it work&amp;nbsp;if it doesn't even TRY&amp;nbsp;to connect to the flash...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is&amp;nbsp;the second flexspi boot option even supposed to work at all?? I'm starting to question it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Benjamin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2019 09:25:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/QSPI-Flash-not-detected-on-2nd-FlexSPI-pinmux-i-MX-RT-1021/m-p/977879#M5067</guid>
      <dc:creator>bbenj</dc:creator>
      <dc:date>2019-11-07T09:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: QSPI Flash not detected on 2nd FlexSPI pinmux (i.MX RT 1021)</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/QSPI-Flash-not-detected-on-2nd-FlexSPI-pinmux-i-MX-RT-1021/m-p/977880#M5068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, yet again, I test one day later after fiddling with it all yesterday&amp;nbsp;morning, and things starts to "kinda" work.&lt;/P&gt;&lt;P&gt;This morning I have signals on the flash I/Os, as expected. Still no boot, but it actually boots the serial downloader, that's why it runs as 0x200000. I'm using Internal Boot.&lt;/P&gt;&lt;P&gt;So&amp;nbsp;something goes wrong while loading the flash I guess... or some program verification failure.&lt;/P&gt;&lt;P&gt;Still investigating...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT: And MCU Boot Utility works now, it detects the flash. "What the f*** ", but at least it's progress...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Benjamin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Nov 2019 10:09:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/QSPI-Flash-not-detected-on-2nd-FlexSPI-pinmux-i-MX-RT-1021/m-p/977880#M5068</guid>
      <dc:creator>bbenj</dc:creator>
      <dc:date>2019-11-08T10:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: QSPI Flash not detected on 2nd FlexSPI pinmux (i.MX RT 1021)</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/QSPI-Flash-not-detected-on-2nd-FlexSPI-pinmux-i-MX-RT-1021/m-p/977881#M5069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Reading flash with MCU Boot Utility shows some differences between the bin file and the content of the flash.&lt;/P&gt;&lt;P&gt;There are byte and half-byte offsets. Something's wrong with the flash driver&amp;nbsp;I guess.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Writing with MCU Boot Utility sometimes works, other times it raises an error code 20106. (I did erase the flash first)&lt;/P&gt;&lt;P&gt;When writing works, I still get byte offsets.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Nov 2019 11:21:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/QSPI-Flash-not-detected-on-2nd-FlexSPI-pinmux-i-MX-RT-1021/m-p/977881#M5069</guid>
      <dc:creator>bbenj</dc:creator>
      <dc:date>2019-11-08T11:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: QSPI Flash not detected on 2nd FlexSPI pinmux (i.MX RT 1021)</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/QSPI-Flash-not-detected-on-2nd-FlexSPI-pinmux-i-MX-RT-1021/m-p/977882#M5070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, issue is, the flexspi configuration block in the bin file is wrong. &lt;STRONG&gt;How do I configure it?&lt;/STRONG&gt; I edited it manually to check and got it to boot the flash correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still need to check the flash driver for the corrupted uploads. I got&amp;nbsp;MCU Boot Utility to upload&amp;nbsp;correctly without errors, in the end. At one point it decided to be cooperative...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Nov 2019 17:03:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/QSPI-Flash-not-detected-on-2nd-FlexSPI-pinmux-i-MX-RT-1021/m-p/977882#M5070</guid>
      <dc:creator>bbenj</dc:creator>
      <dc:date>2019-11-09T17:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: QSPI Flash not detected on 2nd FlexSPI pinmux (i.MX RT 1021)</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/QSPI-Flash-not-detected-on-2nd-FlexSPI-pinmux-i-MX-RT-1021/m-p/977883#M5071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="333224" data-username="bbenj" href="https://community.nxp.com/people/bbenj"&gt;Benjamin Balga&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Thanks for your updated information, and sorry for my later reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp; That's very good to hear you have make the MCUBootUtility sometimes works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; When it works, your boot app totally work, right?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; About the error code 20106, I will help you to check it with our related department, do you mean, if you erase the flash at first, then you won't meet the 20106 error code problem, right?&lt;/P&gt;&lt;P&gt;&amp;nbsp; Next time, please insert your picture to the post directly, not just the attachment, then I can see it more easily.&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&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="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&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>Mon, 11 Nov 2019 10:05:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/QSPI-Flash-not-detected-on-2nd-FlexSPI-pinmux-i-MX-RT-1021/m-p/977883#M5071</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2019-11-11T10:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: QSPI Flash not detected on 2nd FlexSPI pinmux (i.MX RT 1021)</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/QSPI-Flash-not-detected-on-2nd-FlexSPI-pinmux-i-MX-RT-1021/m-p/977884#M5072</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;/P&gt;&lt;P&gt;I had the error&amp;nbsp;20106 even if I erased first.&lt;/P&gt;&lt;P&gt;I posted a message below, that is not yet released from moderation, where I said that I got MCU Boot Utility to work finally without error (could read &amp;amp; write, was working great every time), &lt;STRONG&gt;but today, it&amp;nbsp;don't&amp;nbsp;want to!&lt;/STRONG&gt; For whatever reason. Hardware didn't changed, but now it can't properly read the flash parameters (block size &amp;amp; others), I get garbage when reading, and writing returns and error code&amp;nbsp;&lt;SPAN&gt;20106.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And after trying several times, now it can't even detect the flash...&amp;nbsp;:smileyangry:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But I can still upload with my CMSIS-DAP (I fixed the flash block config issue I had,&amp;nbsp;modifying the flexspi_nor_config.c file). However, if I try to do a mass erase with the Flash GUI, I get an error:&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;Opening flash driver workspace/iMXRT1020_QSPI/iMXRT1020_QSPI/builds/MIMXRT1020-IS25LP128-FLEXSPI2.cfx&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;Sending VECTRESET to run flash driver&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;Flash device supported (16MB = 4096*4K at 0x60000000)&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;Mass Erase flash at 0x60000000&lt;/P&gt;&lt;P style="color: #ff2600; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;EraseChip (0x0, 0x0, 0x0) status 0x1 - driver reported driver error - EXTSPI driver rc 7002 (0x1B5A)&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;Closing flash driver iMXRT1020_QSPI/iMXRT1020_QSPI/builds/MIMXRT1020-IS25LP128-FLEXSPI2.cfx&lt;/P&gt;&lt;P style="color: #ff2600; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;Failed to erase flash: Ef(49): Flash driver operation gave error.&lt;/P&gt;&lt;P style="color: #008f00; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;(100) Target Connection Failed&lt;/P&gt;&lt;P style="color: #ff2600; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;Unable to perform operation!&lt;/P&gt;&lt;P style="color: #ff2600; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;Command failed with exit code 1&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a screen capture of the issues I had this morning with MCU Boot Utility:&lt;/P&gt;&lt;P&gt;At first the memory sizes were wrong (3GB, should be 256B, 4k and 256KB I think) and reading returns error -4:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Capture d’écran 2019-11-11 à 11.18.25.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/94299i58BCEA6F3EFAABAA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture d’écran 2019-11-11 à 11.18.25.png" alt="Capture d’écran 2019-11-11 à 11.18.25.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then, after a flash memory erase, no more details but I can read garbage, but erase and write doesn't work (error 20106):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Capture d’écran 2019-11-11 à 11.45.00.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/94327iFB60E3443F3684AD/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture d’écran 2019-11-11 à 11.45.00.png" alt="Capture d’écran 2019-11-11 à 11.45.00.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And now the flash isn't detected at all. Debugging via CMSIS-DAP works though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm getting really tired of things suddenly working, then not, then a bit... I'll see tomorrow I suppose&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At least I can debug code on the flash now, at last&amp;nbsp;I'm able to work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2019 11:20:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/QSPI-Flash-not-detected-on-2nd-FlexSPI-pinmux-i-MX-RT-1021/m-p/977884#M5072</guid>
      <dc:creator>bbenj</dc:creator>
      <dc:date>2019-11-11T11:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: QSPI Flash not detected on 2nd FlexSPI pinmux (i.MX RT 1021)</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/QSPI-Flash-not-detected-on-2nd-FlexSPI-pinmux-i-MX-RT-1021/m-p/977885#M5073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="333224" data-username="bbenj" href="https://community.nxp.com/people/bbenj"&gt;Benjamin Balga&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Thanks a lot for your updated information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; You said, now, just the MCUBootutility write, erase and read can't work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; But the debugger still works with CMSIS DAP, just the mass erase can't work, right?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Could you share your modified &lt;SPAN&gt;flexspi_nor_config.c, MIMXRT1020-IS25LP128-FLEXSPI2.cfx or the related source code detail modify points for secondary pinmux option? When you debug the code, do the mass erase for the external flash, do you use this erase whole chip?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&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/95315i29DCD5329A530613/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What about erase sector, whether it works or not?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&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/95358i3D516DB3AE456186/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&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="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&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, 12 Nov 2019 02:42:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/QSPI-Flash-not-detected-on-2nd-FlexSPI-pinmux-i-MX-RT-1021/m-p/977885#M5073</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2019-11-12T02:42:19Z</dc:date>
    </item>
    <item>
      <title>Re: QSPI Flash not detected on 2nd FlexSPI pinmux (i.MX RT 1021)</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/QSPI-Flash-not-detected-on-2nd-FlexSPI-pinmux-i-MX-RT-1021/m-p/977886#M5074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;Hi &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;Yes, can't read/write/erase with MCU Boot Utility. Still don't work today, same error.&lt;/P&gt;&lt;P&gt;Can debug with CMSIS-DAP, but "Mass erase" or "Erase by sector" from GUI Flash Tool doesn't work. I don't know how to to erase without this tool.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Capture d’écran 2019-11-12 à 10.51.25.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/90826iD83E0EA1A281140D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture d’écran 2019-11-12 à 10.51.25.png" alt="Capture d’écran 2019-11-12 à 10.51.25.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I joined the flexspi_QSPI_flash.h/.c &amp;amp; .cfx files from the Flash driver, where I did changes.&lt;/P&gt;&lt;P&gt;Basically I replaced&amp;nbsp;the existing LUT with the LUT from the polling example, and there are differences on the NOR_CMD_LUT_SEQ_IDX_xx between the 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Benjamin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2019 10:16:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/QSPI-Flash-not-detected-on-2nd-FlexSPI-pinmux-i-MX-RT-1021/m-p/977886#M5074</guid>
      <dc:creator>bbenj</dc:creator>
      <dc:date>2019-11-12T10:16:17Z</dc:date>
    </item>
  </channel>
</rss>

