Arm Community
Site
Search
User
Site
Search
User
Support forums
Arm Development Studio forum
set heap and stack memories
Locked
Locked
Replies
3 replies
Subscribers
119 subscribers
Views
3809 views
Users
0 members are here
Options
Share
More actions
Related
How was your experience today?
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
Denis Jeanroy
over 12 years ago
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
Quote