This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Flash on disk from output file

I have an RM48L952ZWT and am using Code Composer Studio (CCS).

The output file is 2741 KByte. When I load the program via CCS, I see a dialog that says ".text: xxxxxx of 399304 at 0x0". The output file is 2.69 MB and 399304 equates to 331.35 KB. The two numbers do not match.

The datasheet for the RM48L952ZWT states that the device has 3MB of program flash with ECC and 64KB of Flash with ECC for Emulated EEPROM.

What is the actual footprint of my program?

  • The size of the executable object file bears very little relevance to the target memory footprint of the program. The executable object file typically has a lot of bookkeeping and debugging information that makes the file much larger, but does not affect the target memory footprint.

    The .text section is just the executable instructions of your program; it does not include the data sections. You can find the other sections in either the linker command file (linker option --map_file) or by using the command-line armofd utility on the executable object file. For armofd, look in particular at the "alloc" column, which tells you whether the section is on the target or whether it only exists in the executable object file.
  • Sarah Weinberger said:
    What is the actual footprint of my program?

    Do you build with Code Composer Studio?  Please try the memory allocation view.  Make sure your project is active in the Project Explorer view.  Then select View | Other | Code Composer Studio | Memory Allocation .

    Thanks and regards,

    -George