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.

TMS320F28379D: Code Composer Studio option to show footprint size information

Part Number: TMS320F28379D

Hello,

Is there, in Code Composer Studio, any option to show (for example in compilation output console) footprint size information (text, data, bss...)?

I am aware of .map information and memory allocation view. But I am looking for something more practical which shows me commented information in just 1 line for example at the end of compilation output console (just like other eclipse-based IDEs do).

Thanks in advance!

Best regards,

Adria

  • It's not exactly what you are looking for but you have a visual output available under menu View/Memory Allocation

  • Hello,

    Actually I already said that I am aware of that option. Does anybody know if what I am looking for is possible?

    Best regards,

    Adria
  • Sorry for not reading thtrought your question. Then the only option is to write a script and execute it after the build finishes (Project settings/CCS Build/Steps/Post Build steps.

    if you have python interpreter available, here is an example:

    #!/usr/bin/env python
    # -*- coding: utf-8 -*-

    import os

    # find the file

    for dirpath, dirnames, filenames in os.walk("."):
    for filename in [f for f in filenames if f.endswith(".map")]:
    mapfile = os.path.join(dirpath, filename)

    with open(mapfile) as f:
    lines = f.readlines()

    for line in lines:
    if line.startswith(".text"):
    print(line)
    if line.startswith(".ebss"):
    print(line)
  • CCS only provides the raw information in the .map and _linkinfo.xml files.  The memory allocation view can show a high level summary or details depending on how it is expanded.  There is no single line summary available.  Unfortunately on F28379D there are so many memory blocks defined that the memory allocation view becomes a massive table.  On other devices with different layouts it is much more concise:

    F28379D view:

    MSP432E View (top level)

    Expanded 1 more level:

    On MSP430 we do something in the loader for a high level summary:

    MSP430:  Flash/FRAM usage is 108 bytes. RAM usage is 80 bytes.

    However even that is not what you are looking for.

    Regards,

    John

  • One other thing you could do would be to use a filter in the memory allocation view.

    Here I am setting it to show just 3 memory ranges

    The resulting view is a lot more readable.

    You can access the filters using the little down arrow at the top right of the view.

    Regards,

    John

  • Hello Mitja,

    Thanks for your answer.

    Best regards,

    Adria

  • And also thank you John!