Arm Community
Site
Search
User
Site
Search
User
Support forums
Arm Development Studio forum
set heap and stack memories
Jump...
Cancel
Locked
Locked
Replies
3 replies
Subscribers
119 subscribers
Views
3904 views
Users
0 members are here
Options
Share
More actions
Cancel
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
Joseph Yiu
over 12 years ago
Note: This was originally posted on 9th March 2012 at
http://forums.arm.com
Hi Denis,
Yes, you need to create your scatter file.
Please see the following links:
http://infocenter.arm.com/help/topic/com.arm.doc.dui0474c/BABDDHBF.html
http://infocenter.arm.com/help/topic/com.arm.doc.dui0474c/CJAJBEFD.html
regards,
Joseph
Cancel
Vote up
0
Vote down
Cancel
Denis Jeanroy
over 12 years ago
Note: This was originally posted on 12th March 2012 at
http://forums.arm.com
Thank you, Joseph, I had found this information, but the procedure is very unclear and IMO not well documented.
Anyway I finally managed to do it, after many attempts and errors.
It works with the simulation, and I hope it will on the real board.
Denis
Cancel
Vote up
0
Vote down
Cancel
Joseph Yiu
over 12 years ago
Note: This was originally posted on 13th March 2012 at
http://forums.arm.com
Agree that the document could be improved.
I had feedback this to our support team.
Thanks
Joseph
Cancel
Vote up
0
Vote down
Cancel