I'm in the process of cleaning up my code's memory usage and want to see how my changes affect how much RAM and Flash is used in my MCU. The avr-size tool called automatically during build tells me some sizes, but doesn't include all the custom sections I have defined for things like locating const variables and certain functions to specific areas of flash. Thus the numbers for my Program and Data usage are inaccurate.
Is there a way to have this tool generate a neatly formatted summary for all my custom sections? For example, Data would be .data + .bss + .noinit + .customsection1
The --help summary didn't show anything that I could do, but I figured I'd ask.
I see that tools like avr-readelf will allow me to display a summary of ALL sections and sizes, but it would be nice to have something quick and dirty that I can check at a glance at the end of my build process.
If anyone knows how to customize avr-size or otherwise how to display a quick summary of RAM and Flash usage, it would be appreciated.
Otherwise I'll just run avr-readelf and add up the numbers for now.
Thanks in advance!