STR9 using External SRAM

I am using STR912 and I have a external SRAM with 512KBytes. Now I can read/write the external SRAM , but I cannot run my FreeRTOS kernel using external SRAM. I modified the lnkarm_flash.xcl , but it cannot work : // Data memory -DRAMSTART=0x4000000 -DRAMEND=0x4018000 -DEXT_RAMSTART=0x38000000 -DEXT_RAMEND=0x38018000 //************************************************ // Data segments. //************************************************ -Z(DATA)DATA_I=RAMSTART-RAMEND -Z(DATA)DATA_Z,DATA_N=EXT_RAMSTART-EXT_RAMEND I’m using IAR to develop my project , and using EMI bank 1 for SRAM. Are there any other file need to modify ?

STR9 using External SRAM

Sorry I have never tried using external RAM on the STR9.  I would have thought that setting up the memory controller interface and adjusting the linker script would be all that was required.  Are you still putting the stacks in the internal RAM? Regards.

STR9 using External SRAM

Yes, I still put stacks in internal RAM . I only add EMI initial code in 91x_init.s  ( before jump to main ) , and modify the linker script file .