Can the KDS debugger tell me RAM usage? I know that looking at the .map file could be helpful, but I'm allocating some stuff dynamically at runtime, and I would like to know how much I have left after doing so.
Solved! Go to Solution.
That depends on how you are allocating dynamically your objects. You would need a function from that heap management to tell you the amount of free heap. If you are usinig FreeRTOS, it will report it to you with heap size with xPortFreeHeapSize().
That depends on how you are allocating dynamically your objects. You would need a function from that heap management to tell you the amount of free heap. If you are usinig FreeRTOS, it will report it to you with heap size with xPortFreeHeapSize().
Thank you Erich.
By the way, I don't see a memory usage summary in the .map file. It seems I will have to extract it manually by searching/looking at each sections usage.
Do you know of a better way?
I report the code/data size with the 'size' utility at the end of the link phase, see
Printing Code Size Information in Eclipse | MCU on Eclipse
Code Size Information with gcc for ARM/Kinetis | MCU on Eclipse
http://mcuoneclipse.com/2013/04/14/text-data-and-bss-code-and-data-size-explained/