This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

set heap and stack memories

Note: This was originally posted on 8th March 2012 at http://forums.arm.com

Hello
I'm working on a software project based on an AT91SAM9XE256 ARM9 (similar to 9260)
I want to set all variables and stack in the internal RAM, and 1Mb of heap for malloc() in an external SDRAM at 0x20000000.
I'm using the Keil development suite.

After many attempts and searches, I could'nt manage to get the correct mapping.
Either all the memory is mapped to SDRAM, or I get link errors (heap mapped to iRAM, to big to fit).

How can I set up my target options to get that ?
Or do I have to write my own scatter file ? and what do I have to add to it to define stack and heap properly, keeping all variables in internal RAM ?

Thank you for any help or useful link.

Denis
0