[MIMXRT685-AUD-EVK] How to change the size of IRAM and DRAM

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

[MIMXRT685-AUD-EVK] How to change the size of IRAM and DRAM

795 Views
gnani
Contributor I

Hello NXP members,

I'm trying to debug MIMXRT685-AUD-EVK board.

SDK I use is dsp_xaf_record_hifi4 of dsp examples in SDK_2_11_1_MIMXRT685-AUD-EVK.

I added customized voip library(about 920KB) to .\devices\MIMXRT685S\xtensa\gdbio\ folder

and some codes to xa-capturer-dmic.c's xa_hw_capturer_read_FIFO().

Debug and run on Xtensa Xplorer IDE, I can see error message on xt-ocd daemon window like below.

Error: Exception!
Error: Exception details: exccause:0xd, excvaddr:0x428a0038, epc:0x1cfe04, epcdbg:2402063c
Error: Op 'xtensa_read_memory' failed, will not retry
ERROR: Command 'm428a0038,4' failed!

 

So I am debugging "Changing the Memory Map" refer to Xtensa Linker Support Packages(LSPs) Reference Manual (lsp_rm.pdf) document.

I want to expand dram/iram size using "xt-genldscripts" (Please refer to attached memmap.xmm file)

 

<Debugging step>

Below is an image when ldscripts are created normally.

111.PNG

Test 1

Modify dram size from 0x10000 to 0x20000 in memmap.xmm file.

Below is an error image

222.PNG

Test 2

Modify iram size from 0x10000 to 0x20000 in memmap.xmm file.

Below is an error image

333.PNG

 

<Question>

Is it possible to change the size of iram and dram?

If possible, please let me know how to change the size of IRAM and DRAM.

 

<Development Enviroment>

PC: window 10

EVK: MIMXRT685-AUD-EVK

SDK: dsp_xaf_record_hifi4 (SDK_2_11_1_MIMXRT685-AUD-EVK)

MCUXpresso v11.5.1

Xtensa OCD Daemon v14.08

Xtensa Xplorer v9.0.18

 

Thanks,

Best Regards

Gnani

0 Kudos
Reply
1 Reply

744 Views
jingpan
NXP TechSupport
NXP TechSupport

Hi @gnani ,

I suggest you don't change dram0 and iram0 size because they follows the RT600 memory structure. Please refer to table8 in reference manual. IRAM0 has been assigned to the 64k instruction TCM and DRAM0 has been assigned to the 64k data TCM. TCM size and space can't change. So, modify link file is meaningless.?

Please refer to RT600's Getting Started with Xplorer for EVK-MIMXRT685.pdf(you can see it in SDK). The link file is elf32xtensa.x in /ldscripts. You can refer to 6.1.2 for the usage of SRAM space and 6.5.2 for how to assign code into different segment. I think if you want to enlarge memory space, you can change in this .x file directly.

 

Regards,

Jing

0 Kudos
Reply