Arm Mbed OS support forum

MBED Microcontroller Library Heap Stack Size

Hi Everyone,
I have an issue with “out of memory” error. From years ago we are usin Mbed Microcontroller Library and the ARM ToolChain for our project (LPC1768)but now we need to solve “out of memory” error because our board restart very frequently. I change some big buffers as static global variables and that works a little better. Then I need to check memory usage for heap and stack, Do you know how I can do that? Also I don’t know how to check the size of heap and stack during compilation.

Thanks for you help, best regards.

I suggest checking out this article here: Tracking memory usage with Mbed OS | Mbed

That will get you started tracking the memory usage. Post back if you still need assistance.