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, 2 months ago.
How to find how heap/stack are in use?
Can I measure how the heap area are used by variables or malloc()s, as well as occupied stack size? I want to know how much free RAM area available during operation. For occupied stack size, it can be checked by the address the stack pointer. How can I find the free heap area?
1 Answer
9 years, 2 months ago.
Please use search functionality here, it was answered couple of times. Thanks
Thank for your suggestion. Yesterday, I failed to find the related posts here, but now I found https://developer.mbed.org/forum/helloworld/topic/3948/ , which seems to help to find the answer. Thanks!
posted by 03 Sep 2015Or use google to search the site, sometimes it works better than the built in seach: https://www.google.co.uk/webhp?hl=en#safe=off&hl=en-GB&q=site:developer.mbed.org+heap+size
posted by 03 Sep 2015