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/TM4C123GH6PM: stack usage question

Part Number: TM4C123GH6PM
Other Parts Discussed in Thread: CCSTUDIO

Tool/software: Code Composer Studio

Hi Champs,

My customer has question about "exclusive size" and " inclusive sizes". Could you please tell me what do "exclusive sizes" and "inclusive sizes" mean?

I tried to use stack usage but I can't see any information in my CCS. Could you please tell me how can I see stack usage in my project. I used pwmled_EK_TM4C1294XL_TI_TivaTM4C1294NCPDT. thanks!

  • customer stack usage

  • My stack usage

  

  • Lisa,

    Inclusive means it is the stack usage including the functions that it calls.   Exclusive is just that used by the function.

    If you expand one of the functions it is easy to see.  fflush is 32 for exclusive but when you add 16 for _TI_doflush and 8 for write you get the total of 56 which is shown for the inclusive size of fflush 

    Regards,

    John

  • Hi John,

    thanks for your reply. But after i open stack usage, i can't see any function in stack usage window. That's why i ask how to enable it or do i missed any project setting ? 

  • I am not sure why your view is blank. It will be blank if there is no project selected but I can see that you have a project selected. It will be blank if the project is not built but in that case it tells you to build it so that is not the case here.

    It almost seems like the tool that is parsing the output of the linker is failing. What version of CCS are you running?
  • If you could send me the .dat file from the following location I could try it on my machine. We think this file is corrupted.

    <location of your workspace>\.metadata\.plugins\org.eclipse.core.resources\.projects\pwmled_EK_TM4C123GXL_TI\com.ti.ccstudio.project.ui.views

    The file would be called something like stackUsagedata.dat
  • Hi John,

    Please see the attachment, thanks ! My CCS version is 7.2.0.00013 stackUsagedata.dat

  • Thanks Lisa. We were able to point to the file and have the view display ok. However one of our guys was able to reproduce the screen that you saw once.

    The way he got it was that he imported the example project. Opened the stack usage view. It displays the message about needing to build the project. He clicks on that message and the project builds. Afterwards he saw the same blank view as you. He was able to clear that up by simply closing the view and opening the view again. Basically it is some sort of drawing refresh issue. Could you give that a try?

    Regards,
    John
  • Hi John,

    I cleaned the project and rebuild it. However, my stack usage still didn't show up.... 

  • Lisa

    I asked if you could close the stack usage view and then open it again. Did you try that? Your data file was fine and the issue appears to be related to drawing the view itself which in the case of our developer he was able to resolve by closing it and opening it again.

    John
  • Hi John,

    I close stack usage over view also. But i still can't see the function. thanks, 

  • Lisa,

    Could you go to the Help menu in CCS and select CCS Support. Then click on the archive logs button to save the log files to a zip. Then attach the zip to this thread.

    Thanks,
    John