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.

CCS: ccs8



Tool/software: Code Composer Studio

Hi,

In project compiled in CC7 environment, I use post-build command "size ${BuildArtifactFileName}" to check used FLASH/RAM.

Now, the same project is opened in CCS8, but there is an error when this post-build command is called.

How to resolve this problem?

Best Regards,

Peter

  • Peter Kostadinov said:
    In project compiled in CC7 environment, I use post-build command "size ${BuildArtifactFileName}" to check used FLASH/RAM.

    I'm sorry but the "size" command does not immediately ring a bell. Is it something that comes in a TI software package?

    Could you show us an example of it working as a post-build command in CCSv7?

  • Hi,
    The problem becomes clearer.
    CCS7 on which the command "size" works OK is installed on my PC, where also are installed mingw and cygwin. Obviously, command "size" calls their tool. CCS8 on which "size" do not works is without such additional installations. Now, I succeed to use this command with absolute path to gcc tools folder - "C:\ti\ccsv7\tools\compiler\gcc-arm-none-eabi-6-2017-q1-update\bin\arm-none-eabi-size ${BuildArtifactFileName}", but this is not the correct solution.
    If there is a proper way to obtain used flash/ram sizes after build procedure?
    Regards,
    Peter
  • Peter Kostadinov said:
    Now, I succeed to use this command with absolute path to gcc tools folder - "C:\ti\ccsv7\tools\compiler\gcc-arm-none-eabi-6-2017-q1-update\bin\arm-none-eabi-size ${BuildArtifactFileName}", but this is not the correct solution.

    I am not clear what you mean by it not being the correct solution. It seems that the arm-none-eabi-size utility should give you what you are looking for. I believe the output of size shows the size of each section, you would then need to add up the code sections to get the amount of used Flash and add up the data sections to get amount of used RAM. 

    In CCS, there is a also a view called Memory Allocation view (that can be opened from the main View menu) that shows this information in a graphical format after the project is built.

  • AartiG, thank you very much. "Memory Allocation view " is exactly what I need.
    Regards,
    Peter