<?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: Cannot read and write flash when programing to flash using MIMXRT1170_UFL_L2 in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Cannot-read-and-write-flash-when-programing-to-flash-using/m-p/1597082#M201353</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/61241"&gt;@jingpan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry about making you confused. What I mean is that, when I select the 'Link application to RAM' (&lt;SPAN&gt;when&amp;nbsp;programing to ram&lt;/SPAN&gt;), &lt;SPAN&gt;it can read and write the hyper flash normally&lt;/SPAN&gt;. But when I don't select&amp;nbsp;'Link application to RAM' (when &lt;SPAN&gt;programing to flash&lt;/SPAN&gt;),&amp;nbsp;the program will get stuck when running to the first "FLEXSPI_SoftwareReset(base)".&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Link application to RAM" style="width: 818px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/210408i8D55BCBAF8FDD13F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Link application to RAM.png" alt="Link application to RAM" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Link application to RAM&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And Thanks for your mention of 'linkscripts', I solve the problem by adding 'fsl_clock.o' to&lt;SPAN&gt;&amp;nbsp;SRAM, it can read and write the hyper flash&amp;nbsp;when&amp;nbsp;programing to flash. But the program will get stuck at &lt;STRONG&gt;the second&amp;nbsp;&lt;/STRONG&gt;&lt;STRONG&gt;'FLEXSPI_SoftwareReset(base);' in function 'flexspi_nor_flash_page_program'&lt;/STRONG&gt;&amp;nbsp;and lead to a fault, and if I remove it, the program can run normally. I'm not sure the reason why only this&amp;nbsp;'FLEXSPI_SoftwareReset(base);' will lead to a problem. And I also found that if I run the&amp;nbsp;flexspi_nor_flash_page_program by one step, the program won't get stuck at the second&amp;nbsp;'FLEXSPI_SoftwareReset(base);' in function 'flexspi_nor_flash_page_program'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks a lot.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 10 Feb 2023 09:01:58 GMT</pubDate>
    <dc:creator>yalin</dc:creator>
    <dc:date>2023-02-10T09:01:58Z</dc:date>
    <item>
      <title>Cannot read and write flash when programing to flash using MIMXRT1170_UFL_L2</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Cannot-read-and-write-flash-when-programing-to-flash-using/m-p/1592193#M200955</link>
      <description>&lt;P&gt;I have a custom board with hyperflash S26KS512 on rt1170, I can program to flash using the super flashing algorithm "MIMXRT1170_UFL_L2" normally. For reading and writing flash, I port the SDK "evkbimxrt1050_flexspi_hyper_flash_polling_transfer" to rt1170, and it can read and write flash normally when&amp;nbsp;programing to ram, but failed&amp;nbsp;when&amp;nbsp;programing to flash, and I check that the program will get stuck when running to "FLEXSPI_SoftwareReset(base)".&lt;/P&gt;&lt;P&gt;Is this problem related to the&amp;nbsp;super flashing algorithm "MIMXRT1170_UFL_L2"? I check the development board which uses the default&amp;nbsp;flashing algorithm with QSPI, and it can read and write flash normally&amp;nbsp;when&amp;nbsp;programing to flash.&lt;/P&gt;&lt;P&gt;Is there anything else to do for reading and writing flash when programing to flash?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 09:20:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Cannot-read-and-write-flash-when-programing-to-flash-using/m-p/1592193#M200955</guid>
      <dc:creator>yalin</dc:creator>
      <dc:date>2023-02-02T09:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot read and write flash when programing to flash using MIMXRT1170_UFL_L2</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Cannot-read-and-write-flash-when-programing-to-flash-using/m-p/1594585#M201137</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/202840"&gt;@yalin&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;If the code is XIP, the cpu can't get next instruction when the flash is reset.&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>Tue, 07 Feb 2023 09:33:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Cannot-read-and-write-flash-when-programing-to-flash-using/m-p/1594585#M201137</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2023-02-07T09:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot read and write flash when programing to flash using MIMXRT1170_UFL_L2</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Cannot-read-and-write-flash-when-programing-to-flash-using/m-p/1595172#M201192</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/61241"&gt;@jingpan&lt;/a&gt;, Thanks for support. So do you mean it is related to the super flashing algorithm "MIMXRT1170_UFL_L2"? Because the development board can read and write flash normally when programing to flash which uses the default flashing algorithm with QSPI "MIMXRT1170_SFDP_QSPI.cfx", which also has &lt;SPAN&gt;FLEXSPI_SoftwareReset(base)&lt;/SPAN&gt; in it.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 03:09:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Cannot-read-and-write-flash-when-programing-to-flash-using/m-p/1595172#M201192</guid>
      <dc:creator>yalin</dc:creator>
      <dc:date>2023-02-08T03:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot read and write flash when programing to flash using MIMXRT1170_UFL_L2</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Cannot-read-and-write-flash-when-programing-to-flash-using/m-p/1596355#M201309</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/202840"&gt;@yalin&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;It's not related to flash download algorithm. Their work is finished after you download your code. In the flexspi demo, the flash driver is located in SRAM. Does your code located in SRAM?&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, 09 Feb 2023 08:03:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Cannot-read-and-write-flash-when-programing-to-flash-using/m-p/1596355#M201309</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2023-02-09T08:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot read and write flash when programing to flash using MIMXRT1170_UFL_L2</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Cannot-read-and-write-flash-when-programing-to-flash-using/m-p/1596480#M201319</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/61241"&gt;@jingpan&lt;/a&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I use the project 'evkmimxrt1170_flexspi_nor_polling_transfer_cm7' by installing SDK 2.11.0 of RT1170, the flash driver is located in&amp;nbsp;BOARD_FLASH by default, not SRAM.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 10:00:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Cannot-read-and-write-flash-when-programing-to-flash-using/m-p/1596480#M201319</guid>
      <dc:creator>yalin</dc:creator>
      <dc:date>2023-02-09T10:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot read and write flash when programing to flash using MIMXRT1170_UFL_L2</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Cannot-read-and-write-flash-when-programing-to-flash-using/m-p/1596956#M201345</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/202840"&gt;@yalin&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Please check the original demo's .ld file carefully. The flexspi related code located in SRAM. There is a linkscripts folder in the project. It can add something to 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>Fri, 10 Feb 2023 02:26:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Cannot-read-and-write-flash-when-programing-to-flash-using/m-p/1596956#M201345</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2023-02-10T02:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot read and write flash when programing to flash using MIMXRT1170_UFL_L2</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Cannot-read-and-write-flash-when-programing-to-flash-using/m-p/1597082#M201353</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/61241"&gt;@jingpan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry about making you confused. What I mean is that, when I select the 'Link application to RAM' (&lt;SPAN&gt;when&amp;nbsp;programing to ram&lt;/SPAN&gt;), &lt;SPAN&gt;it can read and write the hyper flash normally&lt;/SPAN&gt;. But when I don't select&amp;nbsp;'Link application to RAM' (when &lt;SPAN&gt;programing to flash&lt;/SPAN&gt;),&amp;nbsp;the program will get stuck when running to the first "FLEXSPI_SoftwareReset(base)".&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Link application to RAM" style="width: 818px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/210408i8D55BCBAF8FDD13F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Link application to RAM.png" alt="Link application to RAM" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Link application to RAM&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And Thanks for your mention of 'linkscripts', I solve the problem by adding 'fsl_clock.o' to&lt;SPAN&gt;&amp;nbsp;SRAM, it can read and write the hyper flash&amp;nbsp;when&amp;nbsp;programing to flash. But the program will get stuck at &lt;STRONG&gt;the second&amp;nbsp;&lt;/STRONG&gt;&lt;STRONG&gt;'FLEXSPI_SoftwareReset(base);' in function 'flexspi_nor_flash_page_program'&lt;/STRONG&gt;&amp;nbsp;and lead to a fault, and if I remove it, the program can run normally. I'm not sure the reason why only this&amp;nbsp;'FLEXSPI_SoftwareReset(base);' will lead to a problem. And I also found that if I run the&amp;nbsp;flexspi_nor_flash_page_program by one step, the program won't get stuck at the second&amp;nbsp;'FLEXSPI_SoftwareReset(base);' in function 'flexspi_nor_flash_page_program'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks a lot.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 09:01:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Cannot-read-and-write-flash-when-programing-to-flash-using/m-p/1597082#M201353</guid>
      <dc:creator>yalin</dc:creator>
      <dc:date>2023-02-10T09:01:58Z</dc:date>
    </item>
  </channel>
</rss>

