807 views
in Embedded Wizard Studio by
Hi Gents,

 Is there any method to get an idea of what is using up flash and stack/heap space within a project? I'm just starting out on a project and would like to know where resource hogs and inefficienies might be in what we cook up.

Thank you,

 Mike Spenard
 PP Systems

1 Answer

0 votes
by

Hello Mike,

the typical approach in such case is:

- analyze the linker MAP file in order to get the flash size needed for the application. In the MAP file you see also the allocation for stack and static/global variables.

- To get the RAM usage (heap) use the function EwPrintProfilerStatistic().This function should usually be called at the end of each loop in the GUI main function.

Best regards

Paul Banach

Ask Embedded Wizard - Archive

Welcome to the Ask Embedded Wizard archive. This community forum served us well for many years, but we've evolved our support approach!

Your resources:

The Embedded Wizard Online Documentation provides comprehensive documentation, tutorials, examples and ready-to-use software packages.

For dedicated assistance, explore our Embedded Wizard Product Support.

You can still browse the valuable discussions from our community history here.

Embedded Wizard Website | Privacy Policy | Imprint

...