Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
9 years, 5 months ago.
How to use LPC4088 32MB external memory as heap
HI expert,
I am trying to use LPC4088 external 32MB memory for heap to support large malloc(), how can i achieve it? Should i need to change the ld file and any others. I have redirect the heap section to sdram region, however, the system hang up。
Btw: I am using offline gcc arm
Thanks,
Question relating to:
2 Answers
9 years, 5 months ago.
May be do you find how to change the linker file in http://www.atmel.com/Images/doc32121.pdf ?
7 years ago.
I was able to use the external RAM as dynamically-allocated memory with this patch:
https://os.mbed.com/teams/IONX/code/EALib/rev/aba394685794/
and by making this change
https://github.com/ARMmbed/mbed-os/issues/5638
Hopefully mbed-os will integrate the fix in that issue report.
Personally, I'd like to be able to statically-allocate specific non-initialized variables to memory. Looks like that still requires messing with linker files - and that's kind of brittle if you're exporting your mbed-os-based projects, IMO. Anyway, relevant discussion:
https://community.nxp.com/thread/462953
Meanwhile, I was able to use the external RAM as dynamically-allocated memory with this patch:
https://os.mbed.com/teams/IONX/code/EALib/rev/aba394685794/
and by making this change
https://github.com/ARMmbed/mbed-os/issues/5638
Hopefully mbed-os will integrate the fix in that issue report.
posted by Brendan McDonnell 04 Dec 2017