<?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: FLEXRAM configuration in i.MX RT Crossover MCUs</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FLEXRAM-configuration/m-p/1442852#M19126</link>
    <description>&lt;P&gt;MIMXRT1052_Project.axf section `.text' will not fit in region `SRAM_DTC'&lt;BR /&gt;c:/nxp/mcuxpressoide_11.5.0_7232/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.5.0.202107051138/tools/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: region `SRAM_DTC' overflowed by 9607148 bytes&lt;/P&gt;</description>
    <pubDate>Tue, 12 Apr 2022 16:41:21 GMT</pubDate>
    <dc:creator>snahmad</dc:creator>
    <dc:date>2022-04-12T16:41:21Z</dc:date>
    <item>
      <title>FLEXRAM configuration</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FLEXRAM-configuration/m-p/1229873#M12650</link>
      <description>&lt;P&gt;I modified Flexram according to&amp;nbsp;&lt;A href="https://community.nxp.com/t5/i-MX-RT-Knowledge-Base/Reallocating-the-FlexRAM/ta-p/1117649," target="_blank"&gt;https://community.nxp.com/t5/i-MX-RT-Knowledge-Base/Reallocating-the-FlexRAM/ta-p/1117649,&lt;/A&gt;&amp;nbsp;256KB DTCM, 128KB ITCM, 128KB OCRAM. I am using i.MXRT1064.&lt;/P&gt;&lt;P&gt;I have changed under MCU settings&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sandeepa2_0-1613047034434.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/137049iED53F894FA632492/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sandeepa2_0-1613047034434.png" alt="sandeepa2_0-1613047034434.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sandeepa2_1-1613047081579.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/137050i77F07FCF1C14EA85/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sandeepa2_1-1613047081579.png" alt="sandeepa2_1-1613047081579.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* Reallocating the FlexRAM */&lt;BR /&gt;__asm(&lt;BR /&gt;".syntax unified\n"&lt;/P&gt;&lt;P&gt;"LDR R0, =0x400ac044\n" // Address of register IOMUXC_GPR_GPR17&lt;BR /&gt;"LDR R1, =0xaaaaff55\n" // FlexRAM configuration DTC = 265KB, ITC =&lt;BR /&gt;// 128KB, OC = 128KB&lt;BR /&gt;"STR R1,[R0]\n"&lt;/P&gt;&lt;P&gt;"LDR R0,=0x400ac040\n" // Address of register IOMUXC_GPR_GPR16&lt;BR /&gt;"LDR R1,[R0]\n"&lt;BR /&gt;"ORR R1,R1,#4\n" // The 4 corresponds to setting the FLEXRAM_BANK_CFG_SEL&lt;BR /&gt;// bit in register IOMUXC_GPR_GPR16&lt;BR /&gt;"STR R1,[R0]\n"&lt;/P&gt;&lt;P&gt;#ifdef FLEXRAM_ITCM_ZERO_SIZE&lt;BR /&gt;"LDR R0,=0x400ac040\n" // Address of register IOMUXC_GPR_GPR16&lt;BR /&gt;"LDR R1,[R0]\n"&lt;BR /&gt;"AND R1,R1,#0xfffffffe\n" // Disabling SRAM_ITC in register&lt;BR /&gt;// IOMUXC_GPR_GPR16&lt;BR /&gt;"STR R1,[R0]\n"&lt;BR /&gt;#endif&lt;/P&gt;&lt;P&gt;#ifdef FLEXRAM_DTCM_ZERO_SIZE&lt;BR /&gt;"LDR R0,=0x400ac040\n" // Address of register IOMUXC_GPR_GPR16&lt;BR /&gt;"LDR R1,[R0]\n"&lt;BR /&gt;"AND R1,R1,#0xfffffffd\n" // Disabling SRAM_DTC in register&lt;BR /&gt;// IOMUXC_GPR_GPR16&lt;BR /&gt;"STR R1,[R0]\n"&lt;BR /&gt;#endif&lt;/P&gt;&lt;P&gt;"LDR R0, =0x400ac038\n" // Address of register IOMUXC_GPR_GPR14&lt;BR /&gt;"LDR R1, =0x980000\n" // New size configuration for the IOMUXC_GPR_GPR14&lt;BR /&gt;// register&lt;BR /&gt;"STR R1,[R0]\n"&lt;/P&gt;&lt;P&gt;".syntax divided\n");&lt;/P&gt;&lt;P&gt;also in fsl_flexspi_nor_boot.c&lt;/P&gt;&lt;P&gt;const ivt image_vector_table = {&lt;BR /&gt;IVT_HEADER, /* IVT Header */&lt;BR /&gt;(uint32_t)ResetISR, /* Image Entry Function */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when I observe stack usage ita overflowing even before entering main.&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have another question, why do we modify&amp;nbsp; fsl_flexspi_nor_boot.c, I saw map file before and after, reset is at same location&lt;/P&gt;&lt;P&gt;also when I execute code I am seeing cases where variable values are getting overwritten as if stack is overrunning into data section&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sandeepa2_2-1613047362089.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/137051iF675F0FD472F6221/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sandeepa2_2-1613047362089.png" alt="sandeepa2_2-1613047362089.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2021 12:49:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FLEXRAM-configuration/m-p/1229873#M12650</guid>
      <dc:creator>sandeepa2</dc:creator>
      <dc:date>2021-02-11T12:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: FLEXRAM configuration</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FLEXRAM-configuration/m-p/1230574#M12662</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've never seen this behavior before. The code that you are using looks fine. Did you modify the MPU as well? Why is your heap size is set to 0? When you compile your project, how does the memory usage looks? You can see this in the console after you build your application as shown below.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="victorjimenez_0-1613158004508.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/137134i7175F0E95BF62F6A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="victorjimenez_0-1613158004508.png" alt="victorjimenez_0-1613158004508.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Regarding the changes on the&amp;nbsp;&lt;SPAN&gt;fsl_flexspi_nor_boot.c. You are not changing the address of the reset handler, you are just changing the entry address of the application. As I mentioned in the document, there are lots of dangerous areas in reconfiguring the FlexRAM in code. It pretty much all boils down to the fact that any code/data/stack information written to the RAM can end up changing location during the reallocation. This change is to avoid that any problems with these things.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&lt;BR /&gt;Victor&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2021 19:42:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FLEXRAM-configuration/m-p/1230574#M12662</guid>
      <dc:creator>victorjimenez</dc:creator>
      <dc:date>2021-02-12T19:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: FLEXRAM configuration</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FLEXRAM-configuration/m-p/1231477#M12685</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have heap zero as am not planning to use any dynamic allocation.&lt;/P&gt;&lt;P&gt;following is the usage as shown in the console&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sandeepa2_0-1613470610104.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/137251iF800055B10A3974D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sandeepa2_0-1613470610104.png" alt="sandeepa2_0-1613470610104.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regarding MPU, yes I did changes to it too, am not using external SDRAM or flash connected at 0x60000000 so I disabled those sections.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* Disable I cache and D cache */&lt;BR /&gt;if (SCB_CCR_IC_Msk == (SCB_CCR_IC_Msk &amp;amp; SCB-&amp;gt;CCR)) {&lt;BR /&gt;SCB_DisableICache();&lt;BR /&gt;}&lt;BR /&gt;if (SCB_CCR_DC_Msk == (SCB_CCR_DC_Msk &amp;amp; SCB-&amp;gt;CCR)) {&lt;BR /&gt;SCB_DisableDCache();&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;/* Disable MPU */&lt;BR /&gt;ARM_MPU_Disable();&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/*&lt;BR /&gt;* Add default region to deny access to whole address space to workaround&lt;BR /&gt;* speculative prefetch. Refer to Arm errata 1013783-B for more details.&lt;BR /&gt;*&lt;BR /&gt;*/&lt;BR /&gt;/* Region 0 setting: Instruction access disabled, No data access permission.&lt;BR /&gt;*/&lt;BR /&gt;MPU-&amp;gt;RBAR = ARM_MPU_RBAR(0, 0x00000000U);&lt;BR /&gt;MPU-&amp;gt;RASR =&lt;BR /&gt;ARM_MPU_RASR(1, ARM_MPU_AP_NONE, 2, 0, 0, 0, 0, ARM_MPU_REGION_SIZE_4GB);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#if defined(XIP_EXTERNAL_FLASH) &amp;amp;&amp;amp; (XIP_EXTERNAL_FLASH == 1)&lt;BR /&gt;/* Region 3 setting: Memory with Normal type, not shareable, outer/inner write&lt;BR /&gt;* back. */&lt;BR /&gt;MPU-&amp;gt;RBAR = ARM_MPU_RBAR(1, 0x70000000U);&lt;BR /&gt;MPU-&amp;gt;RASR =&lt;BR /&gt;ARM_MPU_RASR(0, ARM_MPU_AP_RO, 0, 0, 1, 1, 0, ARM_MPU_REGION_SIZE_4MB);&lt;BR /&gt;#endif&lt;/P&gt;&lt;P&gt;/* Region 4 setting: Memory with Device type, not shareable, non-cacheable. */&lt;BR /&gt;MPU-&amp;gt;RBAR = ARM_MPU_RBAR(2, 0x00000000U);&lt;BR /&gt;MPU-&amp;gt;RASR =&lt;BR /&gt;ARM_MPU_RASR(0, ARM_MPU_AP_FULL, 2, 0, 0, 0, 0, ARM_MPU_REGION_SIZE_1GB);&lt;/P&gt;&lt;P&gt;// ITCM&lt;BR /&gt;MPU-&amp;gt;RBAR = ARM_MPU_RBAR(3, 0x00000000U);&lt;BR /&gt;MPU-&amp;gt;RASR = ARM_MPU_RASR(0, ARM_MPU_AP_FULL, 0, 0, 1, 1, 0,&lt;BR /&gt;ARM_MPU_REGION_SIZE_128KB);&lt;/P&gt;&lt;P&gt;// DTCM&lt;BR /&gt;MPU-&amp;gt;RBAR = ARM_MPU_RBAR(4, 0x20000000U);&lt;BR /&gt;MPU-&amp;gt;RASR = ARM_MPU_RASR(0, ARM_MPU_AP_FULL, 0, 0, 1, 1, 0,&lt;BR /&gt;ARM_MPU_REGION_SIZE_256KB);&lt;/P&gt;&lt;P&gt;// OC RAM from FLEXRAM Config&lt;BR /&gt;MPU-&amp;gt;RBAR = ARM_MPU_RBAR(5, 0x20200000U);&lt;BR /&gt;MPU-&amp;gt;RASR = ARM_MPU_RASR(0, ARM_MPU_AP_FULL, 0, 0, 1, 1, 0,&lt;BR /&gt;ARM_MPU_REGION_SIZE_128KB);&lt;/P&gt;&lt;P&gt;MPU-&amp;gt;RBAR = ARM_MPU_RBAR(6, 0x20220000U);&lt;BR /&gt;MPU-&amp;gt;RASR = ARM_MPU_RASR(0, ARM_MPU_AP_FULL, 0, 0, 1, 1, 0,&lt;BR /&gt;ARM_MPU_REGION_SIZE_512KB);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MPU-&amp;gt;RBAR = ARM_MPU_RBAR(7, 0x40000000);&lt;BR /&gt;MPU-&amp;gt;RASR =&lt;BR /&gt;ARM_MPU_RASR(0, ARM_MPU_AP_FULL, 2, 0, 0, 0, 0, ARM_MPU_REGION_SIZE_4MB);&lt;/P&gt;&lt;P&gt;MPU-&amp;gt;RBAR = ARM_MPU_RBAR(8, 0x42000000);&lt;BR /&gt;MPU-&amp;gt;RASR =&lt;BR /&gt;ARM_MPU_RASR(0, ARM_MPU_AP_FULL, 2, 0, 0, 0, 0, ARM_MPU_REGION_SIZE_1MB);&lt;/P&gt;&lt;P&gt;/* Enable MPU */&lt;BR /&gt;ARM_MPU_Enable(MPU_CTRL_PRIVDEFENA_Msk);&lt;/P&gt;&lt;P&gt;/* Enable I cache and D cache */&lt;BR /&gt;SCB_EnableDCache();&lt;BR /&gt;SCB_EnableICache();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a question regarding DTCM config in MPU, I have a few buffers which are specific for DMA &amp;amp; core, I am hoping to keep them in DTCM itself. will there be a problem?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 10:27:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FLEXRAM-configuration/m-p/1231477#M12685</guid>
      <dc:creator>sandeepa2</dc:creator>
      <dc:date>2021-02-16T10:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: FLEXRAM configuration</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FLEXRAM-configuration/m-p/1231696#M12689</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was able to replicate the behavior that you mentioned. I'm checking this internally. I'll give you an update as soon as possible.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regarding the placement of the buffers, based on the information that you provided, you shouldn't have problems if you keep the buffers in the DTCM.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Victor&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 18:56:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FLEXRAM-configuration/m-p/1231696#M12689</guid>
      <dc:creator>victorjimenez</dc:creator>
      <dc:date>2021-02-16T18:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: FLEXRAM configuration</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FLEXRAM-configuration/m-p/1234209#M12829</link>
      <description>&lt;P&gt;any updates?&lt;/P&gt;&lt;P&gt;just to be clear, were you able to see the stack overflow error or memory corruption issue?&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 08:20:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FLEXRAM-configuration/m-p/1234209#M12829</guid>
      <dc:creator>sandeepa2</dc:creator>
      <dc:date>2021-02-22T08:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: FLEXRAM configuration</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FLEXRAM-configuration/m-p/1234606#M12847</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your patience with this case. Yes, I was able to replicate the behavior that you mentioned. I investigated this internally and found out what was causing it. As I mentioned in the community document, t&lt;SPAN&gt;here are lots of dangerous areas in reconfiguring the FlexRAM in code. It pretty much all boils down to the fact that any code/data/stack information written to the RAM can end up changing location during the reallocation. You've happened upon the other danger with pointing the stack into RAM locations that are moving. To overcome this you'll need to place the stack at the start of the DTCM memory and change the size. I will add this information to the community document.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="victorjimenez_0-1614035109338.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/137733iE62BC04E45E7803F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="victorjimenez_0-1614035109338.png" alt="victorjimenez_0-1614035109338.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Victor&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 23:05:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FLEXRAM-configuration/m-p/1234606#M12847</guid>
      <dc:creator>victorjimenez</dc:creator>
      <dc:date>2021-02-22T23:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: FLEXRAM configuration</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FLEXRAM-configuration/m-p/1234731#M12854</link>
      <description>&lt;P&gt;I have made changes according to your suggestion, I think it is still a problem.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sandeepa2_0-1614056640213.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/137747i811068EDB3CB9359/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sandeepa2_0-1614056640213.png" alt="sandeepa2_0-1614056640213.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sandeepa2_1-1614056669730.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/137748i1DDBC897E22E47B3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sandeepa2_1-1614056669730.png" alt="sandeepa2_1-1614056669730.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sandeepa2_2-1614056731020.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/137749i8AB18D9E386F344A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sandeepa2_2-1614056731020.png" alt="sandeepa2_2-1614056731020.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2021 05:05:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FLEXRAM-configuration/m-p/1234731#M12854</guid>
      <dc:creator>sandeepa2</dc:creator>
      <dc:date>2021-02-23T05:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: FLEXRAM configuration</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FLEXRAM-configuration/m-p/1235862#M12883</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the linker file, you will need to modify the stack as shown below.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="victorjimenez_0-1614182289156.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/137985i61850C032E36727B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="victorjimenez_0-1614182289156.png" alt="victorjimenez_0-1614182289156.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Once you do this, you shouldn't have any problems.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="victorjimenez_1-1614182318568.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/137986i4717F6EEE05B7E2B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="victorjimenez_1-1614182318568.png" alt="victorjimenez_1-1614182318568.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;As mentioned in the community document, all these changes are needed because you are reallocating the FlexRAM through software. When you reallocate it using the fuses, these changes in the linker file and the stack won't be needed.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&amp;nbsp;&lt;BR /&gt;Victor&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2021 16:00:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FLEXRAM-configuration/m-p/1235862#M12883</guid>
      <dc:creator>victorjimenez</dc:creator>
      <dc:date>2021-02-24T16:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: FLEXRAM configuration</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FLEXRAM-configuration/m-p/1235881#M12884</link>
      <description>&lt;P&gt;Sorry if I am missing the point, wont the linker file get automatically generated if we select "manage linker file" checkbox in project settings?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sandeepa2_0-1614184273407.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/137989iB0E72A938B1F0DF1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sandeepa2_0-1614184273407.png" alt="sandeepa2_0-1614184273407.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;anycase, when I opened like file stack setting is showing exactly like how it is depicted by you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* Reserve and place Stack within memory map */&lt;BR /&gt;_StackSize = 0x2000;&lt;BR /&gt;.stack : ALIGN(4)&lt;BR /&gt;{&lt;BR /&gt;_vStackBase = .;&lt;BR /&gt;. += _StackSize;&lt;BR /&gt;. = ALIGN(4);&lt;BR /&gt;_vStackTop = .;&lt;BR /&gt;} &amp;gt; SRAM_DTC&lt;BR /&gt;/* DATA section for SRAM_ITC */&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2021 16:33:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FLEXRAM-configuration/m-p/1235881#M12884</guid>
      <dc:creator>sandeepa2</dc:creator>
      <dc:date>2021-02-24T16:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: FLEXRAM configuration</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FLEXRAM-configuration/m-p/1235917#M12886</link>
      <description>&lt;P&gt;i can see the same settings are working for you, so I used an example project, made same changes, and tried, but unsuccessful.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2021 17:07:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FLEXRAM-configuration/m-p/1235917#M12886</guid>
      <dc:creator>sandeepa2</dc:creator>
      <dc:date>2021-02-24T17:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: FLEXRAM configuration</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FLEXRAM-configuration/m-p/1236903#M12910</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for providing the example code. I apologize, I forgot to mention that you need to place the stack at the beginning of the DTC. To do this you need to add the following code right before you start reallocating the FlexRAM.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="victorjimenez_0-1614297909946.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/138180iF5AA528724EAC0F2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="victorjimenez_0-1614297909946.png" alt="victorjimenez_0-1614297909946.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Victor&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2021 00:05:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FLEXRAM-configuration/m-p/1236903#M12910</guid>
      <dc:creator>victorjimenez</dc:creator>
      <dc:date>2021-02-26T00:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: FLEXRAM configuration</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FLEXRAM-configuration/m-p/1442852#M19126</link>
      <description>&lt;P&gt;MIMXRT1052_Project.axf section `.text' will not fit in region `SRAM_DTC'&lt;BR /&gt;c:/nxp/mcuxpressoide_11.5.0_7232/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.5.0.202107051138/tools/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: region `SRAM_DTC' overflowed by 9607148 bytes&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2022 16:41:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FLEXRAM-configuration/m-p/1442852#M19126</guid>
      <dc:creator>snahmad</dc:creator>
      <dc:date>2022-04-12T16:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: FLEXRAM configuration</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FLEXRAM-configuration/m-p/1442853#M19127</link>
      <description>&lt;P&gt;Can some one upload any freeRTOS NXP project which uses External RAM.&lt;/P&gt;&lt;P&gt;I did try to follow this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://MIMXRT1052_Project.axf%20section `.text' will not fit in region `SRAM_DTC' c:/nxp/mcuxpressoide_11.5.0_7232/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.5.0.202107051138/tools/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: region `SRAM_DTC' overflowed by 9607148 bytes" target="_self"&gt;MIMXRT1052_Project.axf section `.text' will not fit in region `SRAM_DTC'&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://MIMXRT1052_Project.axf%20section `.text' will not fit in region `SRAM_DTC' c:/nxp/mcuxpressoide_11.5.0_7232/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.5.0.202107051138/tools/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: region `SRAM_DTC' overflowed by 9607148 bytes" target="_self"&gt;c:/nxp/mcuxpressoide_11.5.0_7232/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.5.0.202107051138/tools/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: region `SRAM_DTC' overflowed by 9607148 bytes&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;no luck.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2022 16:42:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FLEXRAM-configuration/m-p/1442853#M19127</guid>
      <dc:creator>snahmad</dc:creator>
      <dc:date>2022-04-12T16:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: FLEXRAM configuration</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FLEXRAM-configuration/m-p/1608757#M23985</link>
      <description>&lt;P&gt;Hello Victor,&lt;BR /&gt;Can you explain how you came up with&amp;nbsp;0x20001FFF as the value for the stack pointer location? I tried to match the linker settings in your community write up, and the stack got located at 0x20001000. The default code in ResetISR already contains code for initializing the SP:&lt;/P&gt;&lt;P&gt;__asm volatile ("MSR MSP, %0" : : "r" (&amp;amp;_vStackTop) : );&lt;BR /&gt;&lt;BR /&gt;The line above would set SP to&amp;nbsp;0x20001000 rather than&amp;nbsp;0x20001FFF. Why should the SP be set differently when FlexRAM is configured dynamically (rather than from fuses)?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2023 22:54:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/FLEXRAM-configuration/m-p/1608757#M23985</guid>
      <dc:creator>alan-p</dc:creator>
      <dc:date>2023-03-02T22:54:31Z</dc:date>
    </item>
  </channel>
</rss>

