# STR9 using External SRAM

**URL:** <https://forums.freertos.org/t/str9-using-external-sram/3908>\
**Category:** Kernel\
**Created:** [October 2, 2007, 6:43am UTC](https://forums.freertos.org/t/str9-using-external-sram/3908 "2007-10-02T06:43:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [October 2, 2007, 6:43am UTC](https://forums.freertos.org/t/str9-using-external-sram/3908/1 "2007-10-02T06:43:19Z")

</div>

**[yuhleon](https://sourceforge.net/u/yuhleon/)** wrote on [Tuesday, October 02, 2007](https://sourceforge.net/p/freertos/discussion/382005/thread/ac8b83cc/#10a3):

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 ?

---

<div class="post-metadata">

**Author:** ![rtel](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/rtel/32/31_2.png) [@rtel](https://forums.freertos.org/u/rtel)\
**Post date:** [October 2, 2007, 9:59am UTC](https://forums.freertos.org/t/str9-using-external-sram/3908/2 "2007-10-02T09:59:01Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Tuesday, October 02, 2007](https://sourceforge.net/p/freertos/discussion/382005/thread/ac8b83cc/#10a3/d8ff):

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

Regards.

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [October 2, 2007, 10:57am UTC](https://forums.freertos.org/t/str9-using-external-sram/3908/3 "2007-10-02T10:57:41Z")

</div>

**[yuhleon](https://sourceforge.net/u/yuhleon/)** wrote on [Tuesday, October 02, 2007](https://sourceforge.net/p/freertos/discussion/382005/thread/ac8b83cc/#10a3/2432):

Yes, I still put stacks in internal RAM .

I only add EMI initial code in 91x\_init.s&nbsp; ( before jump to main ) ,  
and modify the linker script file .
