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.

How to calculate Object Code Size from map file?

Other Parts Discussed in Thread: TMS320F2812

Hi,

IDE      : CCSv3.3
Target   : TMS320F2812
Emulator : SPI515PP

Q1: I have a project built in CCSv3.3. I would like to install CCSv4 MCU Core 32KB Object Code Size Limited Version. I would like to confirm before installing CCSv4 that the generated code will be less than(approx.) 32KB. How can I calculate the code size of my project built in CCSv3.3 from the .map file? Is this 'Object Code' size different from 'Code' size?

Q2: Is this .out file entirely different from .hex file?

Q3: Has there any utility that can convert .out to .hex? Is the question logical? :)

Sincere thanks for any help.

-Regards
-Sinoj

  • Sinoj B S said:

    Q1: I have a project built in CCSv3.3. I would like to install CCSv4 MCU Core 32KB Object Code Size Limited Version. I would like to confirm before installing CCSv4 that the generated code will be less than(approx.) 32KB. How can I calculate the code size of my project built in CCSv3.3 from the .map file? Is this 'Object Code' size different from 'Code' size?

    I'm not certain of the restrictions associated with the 32KB size limit.  However, yes the map file will give you the information on the size of the application.

     

    Sinoj B S said:

    Q2: Is this .out file entirely different from .hex file?

    Yes.  The COFF format (.out) contains quite a bit of additional information, including debug information (if enabled), symbol tables, etc.  There is more documentation on this subject in the C28x Assembly Language Tools Reference Guide (SPRU513).

     

    Sinoj B S said:

    Q3: Has there any utility that can convert .out to .hex? Is the question logical? :)

    Yes.  There is the hex conversion utility, hex2000 for this function.