Part Number: CCSTUDIO
Other Parts Discussed in Thread: CC2652RB,
I am trying to annotate Stack Usage in Code Composer Studio. I am NOT able to get the Inclusive Size in the report. Can you tell me how to get this?
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.
I tried to attach the screenshot but couldn't
CCS V10.1.1.00004
This is an old (and unsupported) version of CCS. Would it be possible to try an updated version of CCS?
It is a typical view with the Exclusive and Inclusive sizes show for each function.
Yes it typically shows both.
Thanks
ki
For the project I work on we are NOT allowed to upgrade to a newer version of CCS. The main thing is that I WAS able to get a report with Inclusive Size in it at one point but I don't remember what I did. Was it some Compiler Option I had to set? Now I can't do it for some reason and I don't want to have to enter the information in the report manually. Below is the report I HAD the information in.

I don't recognize the format of the data in your screenshot. Is that a csv file that you opened in excel? It is not the stack usage view.
Please provide the actual file you are working with.
Yeah, that's a problem. I'm trying to find the stackUsagedata.dat file I imported into Excel and I can't find it. And I have no idea of how to recreate it. Can you create a report with Inclusive Size in the latest version of CCS?
Can you create a report with Inclusive Size in the latest version of CCS?
the stack usage data is generated in an xml file inside the build configuration subfolder when the project is compiled. This file is used by the Stack Usage view to display the data. There is not a way to generate a report from the view but it is typically not necessary since the xml is already generated and has all the data.
What device are you using? And what compiler is being used?
Can you tell me the name of the build configuration subfolder?
It is
<WORKSPACE FOLDER>/<PROJECT FOLDER>/<BUILD CONFIGURATION>
Example:
I have a project called "gpiointerrupt_LP_CC2652RB_nortos_ticlang" in my workspce. I built the "Debug" build configuration. So the xml file in question would be:

What does the "Annotate" option do in the Stack Usage view?
You can use annotations to specify which indirect functions get called to assist in getting the correct stack usage reported.
Ok, something you mentioned rang a bell. I believe the dat file you are looking for is the one generated in the workspace metadat for the project:
<WORKSPACE FODLER>\.metadata\.plugins\org.eclipse.core.resources\.projects\<PROJECT>\com.ti.ccstudio.project.ui.views
It is not in mine either. However, the actual Stack Usage view which uses this XML file does show the inclusive data. Likely the view itself will use the data in the XML file to calculate the inclusive data and display it.
Okay. Well, I'm so totally confused then because I don't know how I got the information imported into my Excel file if not by the .dat file which contains the stack size. I just don't know if it was something I changed with the Build options.
Can you provide the *.dat file you have that has the inclusive data in there? I'd like to see it.
That's just it. I can't find it!!! I am trying to locate it everywhere. If I find it I'll send it. In the meantime, I see stack usage is generated at build time using the .out file? I have a stack usage view but I don't know HOW the data is being calculated.
I see stack usage is generated at build time using the .out file?
The stack usage data uses the XML file that is generated in the same location as the out file. The compiler generates both out and xml file.
I believe that is from CG XML:
https://software-dl.ti.com/ccs/non-esd/releases/other/applications_packages/cg_xml/index.htm
the zip is over 40MB. I don't think I can e-mail attachments of this size. What is the issue with the temporary link? This is my primary way of sharing larger files.
My company's policy won't allow me to access the site. Is there another site where this is not in exe format? where it is a zip to download? I don't know why it's on the site as an exe file. So I don't know how I can download it.
It's a zip file. It just happens to have "exe" in the name.
I renamed the file so that it is simply called "cgxml-2.61.00-windows-installer.zip"
Use the below link:
I assume your IT blocks any kind of file sharing site. This is understandable as TI does this too, though I can get temporary exceptions when needed.
Try this link then:
https://software-dl.ti.com/ccs/non-esd/misc/cgxml-2.61.00-windows-installer.zip
software-di.ti.com is our main portal and sometimes there are hiccups with it. Hopefully it gets resolved soon.
Ki, I need the installer here
https://software-dl.ti.com/ccs/non-esd/releases/other/applications_packages/cg_xml/index.htm
to be signed or else I need the contents of the ti/cgxm-2.61.00 in a zip file. Can I get that from somewhere?
I zipped up my copy and posted it below:
https://software-dl.ti.com/ccs/non-esd/misc/cgxml-2.61.00.zip
Ki, sorry to keep bothering you. I cannot download the zip but I can download this unsigned file at a similar location
https://software-dl.ti.com/ccs/non-esd/misc/cgxml-2.61.00-windows-installer.zip
Can you tell me what's the difference?
Can you tell me what's the difference?
Besides the file name, the file size is 2x larger. That's it. Both files have the same permissions.
I'm sorry, no the path is different; why is that?
https://software-dl.ti.com/ccs/non-esd/misc/cgxml-2.61.00.zip
I don't understand your question. I simply zipped the folder of my cg_xml 2.61 folder and posted it. That path you just referenced is valid.
Are you asking why is it different than https://software-dl.ti.com/ccs/non-esd/misc/cgxml-2.61.00-windows-installer.zip ?
Because cgxml-2.61.00-windows-installer is simply the installer name. cgxml-2.61.00 is the name of the folder I zipped.
In any case, it should not matter. I don't know why one link would work but the other does not. Both links are active to me. Your IT must have very strict rules/security regarding downloads. Mine does to, it will block many file sharing sites. But I can get a temporary exemption. I suggest contacting your IT department for the same. I've not experienced another user that is unable to access the various file hosting sites I tried sharing with you earlier.