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, 7 months ago.
How to determine available RAM at runtime?
How can I safely determine at runtime the amount of available RAM between the top of the heap and the current bottom of the stack?
I would imagine it just involves subtracting two pointers but am not sure which ones. I am using LPC11U35 (M0) and LPCXpresso/gcc if it matters.
Question relating to:
1 Answer
9 years, 7 months ago.
This might help: http://developer.mbed.org/questions/6994/How-to-print-Free-RAM-available-RAM-or-u/
I would like to know what worked for you.