How to get information about program size in Flash

Go To Last Post
5 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Does anybody know how to get information about application size in flash and ram usage information?

Best regards
Michael

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi Michael,

Are you using GCC? If so, you can tell the linker to produce a linker map file. I did it by going to the linker settings in avr32studio. Then select "Miscellaneous". Then add the following two things to "Other options (-Xlinker [option])" in separate lines:

--Map
WHATEVER_YOU_WANT_THE_LINKER_FILE_NAME_TO_BE

gcc will pass these to the linker and it will produce a linker map file.

-jon

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thank you for the fast response.

I tested the -map switch a map file was generated.
Unfortunally it was not so usefull no map summary has been given.
My mplab compiler uses also gcc it produce a usefull summary at the end of linker process.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

What do you mean it wasn't useful? Its a bit complicated so you have to parse it to get the exact information you need.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

You can also use avr32-size to get the summary for the various sections.

Hans-Christian