Dump ucHeap content

Hi
Is there a way to dump \ print ucHeap content ?
I’d like to see the variables allocated and their values
Ran

ucHeap is an array in the memory and you can dump the raw memory content using debugger.

You can keep track of allocated blocks (i.e. return value from pvPortMalloc) and dump those also separately.

1 Like

This is totally dependent on compiler and/or included libraries. If you have to know, you could build something like ummalloc and override the built in heap libraries. Then you can at least view all the allocations and sizes.

1 Like

Granted it doesn’t help in your case, but vPortGetHeapStats() provides heap usage stats.

1 Like