MIMXRT1040-EVK Download code to SDRAM

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

MIMXRT1040-EVK Download code to SDRAM

跳至解决方案
834 次查看
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 项奖励
回复
1 解答
795 次查看
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 项奖励
回复
2 回复数
796 次查看
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 项奖励
回复
815 次查看
tbonkers
Contributor II

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

0 项奖励
回复