<?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 Increasing flash size in i.MX RT Crossover MCUs</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Increasing-flash-size/m-p/1975975#M32220</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using a RT1176 in a custom board with SDRAM and a IS25WP128-JBLE QSPI external flash.&lt;BR /&gt;&lt;BR /&gt;We are doing a HMI, and the flash size is getting small for including images in flash, so we changed the flash to IS25WP256D-JLLE.&lt;BR /&gt;When the code is less than 50% of the flash size, all is working fine, but when we start using the "new sectors" we get a hard fault in data_init.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="daniJVV_0-1729158460987.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/305228iB7C2CA2C156D8591/image-size/medium?v=v2&amp;amp;px=400" role="button" title="daniJVV_0-1729158460987.png" alt="daniJVV_0-1729158460987.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I changed the board flash size in board.h and a line in board.c&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&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;&lt;LI-CODE lang="c"&gt;#if defined(XIP_EXTERNAL_FLASH) &amp;amp;&amp;amp; (XIP_EXTERNAL_FLASH == 1)
    /* Region 8 setting: Memory with Normal type, not shareable, outer/inner write back. */
    MPU-&amp;gt;RBAR = ARM_MPU_RBAR(8, 0x30000000U);
//    MPU-&amp;gt;RASR = ARM_MPU_RASR(0, ARM_MPU_AP_RO, 0, 0, 1, 1, 0, ARM_MPU_REGION_SIZE_16MB);
    MPU-&amp;gt;RASR = ARM_MPU_RASR(0, ARM_MPU_AP_RO, 0, 0, 1, 1, 0, ARM_MPU_REGION_SIZE_32MB);

#endif&lt;/LI-CODE&gt;&lt;LI-CODE lang="c"&gt;/*! @brief The board flash size */
#define BOARD_FLASH_SIZE (0x2000000U)&lt;/LI-CODE&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also changed the size in MCU settings:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="daniJVV_2-1729158660528.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/305230iDE6487BACB00C154/image-size/medium?v=v2&amp;amp;px=400" role="button" title="daniJVV_2-1729158660528.png" alt="daniJVV_2-1729158660528.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Maybe the cfx driver is not valid?&lt;/P&gt;&lt;P&gt;I need to do more steps?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Oct 2024 09:54:23 GMT</pubDate>
    <dc:creator>daniJVV</dc:creator>
    <dc:date>2024-10-17T09:54:23Z</dc:date>
    <item>
      <title>Increasing flash size</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Increasing-flash-size/m-p/1975975#M32220</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using a RT1176 in a custom board with SDRAM and a IS25WP128-JBLE QSPI external flash.&lt;BR /&gt;&lt;BR /&gt;We are doing a HMI, and the flash size is getting small for including images in flash, so we changed the flash to IS25WP256D-JLLE.&lt;BR /&gt;When the code is less than 50% of the flash size, all is working fine, but when we start using the "new sectors" we get a hard fault in data_init.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="daniJVV_0-1729158460987.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/305228iB7C2CA2C156D8591/image-size/medium?v=v2&amp;amp;px=400" role="button" title="daniJVV_0-1729158460987.png" alt="daniJVV_0-1729158460987.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I changed the board flash size in board.h and a line in board.c&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&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;&lt;LI-CODE lang="c"&gt;#if defined(XIP_EXTERNAL_FLASH) &amp;amp;&amp;amp; (XIP_EXTERNAL_FLASH == 1)
    /* Region 8 setting: Memory with Normal type, not shareable, outer/inner write back. */
    MPU-&amp;gt;RBAR = ARM_MPU_RBAR(8, 0x30000000U);
//    MPU-&amp;gt;RASR = ARM_MPU_RASR(0, ARM_MPU_AP_RO, 0, 0, 1, 1, 0, ARM_MPU_REGION_SIZE_16MB);
    MPU-&amp;gt;RASR = ARM_MPU_RASR(0, ARM_MPU_AP_RO, 0, 0, 1, 1, 0, ARM_MPU_REGION_SIZE_32MB);

#endif&lt;/LI-CODE&gt;&lt;LI-CODE lang="c"&gt;/*! @brief The board flash size */
#define BOARD_FLASH_SIZE (0x2000000U)&lt;/LI-CODE&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also changed the size in MCU settings:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="daniJVV_2-1729158660528.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/305230iDE6487BACB00C154/image-size/medium?v=v2&amp;amp;px=400" role="button" title="daniJVV_2-1729158660528.png" alt="daniJVV_2-1729158660528.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Maybe the cfx driver is not valid?&lt;/P&gt;&lt;P&gt;I need to do more steps?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2024 09:54:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Increasing-flash-size/m-p/1975975#M32220</guid>
      <dc:creator>daniJVV</dc:creator>
      <dc:date>2024-10-17T09:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: Increasing flash size</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Increasing-flash-size/m-p/1976390#M32229</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/214941"&gt;@daniJVV&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Please follow the recommendations mentioned by my colleague in the following community post:&amp;nbsp;&lt;A href="https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/iMX-RT1062-with-IS25WP365D-JLLE-issue/m-p/1540603/highlight/true#M22107" target="_blank"&gt;Re: iMX RT1062 with IS25WP365D-JLLE issue - NXP Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;He mentions some remarks that are worth taking into account. Also, try the example code that he mentions and let me know what are the results as well.&lt;/P&gt;
&lt;P&gt;BR,&lt;BR /&gt;Edwin.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2024 20:26:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Increasing-flash-size/m-p/1976390#M32229</guid>
      <dc:creator>EdwinHz</dc:creator>
      <dc:date>2024-10-17T20:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: Increasing flash size</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Increasing-flash-size/m-p/1977029#M32255</link>
      <description>&lt;P&gt;Hello EdwinHz,&lt;/P&gt;&lt;P&gt;I tried the example code, and changing the flash size it seems to work in the upper part of the FLASH:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="daniJVV_0-1729246260644.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/305505i8A8B02F548CE1D43/image-size/medium?v=v2&amp;amp;px=400" role="button" title="daniJVV_0-1729246260644.png" alt="daniJVV_0-1729246260644.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I changed lookupTable in evkmimxrt1170_flexspi_nor_config.c with the customLUT provided, but it's not working yet.&lt;/P&gt;&lt;P&gt;Maybe it's important to remark that my program is working fine until the mid region of the flash. When the % used of the memory surpases the 50%, it fails.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="daniJVV_1-1729248106521.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/305511iCD259038D911DE19/image-size/medium?v=v2&amp;amp;px=400" role="button" title="daniJVV_1-1729248106521.png" alt="daniJVV_1-1729248106521.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I was thinking about the instructions for managing 4-byte address, but it's not included in customLUT, and the example seems to work without that:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="daniJVV_2-1729248293505.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/305512iB10D5D45052A8D41/image-size/medium?v=v2&amp;amp;px=400" role="button" title="daniJVV_2-1729248293505.png" alt="daniJVV_2-1729248293505.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2024 10:45:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Increasing-flash-size/m-p/1977029#M32255</guid>
      <dc:creator>daniJVV</dc:creator>
      <dc:date>2024-10-18T10:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: Increasing flash size</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Increasing-flash-size/m-p/1978178#M32287</link>
      <description>&lt;P&gt;It's working now.&lt;/P&gt;&lt;P&gt;I had to change the lookupTable at evkmimxrt1170_flexspi_nor_config.c, using the commands given in the new memory datasheet.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2024 10:51:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Increasing-flash-size/m-p/1978178#M32287</guid>
      <dc:creator>daniJVV</dc:creator>
      <dc:date>2024-10-21T10:51:59Z</dc:date>
    </item>
  </channel>
</rss>

