We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi,
How can I check heap & stack size during debugging.
I am using LPC1317 with Keil 4.54.0.0
To check heap usage, as far as I can tell there are no facilities in the Keil tool chain to do this. I needed to do this recently for a project, so I wrote some test code that uses the following:
__heapstats() __heapvalid()
See stdlib.h for their definition. Use of these functions requires the standard C library (not MicroLIB).