<?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: hyper flash cannot erase/program in i.MX RT Crossover MCUs</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/hyper-flash-cannot-erase-program/m-p/1783515#M28335</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/224801"&gt;@Jay_Lin&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;Please note, the Hyperflash can't support the RWW function.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;So, your flash&amp;nbsp; operation API , eg,&amp;nbsp;&lt;SPAN&gt;flexspi_nor_flash_erase_sector, program related flash file need to copy to the internal RAM.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; You can refer to project:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;SDK_2_14_0_EVKB-IMXRT1050\boards\evkbimxrt1050\driver_examples\flexspi\hyper_flash\polling_transfer&lt;/P&gt;
&lt;P&gt;&amp;nbsp; in the ld file, you can find, the flash file is copy to the internal RAM.&lt;/P&gt;
&lt;P&gt;You also need to do it like that, then you should make it works.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Wish it helps you!&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;kerry&lt;/P&gt;</description>
    <pubDate>Fri, 05 Jan 2024 08:37:17 GMT</pubDate>
    <dc:creator>kerryzhou</dc:creator>
    <dc:date>2024-01-05T08:37:17Z</dc:date>
    <item>
      <title>hyper flash cannot erase/program</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/hyper-flash-cannot-erase-program/m-p/1782712#M28293</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Hi, the flash I use is S26KS256S.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I use the upper half of the flash memory space for the second bootloader (0x60000000~0x60040000) and the remaining space for my applications.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I referred to the AN12604 manual, transplanted the "polling_transfer" example in the SDK "SDK_2_14_0_EVKB-IMXRT1050", transplanted the hyperflash operation related functions into my software and placed it in SRAM.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When I used debug to check the action of the second bootloader operating hyperflash, I discovered a strange phenomenon.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;1)&amp;nbsp;&lt;SPAN&gt;If I use free run, the program will crash when executing flexspi_nor_flash_erase_sector; after pausing debugging, the program will get stuck in the MCUboot.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jay_Lin_0-1704347452823.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/256619i5F490291040C62AE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jay_Lin_0-1704347452823.png" alt="Jay_Lin_0-1704347452823.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jay_Lin_1-1704347578429.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/256623iCD224EACB23BB1DF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jay_Lin_1-1704347578429.png" alt="Jay_Lin_1-1704347578429.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2)If I add a breakpoint in the flexspi_nor_flash_erase_sector function, the flash erase operation can be completed successfully and the program can continue execution.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jay_Lin_2-1704347765422.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/256626i13B81CC7E376BFFE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jay_Lin_2-1704347765422.png" alt="Jay_Lin_2-1704347765422.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jay_Lin_3-1704347804639.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/256627iC15F765EBB26D387/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jay_Lin_3-1704347804639.png" alt="Jay_Lin_3-1704347804639.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jay_Lin_4-1704347832315.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/256629iD167DBAA1B1F6B97/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jay_Lin_4-1704347832315.png" alt="Jay_Lin_4-1704347832315.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How to solve this problem?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is hyperflash can erase/program it self? Are there any examples that I can refer to?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2024 06:01:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/hyper-flash-cannot-erase-program/m-p/1782712#M28293</guid>
      <dc:creator>Jay_Lin</dc:creator>
      <dc:date>2024-01-04T06:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: hyper flash cannot erase/program</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/hyper-flash-cannot-erase-program/m-p/1783515#M28335</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/224801"&gt;@Jay_Lin&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;Please note, the Hyperflash can't support the RWW function.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;So, your flash&amp;nbsp; operation API , eg,&amp;nbsp;&lt;SPAN&gt;flexspi_nor_flash_erase_sector, program related flash file need to copy to the internal RAM.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; You can refer to project:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;SDK_2_14_0_EVKB-IMXRT1050\boards\evkbimxrt1050\driver_examples\flexspi\hyper_flash\polling_transfer&lt;/P&gt;
&lt;P&gt;&amp;nbsp; in the ld file, you can find, the flash file is copy to the internal RAM.&lt;/P&gt;
&lt;P&gt;You also need to do it like that, then you should make it works.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Wish it helps you!&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;kerry&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2024 08:37:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/hyper-flash-cannot-erase-program/m-p/1783515#M28335</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2024-01-05T08:37:17Z</dc:date>
    </item>
  </channel>
</rss>

