3 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:

Comment on this question

1 Answer

3 years, 7 months ago.

This might help:

I would like to know what worked for you.

To post an answer, please log in.