MIMXRT1040-EVK Download code to SDRAM

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MIMXRT1040-EVK Download code to SDRAM

Jump to solution
599 Views
tbonkers
Contributor II

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:

tbonkers_0-1701273420238.png

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?

 

0 Kudos
1 Solution
560 Views
Gavin_Jia
NXP TechSupport
NXP TechSupport

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;

Gavin_Jia_0-1701769130439.png

 

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

View solution in original post

0 Kudos
2 Replies
561 Views
Gavin_Jia
NXP TechSupport
NXP TechSupport

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;

Gavin_Jia_0-1701769130439.png

 

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

0 Kudos
580 Views
tbonkers
Contributor II

Update: Plain load image to BOARD_SDRAM results in the same error as in the previous post.

0 Kudos