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.

ccs4 map file

Usually into the .map file it's possible to find information about  <code lenght> (flash bytes), <constant> (flash bytes and <memory lenght> (ram bytes).

Were can I find this information for CodeComposerStutio4 (inside .map file there aren't !! ) ?

For IAR compiler this informations are at the end of the .map file.

 

  • Hi Maurizio,

    the information you're looking for are in the 'Memory Configuration' table of your map file. Pls refer to the example below:

    MEMORY CONFIGURATION

             name            origin    length      used     unused   attr    fill
    ----------------------  --------  ---------  --------  --------  ----  --------
      SFR                   00000000   00000010  00000000  00000010  RWIX
      PERIPHERALS_8BIT      00000010   000000f0  00000000  000000f0  RWIX
      PERIPHERALS_16BIT     00000100   00000100  00000000  00000100  RWIX
      ADCSAMPLE             00000200   00000014  00000014  00000000  RWIX
      RAM                   00000214   000003e8  00000143  000002a5  RWIX
      INFOD                 00001000   00000040  00000030  00000010  RWIX
      INFOC                 00001040   00000040  00000030  00000010  RWIX
      INFOB                 00001080   00000040  00000000  00000040  RWIX
      INFOA                 000010c0   00000040  00000000  00000040  RWIX
      CHANNEL0              00008000   00000200  00000020  000001e0  RWIX
      CHANNEL1              00008200   00000200  00000018  000001e8  RWIX
      CHANNEL2              00008400   00000200  00000020  000001e0  RWIX
      CHANNEL3              00008600   00000200  00000020  000001e0  RWIX
      CHANNEL4              00008800   00000200  00000020  000001e0  RWIX
      CHANNEL5              00008a00   00000200  00000020  000001e0  RWIX
      CHANNEL6              00008c00   00000200  00000020  000001e0  RWIX
      CHANNEL7              00008e00   00000200  00000020  000001e0  RWIX
      CHANNELA              00009000   00000200  0000003c  000001c4  RWIX
      FLASH                 00009200   00006ddf  00002444  0000499b  RWIX
      INT00                 0000ffe0   00000002  00000000  00000002  RWIX
      INT01                 0000ffe2   00000002  00000000  00000002  RWIX
      INT02                 0000ffe4   00000002  00000000  00000002  RWIX
      INT03                 0000ffe6   00000002  00000000  00000002  RWIX
      INT04                 0000ffe8   00000002  00000000  00000002  RWIX
      INT05                 0000ffea   00000002  00000002  00000000  RWIX
      INT06                 0000ffec   00000002  00000000  00000002  RWIX
      INT07                 0000ffee   00000002  00000000  00000002  RWIX
      INT08                 0000fff0   00000002  00000002  00000000  RWIX
      INT09                 0000fff2   00000002  00000002  00000000  RWIX
      INT10                 0000fff4   00000002  00000002  00000000  RWIX
      INT11                 0000fff6   00000002  00000000  00000002  RWIX
      INT12                 0000fff8   00000002  00000000  00000002  RWIX
      INT13                 0000fffa   00000002  00000000  00000002  RWIX
      INT14                 0000fffc   00000002  00000000  00000002  RWIX
      RESET                 0000fffe   00000002  00000002  00000000  RWIX

    Read the table as follows:

    origin: start of the segment
    length: lenght of the segment (in HEX values)
    used: amount of memory in the segment used (in HEX values)
    unused: free memory in the segment (in HEX values).

    So here's the example for RAM:

    starts at 0x0214, is 0x03e8 = 1000bytes large, of which 0x0143 = 323bytes were used and 0x02a5 = 677bytes are free.

    Rgds
    aBUGSworstnightmare

    P.S. When you start debugging your project you will see the total amount of flash and const memory in the console window.

  • Thanks.

    I was accustomed to a more direct indication: into IAR map file this data are at the end of the file, directly in BYTES.


    bye