<?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: RT1170 debugging when application is built for SDRAM in i.MX RT Crossover MCUs</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1170-debugging-when-application-is-built-for-SDRAM/m-p/2266584#M35912</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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Following the provided steps and flashing a hello world with modifications mentioned in RT1170_BriefOverview_v210.pdf, I am able to use SDRAM with debugging mode.&lt;/P&gt;&lt;P&gt;But after this changes, SDRAM is used storing code, too.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my application, I want code to be stored in flash memory and BOARD_SDRAM to be used for Heap and Stack sections, only.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will flash my application into flash memory and that app will use BOARD_SDRAM for Heap and Stack sections.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please guide me with changes required for doing so.&lt;/P&gt;</description>
    <pubDate>Fri, 19 Dec 2025 07:15:49 GMT</pubDate>
    <dc:creator>sibrain-himanshu</dc:creator>
    <dc:date>2025-12-19T07:15:49Z</dc:date>
    <item>
      <title>RT1170 debugging when application is built for SDRAM</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1170-debugging-when-application-is-built-for-SDRAM/m-p/1373296#M17190</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am developing an application for the RT1170 using MCUXpresso and it's SDK.&lt;/P&gt;&lt;P&gt;The sample projects provided all seem to have been built to use 'DTC' RAM. As with a number of other users my application is too large to fit there so I am trying to use the 'external SDRAM'.&lt;/P&gt;&lt;P&gt;Having tried the solutions proposed in a number of other forum posts (most notably&amp;nbsp;&lt;A href="https://community.nxp.com/t5/i-MX-RT/MCUXpresso-and-RT1050-download-and-debug-in-SDRAM/m-p/896979" target="_self"&gt;https://community.nxp.com/t5/i-MX-RT/MCUXpresso-and-RT1050-download-and-debug-in-SDRAM/m-p/896979)&lt;/A&gt; &lt;STRIKE&gt;I can now execute my program and, if the application is flashed, I can debug the program&lt;/STRIKE&gt;.&lt;/P&gt;&lt;P&gt;&lt;STRIKE&gt;However&lt;/STRIKE&gt; if I build and execute with 'Link application to RAM' then, once a break point is hit the application usually get stuck there.&lt;/P&gt;&lt;P&gt;My presumption is that this is due to my not having initialised the SDRAM correctly. The aforementioned post uses at 'RT1050_SDRAM_Init.scp as a connect script for the debugger to init SDRAM controller'. If I use this file then not surprisingly it fails.&lt;/P&gt;&lt;P&gt;I have no idea how to adapt this script to work on an RT1170. Has anyone done this, or can give advice on how to generate it?&lt;/P&gt;&lt;P&gt;Thank you for any help you can provide.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Nov 2021 15:14:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1170-debugging-when-application-is-built-for-SDRAM/m-p/1373296#M17190</guid>
      <dc:creator>robert_s</dc:creator>
      <dc:date>2021-11-18T15:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: RT1170 debugging when application is built for SDRAM</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1170-debugging-when-application-is-built-for-SDRAM/m-p/1374145#M17210</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/97236"&gt;@robert_s&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;This script is fit for RT1050/60, but not for RT1170/60. You can use attached script. Besides the script file, there is other steps you should do.&lt;/P&gt;
&lt;P style="font-weight: 400;"&gt;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Move the BOARD_SDRAM above SRAM_DTC_m7 in Memory details in C/C++ Build &amp;gt; MCU settings of properties.&lt;/P&gt;
&lt;OL start="2"&gt;
&lt;LI style="font-weight: 400;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Use RT1170_connect_M7_wake_M4_SDRAM_init.scp for Connect script.&lt;/LI&gt;
&lt;LI style="font-weight: 400;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Add --cachelib libm7_cache.so to Additional options.&lt;/LI&gt;
&lt;LI style="font-weight: 400;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;If use USB/Ethernet/SDHC, please&lt;/SPAN&gt;&amp;nbsp;put DMA buffer into noncacheable area.&lt;/LI&gt;
&lt;LI style="font-weight: 400;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Add USE_SDRAM into MCU C Compiler &amp;gt; Preprocessor.&lt;/LI&gt;
&lt;LI style="font-weight: 400;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Select link to ram in properties-&amp;gt;settings-&amp;gt;Managed Linker Script&lt;/LI&gt;
&lt;LI style="font-weight: 400;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Add DATA_SECTION_IS_CACHEABLE=1 into MCU C Compiler &amp;gt; Preprocessor if the project is associated with a USB.&lt;/LI&gt;
&lt;LI style="font-weight: 400;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Put the heap in DTCM or a non-cacheable area if the project is associated with a USB host without freertos (bm)&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Jing&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>Fri, 19 Nov 2021 08:03:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1170-debugging-when-application-is-built-for-SDRAM/m-p/1374145#M17210</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2021-11-19T08:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: RT1170 debugging when application is built for SDRAM</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1170-debugging-when-application-is-built-for-SDRAM/m-p/1375106#M17243</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;I just needed to add the .scp file and it worked.&lt;/P&gt;&lt;P&gt;I already had steps 5, 6 and 8, but I will give the others a go.&lt;/P&gt;&lt;P&gt;In case it is of help I had also made the following change in board.c, I think is equivalent to the one described in &amp;lt;&lt;A href="https://community.nxp.com/" target="_blank"&gt;https://community.nxp.com/t5/i-MX-RT/MCUXpresso-and-RT1050-download-and-debug-in-SDRAM/m-p/896979&amp;gt;&lt;/A&gt; - with RT1170_SDRAM_NOT_CACHED defined:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;#ifdef USE_SDRAM&lt;BR /&gt;#ifndef RT1170_SDRAM_NOT_CACHED&lt;BR /&gt;/* Region 9 setting: Memory with Normal type, not shareable, outer/inner write back */&lt;BR /&gt;MPU-&amp;gt;RBAR = ARM_MPU_RBAR(9, 0x80000000U);&lt;BR /&gt;MPU-&amp;gt;RASR = ARM_MPU_RASR(0, ARM_MPU_AP_FULL, 0, 0, 1, 1, 0, ARM_MPU_REGION_SIZE_64MB);&lt;BR /&gt;#else&lt;BR /&gt;MPU-&amp;gt;RBAR = ARM_MPU_RBAR(9, 0x80000000U);&lt;BR /&gt;MPU-&amp;gt;RASR = ARM_MPU_RASR(0, ARM_MPU_AP_FULL, 1, 0, 0, 0, 0, ARM_MPU_REGION_SIZE_64MB);&lt;BR /&gt;#endif /* RT1170_SDRAM_NOT_CACHED */&lt;BR /&gt;#endif&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Nov 2021 15:43:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1170-debugging-when-application-is-built-for-SDRAM/m-p/1375106#M17243</guid>
      <dc:creator>robert_s</dc:creator>
      <dc:date>2021-11-22T15:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: RT1170 debugging when application is built for SDRAM</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1170-debugging-when-application-is-built-for-SDRAM/m-p/2266584#M35912</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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Following the provided steps and flashing a hello world with modifications mentioned in RT1170_BriefOverview_v210.pdf, I am able to use SDRAM with debugging mode.&lt;/P&gt;&lt;P&gt;But after this changes, SDRAM is used storing code, too.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my application, I want code to be stored in flash memory and BOARD_SDRAM to be used for Heap and Stack sections, only.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will flash my application into flash memory and that app will use BOARD_SDRAM for Heap and Stack sections.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please guide me with changes required for doing so.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Dec 2025 07:15:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1170-debugging-when-application-is-built-for-SDRAM/m-p/2266584#M35912</guid>
      <dc:creator>sibrain-himanshu</dc:creator>
      <dc:date>2025-12-19T07:15:49Z</dc:date>
    </item>
  </channel>
</rss>

