I am using MCUXpresso for VSCode and trying to debug an application on an MIMXRT1060-EVKB board.
Everything works fine until my program size seemingly surpasses the 128 KB size mark.
I have my linker map set to use the whole 512 KB at 0x00000000 as ITCM, so it should fit.
However, I get an error message dialog window that says:
Unable to start debugging. Unexpected GDB output from command "-interpreter-exec console "load"". Load failed
After some digging into the debug console logs, I see this:
[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 =============================
This RT1060_connect.scp script in the LinkServer folder seems to explicitly configure RAM with a 128 KB limit on ITCM.
This part of the script itself looks like this:
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 ===============================
Where can I find information on how to override/customize this FlexRAM setup into matching my linker file contents (or some other config)?
Thanks in advance!