<?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>MQX Software SolutionsのトピックRe: Debug K70 on external RAM with MQX &amp; CW 10.6 GCC</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/Debug-K70-on-external-RAM-with-MQX-amp-CW-10-6-GCC/m-p/485462#M15907</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carlos,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the updated .ld, .tcl, and .mem files. I gave them a try and while the code does execute without giving me the break point warning it still appears to be executing from internal flash.&lt;/P&gt;&lt;P&gt;Here is the base of flash&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;IMG alt="pastedImage_0.png" src="https://community.nxp.com/t5/image/serverpage/image-id/56343i045BD83213D3D870/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_0.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;and here is where it stops at main() in mqx_main.c when starting to debug&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;IMG alt="pastedImage_1.png" src="https://community.nxp.com/t5/image/serverpage/image-id/56388i88BEB0A86A91F777/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_1.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Both of these look like they are still executing from internal flash.&lt;/P&gt;&lt;P&gt;Though my variables appear to be in external DDR.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;IMG alt="pastedImage_2.png" src="https://community.nxp.com/t5/image/serverpage/image-id/56430iBBBD50D7BA33587B/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_2.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking at the memory section of the .ld file you attached I'm thinking things like rom need to be moved to an address that is in DDR.&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14622077214065294" data-renderedposition="911_8_1192_224" jivemacro_uid="_14622077214065294"&gt;&lt;P&gt;MEMORY&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; vectorrom&amp;nbsp; (RX): ORIGIN = 0x00000000, LENGTH = 0x00000400&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cfmprotrom&amp;nbsp; (R): ORIGIN = 0x00000400, LENGTH = 0x00000020&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; rom&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (RX): ORIGIN = 0x00000420, LENGTH = 0x000FFBE0&amp;nbsp; /* Code + Const data */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ram&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (RW): ORIGIN = 0x70000000, LENGTH = 0x08000000&amp;nbsp; /* DDR2 - RW data */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sram&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (RW): ORIGIN = 0x1FFF0000, LENGTH = 0x00020000&amp;nbsp; /* SRAM - RW data */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* kernel space starts after RAM variables (Location of MQX Kernel data + MQX heap) */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end_of_kd&amp;nbsp; (RW): ORIGIN = 0x77FFFFF0, LENGTH = 0x00000000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Boot stack reused by MQX Kernel data */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; bstack&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (RW): ORIGIN = 0x2000FA00, LENGTH = 0x00000200&amp;nbsp; /* Boot stack */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end_bstack&amp;nbsp; (RW): ORIGIN = 0x2000FC00, LENGTH = 0x00000000&amp;nbsp; /* Boot stack end address requires 4B alignment */&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;That is why I changed them to the 0x70000000 range in the .ld file attached in my original post&lt;/P&gt;&lt;P&gt;MEMORY&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_1462207820374412" data-renderedposition="1187_8_1192_208" jivemacro_uid="_1462207820374412"&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; vectorrom&amp;nbsp;&amp;nbsp; (RWX): ORIGIN = 0x70000000, LENGTH = 0x00000400&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cfmprotrom&amp;nbsp; (RWX): ORIGIN = 0x70000400, LENGTH = 0x00000020&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; rom&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (RWX): ORIGIN = 0x70000420, LENGTH = 0x000FFBE0&amp;nbsp; /* Code + Const data */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ram&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (RWX): ORIGIN = 0x70100000, LENGTH = 0x03F00000&amp;nbsp; /* SRAM - RW data */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* kernel space starts after RAM variables (Location of MQX Kernel data + MQX heap) */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end_of_kd&amp;nbsp;&amp;nbsp; (RW): ORIGIN = 0x77FFFFF0, LENGTH = 0x00000000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Boot stack reused by MQX Kernel data */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; bstack&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (RW): ORIGIN = 0x74000000, LENGTH = 0x00000200&amp;nbsp; /* Boot stack */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end_bstack&amp;nbsp; (RW): ORIGIN = 0x74000200, LENGTH = 0x00000000&amp;nbsp; /* Boot stack end address requires 4B alignment */&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;That didn't work, but from what I can gather from other posts I need to somehow tell the compiler/linker I want my code to be placed in external DDR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know what I need to change in the .ld file so I can debug my code and variables from external DDR? I'm using the .tcl &amp;amp; .mem files you attached and am assuming those files are both good for executing from DDR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sean&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Nov 2020 13:26:41 GMT</pubDate>
    <dc:creator>seandema</dc:creator>
    <dc:date>2020-11-02T13:26:41Z</dc:date>
    <item>
      <title>Debug K70 on external RAM with MQX &amp; CW 10.6 GCC</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Debug-K70-on-external-RAM-with-MQX-amp-CW-10-6-GCC/m-p/485460#M15905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I'm attempting to get my code to debug out of external RAM on a K70 system running MQX 4.2 using CodeWarrior 10.6 built using GCC. I've attempted to follow the guide listed here &lt;A _jive_internal="true" data-containerid="2020" data-containertype="14" data-objectid="101433" data-objecttype="102" href="https://community.nxp.com/docs/DOC-101433"&gt;Relocating Code and Data Using the CW GCC Linker File for Kinetis&lt;/A&gt; but still can't get things to run. &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attached are the linker .ld file, the .tcl script and .mem file I've created. I'm not en expert at working these kinds of files so there is a good chance I have something wrong here.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My debug configuration is setup according to the instructions linked to above. However when I start trying to debug I get a warning about not being able to set break points and then it tries to run from some place in internal flash&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="148088_148088.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/121493i646145CFE370FD3C/image-size/large?v=v2&amp;amp;px=999" role="button" title="148088_148088.png" alt="148088_148088.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/54567i413D315BD517D19D/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="148089_148089.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/121494i68E611915A37D0A0/image-size/large?v=v2&amp;amp;px=999" role="button" title="148089_148089.png" alt="148089_148089.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/54568iF5B6EC8326F30604/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I probably just have something setup wrong. Does anyone have any idea what I've done wrong here?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sean&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338722"&gt;ext_ddr.ld.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338722"&gt;init_kinetis_ddr.tcl.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338722"&gt;K70FN1M0_ddr.mem.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2016 21:42:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Debug-K70-on-external-RAM-with-MQX-amp-CW-10-6-GCC/m-p/485460#M15905</guid>
      <dc:creator>seandema</dc:creator>
      <dc:date>2016-04-27T21:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: Debug K70 on external RAM with MQX &amp; CW 10.6 GCC</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Debug-K70-on-external-RAM-with-MQX-amp-CW-10-6-GCC/m-p/485461#M15906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sean,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By looking at the dissasembly image it seems like your code is not running from the ddr, please try using the attached *.tcl, *.mem and *.ld files for your project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if it helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Carlos Mendoza&lt;/P&gt;&lt;P&gt;Technical Support Engineer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 Apr 2016 00:31:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Debug-K70-on-external-RAM-with-MQX-amp-CW-10-6-GCC/m-p/485461#M15906</guid>
      <dc:creator>Carlos_Mendoza</dc:creator>
      <dc:date>2016-04-30T00:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: Debug K70 on external RAM with MQX &amp; CW 10.6 GCC</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Debug-K70-on-external-RAM-with-MQX-amp-CW-10-6-GCC/m-p/485462#M15907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carlos,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the updated .ld, .tcl, and .mem files. I gave them a try and while the code does execute without giving me the break point warning it still appears to be executing from internal flash.&lt;/P&gt;&lt;P&gt;Here is the base of flash&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;IMG alt="pastedImage_0.png" src="https://community.nxp.com/t5/image/serverpage/image-id/56343i045BD83213D3D870/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_0.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;and here is where it stops at main() in mqx_main.c when starting to debug&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;IMG alt="pastedImage_1.png" src="https://community.nxp.com/t5/image/serverpage/image-id/56388i88BEB0A86A91F777/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_1.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Both of these look like they are still executing from internal flash.&lt;/P&gt;&lt;P&gt;Though my variables appear to be in external DDR.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;IMG alt="pastedImage_2.png" src="https://community.nxp.com/t5/image/serverpage/image-id/56430iBBBD50D7BA33587B/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_2.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking at the memory section of the .ld file you attached I'm thinking things like rom need to be moved to an address that is in DDR.&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14622077214065294" data-renderedposition="911_8_1192_224" jivemacro_uid="_14622077214065294"&gt;&lt;P&gt;MEMORY&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; vectorrom&amp;nbsp; (RX): ORIGIN = 0x00000000, LENGTH = 0x00000400&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cfmprotrom&amp;nbsp; (R): ORIGIN = 0x00000400, LENGTH = 0x00000020&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; rom&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (RX): ORIGIN = 0x00000420, LENGTH = 0x000FFBE0&amp;nbsp; /* Code + Const data */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ram&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (RW): ORIGIN = 0x70000000, LENGTH = 0x08000000&amp;nbsp; /* DDR2 - RW data */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sram&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (RW): ORIGIN = 0x1FFF0000, LENGTH = 0x00020000&amp;nbsp; /* SRAM - RW data */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* kernel space starts after RAM variables (Location of MQX Kernel data + MQX heap) */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end_of_kd&amp;nbsp; (RW): ORIGIN = 0x77FFFFF0, LENGTH = 0x00000000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Boot stack reused by MQX Kernel data */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; bstack&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (RW): ORIGIN = 0x2000FA00, LENGTH = 0x00000200&amp;nbsp; /* Boot stack */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end_bstack&amp;nbsp; (RW): ORIGIN = 0x2000FC00, LENGTH = 0x00000000&amp;nbsp; /* Boot stack end address requires 4B alignment */&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;That is why I changed them to the 0x70000000 range in the .ld file attached in my original post&lt;/P&gt;&lt;P&gt;MEMORY&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_1462207820374412" data-renderedposition="1187_8_1192_208" jivemacro_uid="_1462207820374412"&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; vectorrom&amp;nbsp;&amp;nbsp; (RWX): ORIGIN = 0x70000000, LENGTH = 0x00000400&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cfmprotrom&amp;nbsp; (RWX): ORIGIN = 0x70000400, LENGTH = 0x00000020&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; rom&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (RWX): ORIGIN = 0x70000420, LENGTH = 0x000FFBE0&amp;nbsp; /* Code + Const data */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ram&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (RWX): ORIGIN = 0x70100000, LENGTH = 0x03F00000&amp;nbsp; /* SRAM - RW data */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* kernel space starts after RAM variables (Location of MQX Kernel data + MQX heap) */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end_of_kd&amp;nbsp;&amp;nbsp; (RW): ORIGIN = 0x77FFFFF0, LENGTH = 0x00000000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Boot stack reused by MQX Kernel data */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; bstack&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (RW): ORIGIN = 0x74000000, LENGTH = 0x00000200&amp;nbsp; /* Boot stack */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end_bstack&amp;nbsp; (RW): ORIGIN = 0x74000200, LENGTH = 0x00000000&amp;nbsp; /* Boot stack end address requires 4B alignment */&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;That didn't work, but from what I can gather from other posts I need to somehow tell the compiler/linker I want my code to be placed in external DDR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know what I need to change in the .ld file so I can debug my code and variables from external DDR? I'm using the .tcl &amp;amp; .mem files you attached and am assuming those files are both good for executing from DDR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sean&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2020 13:26:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Debug-K70-on-external-RAM-with-MQX-amp-CW-10-6-GCC/m-p/485462#M15907</guid>
      <dc:creator>seandema</dc:creator>
      <dc:date>2020-11-02T13:26:41Z</dc:date>
    </item>
  </channel>
</rss>

