This should be pretty straight forward, but my google-ing is not turning anything up… I can build my project successfully in TI Code Composer Studio (CCSv5) and target my device.
Now I want to know my program code size, so that I know how much space I have for future growth etc. When I develop for AVRs in eclipse with the avr-gcc tool chain it conveniently tells me this in the compiler output in the console. Even Arduino compilation reports this information right there in the IDE. No such luck with CCS it seems.
So the question is, how do you get the MSP430 memory utilization statistics in CCS? A bonus would be how to configure the IDE to tell me this information in the console output when I do a build.
Note: I know that it tells me in the console when I load it onto a device with Run => Debug. I'm looking for output at compile time.
Set up your project to output a "MAP" file. This gives all of the memory use information. In CCS4, the project properties "Basic Options" under the linker options will do this. From command line, use "--map_file".
The map file will show up in the Debug or Release folder. The first section will look something like the example below which shows the location, length, and use of each memory section. (Note that the example shows 3 special sections which you won't have: BT_FLASH, NV_FLASH, and BI_FLASH.)
To understand how these sections are defined reference the project's linker command file.