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

-deleted-
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.