This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Check heap & stack size during debug

Hi,

How can I check heap & stack size during debugging.

I am using LPC1317 with Keil 4.54.0.0

Parents
  • 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).

Reply
  • 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).

Children
No data