<?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 FlexSpi on Eclipse with cmake in i.MX RT Crossover MCUs</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FlexSpi-on-Eclipse-with-cmake/m-p/1341530#M16356</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We are working on FlexSpi module, we have tested SDK 2.9 on IMXRT1050-EVKB with SDK_2.9.1_EVKB-IMXRT1050\boards\evkbimxrt1050\driver_examples\flexspi\hyper_flash\polling_transfer&amp;nbsp;example using linker file &lt;STRONG&gt;MIMXRT1052xxxxx_flexspi_nor.icf&lt;/STRONG&gt; and it is working fine on IAR toolchain.&lt;/P&gt;&lt;P&gt;Also we have our own SDK but Flex SPI almost ported from NXP also we have tested on&amp;nbsp;IMXRT1050-EVKB IAR toolchain using linker file&amp;nbsp;&lt;STRONG&gt; MIMXRT1052xxxxx_flexspi_nor.icf&lt;/STRONG&gt; and it is also working fine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But our requirement is we have to build on &lt;STRONG&gt;eclipse using cmake&lt;/STRONG&gt;. And our SDK with ported FlexSpi is working fine with linker &lt;STRONG&gt;MIMXRT1052xxxxx_ram.icf&lt;/STRONG&gt; file on eclipse with cmake but with linker&amp;nbsp;&lt;STRONG&gt;MIMXRT1052xxxxx_flexspi_nor.icf&lt;/STRONG&gt;&amp;nbsp;(we have used XIP also with XIP_EXTERNAL_FLASH=1 XIP_BOOT_HEADER_ENABLE=1) somewhere going to unknown location or giving DAP error.&lt;/P&gt;&lt;P&gt;I have attached image for error. Kindly help us in resolving this issue almost struck in this.&lt;/P&gt;&lt;P&gt;Mostly when I debug it fails during FlexSpi init when trying to reset&amp;nbsp;&lt;/P&gt;&lt;P&gt;void FlexSpi_SoftwareReset(void)&lt;BR /&gt;{&lt;BR /&gt;FLEXSPI_Type * const pFlexSpiBaseAddress = FLEXSPI;&lt;/P&gt;&lt;P&gt;base-&amp;gt;MCR0 |= FLEXSPI_MCR0_SWRESET_MASK;&lt;/P&gt;&lt;P&gt;or when trying to read from MCR0, MCR1, MCR2.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="shaileshnsec_0-1631789232604.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/156290i7EA0CEDA1EF29CF6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="shaileshnsec_0-1631789232604.png" alt="shaileshnsec_0-1631789232604.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Shailesh Kumar&lt;/P&gt;</description>
    <pubDate>Thu, 23 Sep 2021 09:55:31 GMT</pubDate>
    <dc:creator>shaileshnsec</dc:creator>
    <dc:date>2021-09-23T09:55:31Z</dc:date>
    <item>
      <title>FlexSpi on Eclipse with cmake</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FlexSpi-on-Eclipse-with-cmake/m-p/1341530#M16356</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We are working on FlexSpi module, we have tested SDK 2.9 on IMXRT1050-EVKB with SDK_2.9.1_EVKB-IMXRT1050\boards\evkbimxrt1050\driver_examples\flexspi\hyper_flash\polling_transfer&amp;nbsp;example using linker file &lt;STRONG&gt;MIMXRT1052xxxxx_flexspi_nor.icf&lt;/STRONG&gt; and it is working fine on IAR toolchain.&lt;/P&gt;&lt;P&gt;Also we have our own SDK but Flex SPI almost ported from NXP also we have tested on&amp;nbsp;IMXRT1050-EVKB IAR toolchain using linker file&amp;nbsp;&lt;STRONG&gt; MIMXRT1052xxxxx_flexspi_nor.icf&lt;/STRONG&gt; and it is also working fine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But our requirement is we have to build on &lt;STRONG&gt;eclipse using cmake&lt;/STRONG&gt;. And our SDK with ported FlexSpi is working fine with linker &lt;STRONG&gt;MIMXRT1052xxxxx_ram.icf&lt;/STRONG&gt; file on eclipse with cmake but with linker&amp;nbsp;&lt;STRONG&gt;MIMXRT1052xxxxx_flexspi_nor.icf&lt;/STRONG&gt;&amp;nbsp;(we have used XIP also with XIP_EXTERNAL_FLASH=1 XIP_BOOT_HEADER_ENABLE=1) somewhere going to unknown location or giving DAP error.&lt;/P&gt;&lt;P&gt;I have attached image for error. Kindly help us in resolving this issue almost struck in this.&lt;/P&gt;&lt;P&gt;Mostly when I debug it fails during FlexSpi init when trying to reset&amp;nbsp;&lt;/P&gt;&lt;P&gt;void FlexSpi_SoftwareReset(void)&lt;BR /&gt;{&lt;BR /&gt;FLEXSPI_Type * const pFlexSpiBaseAddress = FLEXSPI;&lt;/P&gt;&lt;P&gt;base-&amp;gt;MCR0 |= FLEXSPI_MCR0_SWRESET_MASK;&lt;/P&gt;&lt;P&gt;or when trying to read from MCR0, MCR1, MCR2.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="shaileshnsec_0-1631789232604.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/156290i7EA0CEDA1EF29CF6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="shaileshnsec_0-1631789232604.png" alt="shaileshnsec_0-1631789232604.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Shailesh Kumar&lt;/P&gt;</description>
      <pubDate>Thu, 23 Sep 2021 09:55:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FlexSpi-on-Eclipse-with-cmake/m-p/1341530#M16356</guid>
      <dc:creator>shaileshnsec</dc:creator>
      <dc:date>2021-09-23T09:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: FlexSpi on Eclipse with cmake</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FlexSpi-on-Eclipse-with-cmake/m-p/1341663#M16362</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Adding more information on this issue.&lt;/P&gt;&lt;P&gt;I am attaching snaps of interrupt table which starts from 0x60002000 (define symbol m_interrupts_start = 0x60002000;) for IAR and eclipse(using cmake) with IAR toolchain.&lt;/P&gt;&lt;P&gt;We can see clearly in case of Eclipse CSTACK is not available at 0x60002000 but in IAR it is in correct place so it is working.&lt;/P&gt;&lt;P&gt;Eclipse&amp;nbsp;interrupt table :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Eclipse_m_interrupts_start.PNG" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/156320iB1890110C14084E0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Eclipse_m_interrupts_start.PNG" alt="Eclipse_m_interrupts_start.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;IAR interrupt table :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IAR_m_interrupts_start.PNG" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/156321iB90684951673A0E6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="IAR_m_interrupts_start.PNG" alt="IAR_m_interrupts_start.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;  Eclipse&amp;nbsp;CSTACK location :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CSTACK location in case of eclipse.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/156322i8996FE0BDF518342/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CSTACK location in case of eclipse.png" alt="CSTACK location in case of eclipse.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Shailesh Kumar&lt;/P&gt;</description>
      <pubDate>Thu, 16 Sep 2021 14:46:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FlexSpi-on-Eclipse-with-cmake/m-p/1341663#M16362</guid>
      <dc:creator>shaileshnsec</dc:creator>
      <dc:date>2021-09-16T14:46:38Z</dc:date>
    </item>
    <item>
      <title>Re: FlexSpi on Eclipse with cmake</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FlexSpi-on-Eclipse-with-cmake/m-p/1342063#M16381</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;In my opinion, the issue may be related to the linker file and you can try to use the linker file for the Arm® GCC demos in the SDK library instead of MIMXRT1052xxxxx_flexspi_nor.icf.&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>Fri, 17 Sep 2021 08:34:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FlexSpi-on-Eclipse-with-cmake/m-p/1342063#M16381</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2021-09-17T08:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: FlexSpi on Eclipse with cmake</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FlexSpi-on-Eclipse-with-cmake/m-p/1343223#M16407</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't think this is the problem with linker file. I feel some code are getting optimized in eclipse for some structure which we are writing directly to memory location using #pargma. I have ported NXP code also in eclipse environment with IAR toolchain using Cmake but getting same kind of issue either it does not hit main or some reset issue to unknown location.&lt;/P&gt;&lt;P&gt;Could you please provide example project&amp;nbsp;polling_transfer using linker &lt;SPAN&gt;MIMXRT1052xxxxx_flexspi_nor.icf&amp;nbsp;&lt;/SPAN&gt;in eclipse environment with IAR toolchain using cmake .&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Shailesh Kumar&lt;/P&gt;</description>
      <pubDate>Tue, 21 Sep 2021 11:00:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FlexSpi-on-Eclipse-with-cmake/m-p/1343223#M16407</guid>
      <dc:creator>shaileshnsec</dc:creator>
      <dc:date>2021-09-21T11:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: FlexSpi on Eclipse with cmake</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FlexSpi-on-Eclipse-with-cmake/m-p/1348274#M16503</link>
      <description>&lt;P&gt;HI,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any solution for this query.&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are almost struck up in this problem.&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Shailesh&lt;/P&gt;</description>
      <pubDate>Wed, 29 Sep 2021 09:52:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FlexSpi-on-Eclipse-with-cmake/m-p/1348274#M16503</guid>
      <dc:creator>shaileshnsec</dc:creator>
      <dc:date>2021-09-29T09:52:10Z</dc:date>
    </item>
  </channel>
</rss>

