<?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>i.MX ProcessorsのトピックRe: RT1021: Read/Write to flash when running XIP from the same flash</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/RT1021-Read-Write-to-flash-when-running-XIP-from-the-same-flash/m-p/1697527#M210126</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/221080"&gt;@Selrac_13&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;You can refer to the flexspi_polling_transfer example. There is a linkscripts folder in the project. When compile the project, MCUXpresso IDE will read the .ldt file in this folder to generate new link file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Jing&lt;/P&gt;</description>
    <pubDate>Wed, 02 Aug 2023 10:30:56 GMT</pubDate>
    <dc:creator>jingpan</dc:creator>
    <dc:date>2023-08-02T10:30:56Z</dc:date>
    <item>
      <title>RT1021: Read/Write to flash when running XIP from the same flash</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RT1021-Read-Write-to-flash-when-running-XIP-from-the-same-flash/m-p/1697415#M210112</link>
      <description>&lt;P&gt;This post is highly related with: &lt;A href="https://community.nxp.com/t5/i-MX-Processors/RT1021-Writing-to-flash-when-running-XIP-from-the-same-flash/m-p/1404876" target="_blank" rel="noopener"&gt;https://community.nxp.com/t5/i-MX-Processors/RT1021-Writing-to-flash-when-running-XIP-from-the-same-flash/m-p/1404876&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;LI-MESSAGE title="RT1021: Writing to flash when running XIP from the same flash." uid="1404644" url="https://community.nxp.com/t5/i-MX-Processors/RT1021-Writing-to-flash-when-running-XIP-from-the-same-flash/m-p/1404644#U1404644" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;Hi &lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/56840" target="_blank" rel="noopener"&gt;@jeremyzhou&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;I am very interested on this topic.&lt;/P&gt;&lt;P&gt;When you say:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;on the condition that relocating the FlexSPI driver in the RAM&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;How that can be achieved with details? I have taken a look to the example you mention: &lt;EM&gt;flexspi_nor_polling_transfer&amp;nbsp;&lt;/EM&gt;and I see&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;FlexSPI driver is moved to RAM on the Linker (linkscripts folder)&lt;/LI&gt;&lt;LI&gt;Use another Flash driver that the most common one:&lt;/LI&gt;&lt;/UL&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Selrac_13_0-1690966482558.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/234708i62E12C08DE6F3CC0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Selrac_13_0-1690966482558.png" alt="Selrac_13_0-1690966482558.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I don't see any Flash partitions or anything like that.&lt;/P&gt;&lt;P&gt;My current project is using this other flash driver:&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Selrac_13_1-1690966482550.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/234709i739959C14EA0CCA6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Selrac_13_1-1690966482550.png" alt="Selrac_13_1-1690966482550.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Having the&amp;nbsp;&lt;EM&gt;MIMXRT1020-EVK_IS25LP064.cfx&lt;/EM&gt; is a requirement?&lt;/P&gt;&lt;P&gt;With more details what I want to achieve is to use the 8 MB SPI Flash for different purposes:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;3 MB for the program itself&lt;/LI&gt;&lt;LI&gt;Other 5 MB as a Flash storage to use in RAW to read/write data&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Which steps I need to follow?&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;Carles&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 02 Aug 2023 08:56:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RT1021-Read-Write-to-flash-when-running-XIP-from-the-same-flash/m-p/1697415#M210112</guid>
      <dc:creator>Selrac_13</dc:creator>
      <dc:date>2023-08-02T08:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: RT1021: Read/Write to flash when running XIP from the same flash</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RT1021-Read-Write-to-flash-when-running-XIP-from-the-same-flash/m-p/1697527#M210126</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/221080"&gt;@Selrac_13&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;You can refer to the flexspi_polling_transfer example. There is a linkscripts folder in the project. When compile the project, MCUXpresso IDE will read the .ldt file in this folder to generate new link file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Jing&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2023 10:30:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RT1021-Read-Write-to-flash-when-running-XIP-from-the-same-flash/m-p/1697527#M210126</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2023-08-02T10:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: RT1021: Read/Write to flash when running XIP from the same flash</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RT1021-Read-Write-to-flash-when-running-XIP-from-the-same-flash/m-p/1697552#M210131</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/61241"&gt;@jingpan&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;Yes, I have seen the example and I understand the Linker generation, I see the resulting '*.ld' file contains these settings, for example:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Selrac_13_0-1690973614476.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/234741iB143CD541061D568/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Selrac_13_0-1690973614476.png" alt="Selrac_13_0-1690973614476.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;My question was about if any other consideration should be also take into account.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Is it ok to use the Flash driver 'MIMXRT1020_SFDP_QSPI.cfx'? Or I must change it to 'MIMXRT1020-EVK_IS25LP064.cfx'?&lt;/LI&gt;&lt;LI&gt;Must I limit the size of the Program Memoery Space to 3MB (instead the whole Flash size -&amp;gt; 8MB)?&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Selrac_13_1-1690973849691.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/234742iBF065F22D6BE40F3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Selrac_13_1-1690973849691.png" alt="Selrac_13_1-1690973849691.png" /&gt;&lt;/span&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Carles&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2023 10:59:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RT1021-Read-Write-to-flash-when-running-XIP-from-the-same-flash/m-p/1697552#M210131</guid>
      <dc:creator>Selrac_13</dc:creator>
      <dc:date>2023-08-02T10:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: RT1021: Read/Write to flash when running XIP from the same flash</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RT1021-Read-Write-to-flash-when-running-XIP-from-the-same-flash/m-p/1698311#M210189</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/221080"&gt;@Selrac_13&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Is it ok to use the Flash driver 'MIMXRT1020_SFDP_QSPI.cfx'? Or I must change it to 'MIMXRT1020-EVK_IS25LP064.cfx'?&lt;/P&gt;
&lt;P&gt;Yes, if it can download. Either drivers are fine.&lt;/P&gt;
&lt;P&gt;Must I limit the size of the Program Memery Space to 3MB (instead the whole Flash size -&amp;gt; 8MB)&lt;/P&gt;
&lt;P&gt;No, set the size according to your flash.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Jing&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 06:14:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RT1021-Read-Write-to-flash-when-running-XIP-from-the-same-flash/m-p/1698311#M210189</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2023-08-03T06:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: RT1021: Read/Write to flash when running XIP from the same flash</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RT1021-Read-Write-to-flash-when-running-XIP-from-the-same-flash/m-p/1701222#M210469</link>
      <description>&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;I have imported and tested two examples that seems to interact with the flash as I need:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;flexspi_nor_polling_transfer (the one proposed by you)&lt;/LI&gt;&lt;LI&gt;flash_component_nor&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;By default both of them have unchecked the following setting &lt;EM&gt;Link application to RAM&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Selrac_13_0-1691509724577.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/235587iF805A1372E7F8092/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Selrac_13_0-1691509724577.png" alt="Selrac_13_0-1691509724577.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If I check this setting, as all the code is placed in RAM both examples run fine, but with the default configuration, that is having the program in Flash as I need for my project, both examples crash:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;flash_component_nor:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Debugger starts but then a Fault occurs:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Selrac_13_1-1691509971585.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/235588iA58563F4403176E7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Selrac_13_1-1691509971585.png" alt="Selrac_13_1-1691509971585.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;flexspi_nor_polling_transfer:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;First execution the program is stucked at some point and it is not recovered, from now on if trying to launch the application again the debugger is not even starting:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Selrac_13_2-1691510268590.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/235589i229F60B4DD003A23/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Selrac_13_2-1691510268590.png" alt="Selrac_13_2-1691510268590.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;To recover the device I need to connect it with 'NXP MCU Boot Utility' and perform a 'Connect to ROM' once.&lt;/P&gt;&lt;P&gt;Any help on how to be able to implement a flash read/write while program is stored in the flash is very appreciated.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2023 16:04:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RT1021-Read-Write-to-flash-when-running-XIP-from-the-same-flash/m-p/1701222#M210469</guid>
      <dc:creator>Selrac_13</dc:creator>
      <dc:date>2023-08-08T16:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: RT1021: Read/Write to flash when running XIP from the same flash</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RT1021-Read-Write-to-flash-when-running-XIP-from-the-same-flash/m-p/1704090#M210711</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/221080"&gt;@Selrac_13&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;If your spi flash is same a RT1021 EVK, the fexspi demo can work well by default. If it is different, you must change the configuration in evkimxrt1021_flexspi_nor_config.c.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/i-MX-RT-Knowledge-Base/i-MX-RT-FLEXSPI-booting-guide/ta-p/1669262" target="_blank"&gt;https://community.nxp.com/t5/i-MX-RT-Knowledge-Base/i-MX-RT-FLEXSPI-booting-guide/ta-p/1669262&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Jing&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2023 06:51:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RT1021-Read-Write-to-flash-when-running-XIP-from-the-same-flash/m-p/1704090#M210711</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2023-08-14T06:51:26Z</dc:date>
    </item>
  </channel>
</rss>

