I've been trying to run the evkmimxrt1040_lvgl_demo_benchmark example from RAM. I set Project Properties->C/C++ Build/Settings/Managed Linker Script "Link application to RAM" option, delete the Flash memory from the Memory tab, and move SDRAM to position 1. Project builds OK:
Memory region Used Size Region Size %age Used
BOARD_SDRAM: 1032764 B 30 MB 3.28%
SRAM_OC: 0 GB 256 KB 0.00%
NCACHE_REGION: 32 B 2 MB 0.00%
SRAM_DTC: 0 GB 128 KB 0.00%
SRAM_ITC: 0 GB 128 KB 0.00%
Attempting to debug with JLink fails:
I am attaching the JLink GDB server log.
My aim is to be able to download and debug directly from RAM. Is there something I am missing?
Solved! Go to Solution.
Hi @tbonkers ,
Hope you are doing well!
There are three steps that are necessary:
1. Set "Link application to RAM" option;
2. move SDRAM to position 1;
3. Replace the connection script;
Please consult this link to modify your script: https://community.nxp.com/t5/Blog/Overview-of-using-the-MIMXRT1050-EVK-B-with-MCUXpresso-IDE/ba-p/11...
The reference is RT1050_SDRAM_Init.scp.zip
Best regards,
Gavin
Hi @tbonkers ,
Hope you are doing well!
There are three steps that are necessary:
1. Set "Link application to RAM" option;
2. move SDRAM to position 1;
3. Replace the connection script;
Please consult this link to modify your script: https://community.nxp.com/t5/Blog/Overview-of-using-the-MIMXRT1050-EVK-B-with-MCUXpresso-IDE/ba-p/11...
The reference is RT1050_SDRAM_Init.scp.zip
Best regards,
Gavin
Update: Plain load image to BOARD_SDRAM results in the same error as in the previous post.