<?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 Debugging programs larger than 128 KB on the MIMXRT1060-EVKB with LinkServer/CMSIS-DAP in MCUXpresso General</title>
    <link>https://community.nxp.com/t5/MCUXpresso-General/Debugging-programs-larger-than-128-KB-on-the-MIMXRT1060-EVKB/m-p/1846022#M5376</link>
    <description>&lt;P&gt;I am using MCUXpresso for VSCode and trying to debug an application on an MIMXRT1060-EVKB board.&lt;/P&gt;&lt;P&gt;Everything works fine until my program size seemingly surpasses the 128 KB size mark.&lt;/P&gt;&lt;P&gt;I have my linker map set to use the whole 512 KB at 0x00000000 as ITCM, so it should fit.&lt;/P&gt;&lt;P&gt;However, I get an error message dialog window that says:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;Unable to start debugging. Unexpected GDB output from command "-interpreter-exec console "load"". Load failed&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;After some digging into the debug console logs, I see this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[Warning] 1: (6334) STDERR: Wc: ============= SCRIPT: RT1060_connect.scp =============
[Warning] 1: (6334) STDERR: Wc: RT1060 Connect Script
[Warning] 1: (6334) STDERR: Wc: DpID = 0BD11477
[Warning] 1: (6334) STDERR: Wc: APID = 0x04770041
[Warning] 1: (6334) STDERR: Wc: Disabling MPU
[Warning] 1: (6334) STDERR: Wc: Configure FlexRAM for 768KB OC RAM, 128KB I-TCM, 128KB D-TCM
[Warning] 1: (6334) STDERR: Wc: Finished
[Warning] 1: (6334) STDERR: Wc: ============= END SCRIPT =============================&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This RT1060_connect.scp script in the LinkServer folder seems to explicitly configure RAM with a 128 KB limit on ITCM.&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;This part of the script itself looks like this:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;360 REM ====== Configure FlexRAM ======
370 print "Configure FlexRAM for 768KB OC RAM, 128KB I-TCM, 128KB D-TCM"
380 REM TCM CTRL Poke 0x400B0000 - to force RAM clocking and set wait states = b100
390 Poke32 this 0x400B0000 0x4
400 REM IOMUXC_GPR17 0x400AC044 - this sets bitfield allocation of FlexRAM 32KB banks to OC 256KB b01, I 128KB b11, D 128KB b10
410 Poke32 this 0x400AC044 0x5555FFAA
420 REM IOMUXC_GPR16 0x400AC040 - this sets enables for I and DTCM and the source of the TCM config = 0x200007
430 Poke32 this 0x400AC040 0x200007
440 print "Finished"
450 REM ===============================&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;Where can I find information on how to override/customize this FlexRAM setup into matching my linker file contents (or some other config)?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;Thanks in advance!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 15 Apr 2024 09:19:07 GMT</pubDate>
    <dc:creator>vascofsantos</dc:creator>
    <dc:date>2024-04-15T09:19:07Z</dc:date>
    <item>
      <title>Debugging programs larger than 128 KB on the MIMXRT1060-EVKB with LinkServer/CMSIS-DAP</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Debugging-programs-larger-than-128-KB-on-the-MIMXRT1060-EVKB/m-p/1846022#M5376</link>
      <description>&lt;P&gt;I am using MCUXpresso for VSCode and trying to debug an application on an MIMXRT1060-EVKB board.&lt;/P&gt;&lt;P&gt;Everything works fine until my program size seemingly surpasses the 128 KB size mark.&lt;/P&gt;&lt;P&gt;I have my linker map set to use the whole 512 KB at 0x00000000 as ITCM, so it should fit.&lt;/P&gt;&lt;P&gt;However, I get an error message dialog window that says:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;Unable to start debugging. Unexpected GDB output from command "-interpreter-exec console "load"". Load failed&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;After some digging into the debug console logs, I see this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[Warning] 1: (6334) STDERR: Wc: ============= SCRIPT: RT1060_connect.scp =============
[Warning] 1: (6334) STDERR: Wc: RT1060 Connect Script
[Warning] 1: (6334) STDERR: Wc: DpID = 0BD11477
[Warning] 1: (6334) STDERR: Wc: APID = 0x04770041
[Warning] 1: (6334) STDERR: Wc: Disabling MPU
[Warning] 1: (6334) STDERR: Wc: Configure FlexRAM for 768KB OC RAM, 128KB I-TCM, 128KB D-TCM
[Warning] 1: (6334) STDERR: Wc: Finished
[Warning] 1: (6334) STDERR: Wc: ============= END SCRIPT =============================&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This RT1060_connect.scp script in the LinkServer folder seems to explicitly configure RAM with a 128 KB limit on ITCM.&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;This part of the script itself looks like this:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;360 REM ====== Configure FlexRAM ======
370 print "Configure FlexRAM for 768KB OC RAM, 128KB I-TCM, 128KB D-TCM"
380 REM TCM CTRL Poke 0x400B0000 - to force RAM clocking and set wait states = b100
390 Poke32 this 0x400B0000 0x4
400 REM IOMUXC_GPR17 0x400AC044 - this sets bitfield allocation of FlexRAM 32KB banks to OC 256KB b01, I 128KB b11, D 128KB b10
410 Poke32 this 0x400AC044 0x5555FFAA
420 REM IOMUXC_GPR16 0x400AC040 - this sets enables for I and DTCM and the source of the TCM config = 0x200007
430 Poke32 this 0x400AC040 0x200007
440 print "Finished"
450 REM ===============================&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;Where can I find information on how to override/customize this FlexRAM setup into matching my linker file contents (or some other config)?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;Thanks in advance!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 15 Apr 2024 09:19:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Debugging-programs-larger-than-128-KB-on-the-MIMXRT1060-EVKB/m-p/1846022#M5376</guid>
      <dc:creator>vascofsantos</dc:creator>
      <dc:date>2024-04-15T09:19:07Z</dc:date>
    </item>
    <item>
      <title>回复： Debugging programs larger than 128 KB on the MIMXRT1060-EVKB with LinkServer/CMSIS-DAP</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Debugging-programs-larger-than-128-KB-on-the-MIMXRT1060-EVKB/m-p/1847830#M5379</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/232142"&gt;@vascofsantos&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thanks for your interest in NXP MIMXRT series!&lt;/P&gt;
&lt;P&gt;There is a detailed guidance document on this subject which is based on the MCUXpresso IDE. The VScode based operation is currently untried. Please check this article:&amp;nbsp;&lt;A href="https://community.nxp.com/t5/i-MX-RT-Knowledge-Base/Reallocating-the-FlexRAM/ta-p/1117649" target="_blank"&gt;Reallocating the FlexRAM - NXP Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Also this error should be reported because the connection script has not made the corresponding changes, the idea on my side is to change the register values in it:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;IOMUXC_GPR17 &lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;SPAN&gt;Here's a new connection script based on the RT1050 that modifies the original 128-128-256 ITCM/DTCM/OCRAM to 128-256-128 ITCM/DTCM/OCRAM&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;It looks to me like it simply modifies the value of IOMUXC_GPR17 to 0x5AAFFAA5. So you could try something along those lines.&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;100 REM===============================
110 REM RT1050_connect.scp
120 REM
130 REM Copyright 2019 NXP
140 REM All rights reserved.
150 REM===============================
160 print "RT1050 ConnectScript"
170 REM probelist
180 p% = probefirstfound
190 rem probeopenbyindex p%
200 wireswdconnect p%
210 selectprobecore p% 0
220 cminitapdp this
230 cmhalt this
235 goto 320
240 rem trap in bootrom
250 cmwatchset this 0 0x400F8004 RW
260 cmresetvectorcatchclear this
270 print "Resetting andtrapping"
280 cmsysresetreq this
290 print "Back from reset"
300 cmresetvectorcatchset this
310 cmwatchclear this 0
320 print "Disabling MPU"
330 s% = Peek32 this 0xE000ED94
340 s% = s% &amp;amp; 0xFFFFFFFE
350 Poke32 this 0xE000ED94 s%
360 REM ====== Configure FlexRAM======
370 print "Configure FlexRAM for128KB OC RAM, 128KB I-TCM, 256KB D-TCM"
380 REM TCM CTRL Poke 0x400B0000 - toforce RAM clocking and set wait states = b100
390 Poke32 this 0x400B0000 0x4
400 REM IOMUXC_GPR17 0x400AC044 - thissets bitfield allocation of FlexRAM 32KB banks to OC 256KB b01, I 128KB b11, D128KB b10
410 Poke32 this 0x400AC044 0x5AAFFAA5
420 REM IOMUXC_GPR16 0x400AC040 - thissets enables for I and DTCM and the source of the TCM config = 0x200007
430 Poke32 this 0x400AC040 0x200007
440 print "Finished"
450 REM===============================
460 end&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Gavin&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2024 07:42:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Debugging-programs-larger-than-128-KB-on-the-MIMXRT1060-EVKB/m-p/1847830#M5379</guid>
      <dc:creator>Gavin_Jia</dc:creator>
      <dc:date>2024-04-16T07:42:18Z</dc:date>
    </item>
    <item>
      <title>回复： Debugging programs larger than 128 KB on the MIMXRT1060-EVKB with LinkServer/CMSIS-DAP</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Debugging-programs-larger-than-128-KB-on-the-MIMXRT1060-EVKB/m-p/1848189#M5381</link>
      <description>&lt;P&gt;I confirm that this method works in VSCode.&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/203261"&gt;@Gavin_Jia&lt;/a&gt;!&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2024 14:04:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Debugging-programs-larger-than-128-KB-on-the-MIMXRT1060-EVKB/m-p/1848189#M5381</guid>
      <dc:creator>vascofsantos</dc:creator>
      <dc:date>2024-04-16T14:04:20Z</dc:date>
    </item>
  </channel>
</rss>

