Report
3 years, 3 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:

Comment on this question

1 Answer

-deleted-
3 years, 3 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.


To post an answer, please log in.