<?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: Read and write from external Nor flash connected with FLEXSPI in i.MX RT Crossover MCUs</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Read-and-write-from-external-Nor-flash-connected-with-FLEXSPI/m-p/1393244#M17791</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.&lt;BR /&gt;1) Is this object will have any impact on FlexSpi?&lt;BR /&gt;-- From the function point of view, these two kinds of objects are the same. &lt;BR /&gt;2) Do you have example with cmake in eclipse ?&lt;BR /&gt;-- The linker file is suited for the Eclipse, which can relocate the FlexSPI driver into the RAM, please refer to it for details.&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&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&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;</description>
    <pubDate>Thu, 30 Dec 2021 06:51:38 GMT</pubDate>
    <dc:creator>jeremyzhou</dc:creator>
    <dc:date>2021-12-30T06:51:38Z</dc:date>
    <item>
      <title>Read and write from external Nor flash connected with FLEXSPI</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Read-and-write-from-external-Nor-flash-connected-with-FLEXSPI/m-p/1393062#M17784</link>
      <description>&lt;P&gt;HI,&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are working on IMXRT 1050 EVEB. Originally this board was Hyper flash we have changed this board to support QSPI.&lt;/P&gt;&lt;P&gt;We are taking reference from example Hyeperflash with&amp;nbsp;SDK_2.9.1_EVKB-IMXRT1050\boards\evkbimxrt1050\driver_examples\flexspi\hyper_flash\polling_transfer.&amp;nbsp; This example we have modified for external QSPI interface with flexspi using Linker file&amp;nbsp;MIMXRT1052xxxxx_flexspi_nor.icf.&lt;/P&gt;&lt;P&gt;We have modified linker file to work this as below,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="shaileshnsec_0-1640781510430.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/166452i21EFCDE754715E9E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="shaileshnsec_0-1640781510430.png" alt="shaileshnsec_0-1640781510430.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With above changes&amp;nbsp;Read and write from external Nor flash connected with FLEXSPI is working on IAR IDE. But same change we have ported to eclipse with cmake but it is not working seems when we try to configure FlexSpi register then system crashes.&lt;/P&gt;&lt;P&gt;I found some difference object file generated by eclipse with cmake and IAR. IAR is generating fsl_flexspi.o object file where as Eclipse with cmake is generating fsl_flexspi.c.obj(that is 3D object file).&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this object will have any impact on FlexSpi ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;Do you have example with cmake in eclipse ?&lt;/P&gt;&lt;P&gt;Please help us to resolve this issue..&lt;/P&gt;</description>
      <pubDate>Wed, 29 Dec 2021 12:52:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Read-and-write-from-external-Nor-flash-connected-with-FLEXSPI/m-p/1393062#M17784</guid>
      <dc:creator>shaileshnsec</dc:creator>
      <dc:date>2021-12-29T12:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: Read and write from external Nor flash connected with FLEXSPI</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Read-and-write-from-external-Nor-flash-connected-with-FLEXSPI/m-p/1393244#M17791</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.&lt;BR /&gt;1) Is this object will have any impact on FlexSpi?&lt;BR /&gt;-- From the function point of view, these two kinds of objects are the same. &lt;BR /&gt;2) Do you have example with cmake in eclipse ?&lt;BR /&gt;-- The linker file is suited for the Eclipse, which can relocate the FlexSPI driver into the RAM, please refer to it for details.&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&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&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;</description>
      <pubDate>Thu, 30 Dec 2021 06:51:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Read-and-write-from-external-Nor-flash-connected-with-FLEXSPI/m-p/1393244#M17791</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2021-12-30T06:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: Read and write from external Nor flash connected with FLEXSPI</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Read-and-write-from-external-Nor-flash-connected-with-FLEXSPI/m-p/1394170#M17846</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We have modified FlexSpi NOR linker file. We are using eclipse IDE with Cmake. Here Qspi.c is calling some API from FlexSpi.c. We have seen QSPI and FlexSpi object file is correctly moved to RAM location. Now FlexSpi Initialization is successful without any crash. But when try to read Device ID of QSPI it hangs on API&amp;nbsp;&amp;nbsp;QspiFlash_GetVendorId(..).&lt;/P&gt;&lt;P&gt;Linker file modification :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="shaileshnsec_3-1641290595564.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/166656i7E0700AF2466CA98/image-size/medium?v=v2&amp;amp;px=400" role="button" title="shaileshnsec_3-1641290595564.png" alt="shaileshnsec_3-1641290595564.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code flow -&amp;gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;static void TestCaseInitVerify(void)&lt;BR /&gt;{&lt;BR /&gt;bool bValue = false;&lt;BR /&gt;// Initialize the flash.&lt;BR /&gt;QspiFlash_Init();&amp;nbsp; &amp;nbsp;// This is defined in QspiFlash.c which calls FlexSpi_Initialization()&amp;nbsp; // **This init is success&lt;/P&gt;&lt;P&gt;// Get vendor ID.&lt;BR /&gt;QspiFlash_GetVendorId(&amp;amp;vendorID); // This is defined in&amp;nbsp;QspiFlash.c // **It shows below message&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="shaileshnsec_1-1641290378995.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/166652iA35BAD219778380B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="shaileshnsec_1-1641290378995.png" alt="shaileshnsec_1-1641290378995.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;} /&lt;/P&gt;&lt;P&gt;When I stop debugger it shows below message in disassembly when it JUMPS to NOR location.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="shaileshnsec_2-1641290546079.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/166654iEA4A158984974DBD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="shaileshnsec_2-1641290546079.png" alt="shaileshnsec_2-1641290546079.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please let us know where is the issue?&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jan 2022 10:24:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Read-and-write-from-external-Nor-flash-connected-with-FLEXSPI/m-p/1394170#M17846</guid>
      <dc:creator>shaileshnsec</dc:creator>
      <dc:date>2022-01-04T10:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: Read and write from external Nor flash connected with FLEXSPI</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Read-and-write-from-external-Nor-flash-connected-with-FLEXSPI/m-p/1394467#M17855</link>
      <description>&lt;P&gt;Hi，&lt;BR /&gt;Thanks for your reply.&lt;BR /&gt;As the below figure shows, the QspiFlash_GetVendorId() function still resides in the QSPI instead of the RAM actually, and it's the root cause of the above failure.&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&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&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;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jan 2022 02:07:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Read-and-write-from-external-Nor-flash-connected-with-FLEXSPI/m-p/1394467#M17855</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2022-01-05T02:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: Read and write from external Nor flash connected with FLEXSPI</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Read-and-write-from-external-Nor-flash-connected-with-FLEXSPI/m-p/1395355#M17890</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have checked API&amp;nbsp;&lt;SPAN&gt;QspiFlash_GetVendorId(..) is located to RAM location as well. I have attached&amp;nbsp;screenshot(Intentionally&amp;nbsp;called before to QspiFlash_Init to verify&amp;nbsp;whether&amp;nbsp;it enters to RAM).&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="shaileshnsec_0-1641449890996.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/166839i6D1ABE4B2B8E88BB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="shaileshnsec_0-1641449890996.png" alt="shaileshnsec_0-1641449890996.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Problem is when&amp;nbsp;QspiFlash_Init() API is called, seems it does not comes out of RAM location correctly. So it does not go inside&amp;nbsp;&lt;SPAN&gt;QspiFlash_GetVendorId() and show below message.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="shaileshnsec_1-1641450070848.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/166840i35E5773695F26C04/image-size/medium?v=v2&amp;amp;px=400" role="button" title="shaileshnsec_1-1641450070848.png" alt="shaileshnsec_1-1641450070848.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;More information on relocation from RAM to NOR and Vice-versa.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="shaileshnsec_2-1641450361724.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/166842i72E407EB820DE61C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="shaileshnsec_2-1641450361724.png" alt="shaileshnsec_2-1641450361724.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please let us know where is the problem??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 06:23:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Read-and-write-from-external-Nor-flash-connected-with-FLEXSPI/m-p/1395355#M17890</guid>
      <dc:creator>shaileshnsec</dc:creator>
      <dc:date>2022-01-06T06:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: Read and write from external Nor flash connected with FLEXSPI</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Read-and-write-from-external-Nor-flash-connected-with-FLEXSPI/m-p/1396466#M17917</link>
      <description>&lt;P&gt;Hi，&lt;BR /&gt;Thanks for your reply.&lt;BR /&gt;Please refer to the linker file to implement relocate the FlexSPI driver into the RAM.&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&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&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;</description>
      <pubDate>Mon, 10 Jan 2022 02:25:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Read-and-write-from-external-Nor-flash-connected-with-FLEXSPI/m-p/1396466#M17917</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2022-01-10T02:25:23Z</dc:date>
    </item>
  </channel>
</rss>

