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.
Part Number: CC1312R
We are working on project with CC1312.
Is it possible to get Code Coverage with CCS v10 for CC1312?
Is there any guideline, as we are facinf some challenges in setting that on CCS v10?
thanks a lot in advance
Do you mean you cannot setup CCC10 successfully for developing CC1312 software?
If my post answers your question, please click on "This Resolved my issue" button to benefit others who have the same issue.
Comparision on Zigbee, Z-Wave, and Z-Wave Long range.
Build OpenThread Sleepy End Device doorlock prototype to test with Rasperry Pi OpenThread Border Router
How to use two UARTs in CC26x2 and CC13x2
SwitchBot DIY using LPSTK-CC1352R , SG90 servo motor, and ProjectZero to away from COVID-19.
How to use two endpoints in SIMPLELINK-CC13X2-26X2-SDK Z-Stack.
How to create a periodic event to toggle BLE Advertising in CC26xx simple_peripheral example
How to use indication in simple_peripheral example and use Btool to enable indication
How to detect button hold in CC26x2, CC13x0, CC13x2 SDK.
660 Zigbee devices in the same Zigbee network!
We are glad that we were able to resolve this issue, and will now proceed to close this thread.
If you have further questions related to this thread, you may click "Ask a related question" below. The newly created question will be automatically linked to this question.
I have moved your question to the Code composer Studio forum. Hopefully they will be able to answer your question.
In reply to Siri:
For development (building, loading program, etc.) everything works ok. But we want to check how many code is covered during program run (measure Code Coverage).
We fail to setup it in CCS v10 – we think something wrong with profiler, but because it’s our first project with CC1312 and CCS we are not sure.
In reply to Vincenzo Pizzolante:
For ARM Cortex-M, you can try the compiler based coverage functionality:
Another to feature is the SWO based trace. While you cannot get full code coverage data, it does support support statistical profiling, which can be useful in providing a general overview of which code is executed most often:
Did you read the CCS Forum Guidelines & FAQ? If not, PLEASE read it. If you haven't read it in awhile, please read it again to see if any updates were made.
Having CCS problems? Check out the CCS Troubleshooting Guide
Looking for CCS Training/Documentation? Check out the CCS Resources page
Curious about the status of a bug and know the tracking ID? Track it via the public bug tracking portal
NOTE: When a bug is filed and a tracking ID is provided, the thread may then be suggested as "TI Thinks Resolved". Why? Please read the first FAQ of the CCS Forum Guidelines & FAQ
In reply to Ki:
We tried compiler based coverage, unfortunately w/o success.
We updated project with --gen_profile_info option, but after debug session termination there is no file pprofout.pdat.
We also tried to add in the code _TI_stop_pprof_collection(), but we get a compilation error. We Use CC1312, probably we are missing some includes?
Try adding extern void _TI_stop_pprof_collection(void); at the top of the c file that has the call to _TI_stop_pprof_collection()
I wrote that app note a week ago so it is pretty new (the feature has been around for a long time). I will make this requirement more clear in the app note.
Note that you will want to have the application setup to do the coverage capture and then push the coverage data in one shot. I.e. setup some condition to triger the call to that function.
If my reply answers your question please click the "This resolved my issue" button
In reply to JohnS:
it works, great.
a very last question: is there a way to collect and analyze code coverage with CCS without having all source code, only compiler output file like *.out, *.map ?
The goal is to provide the QA department a tool to measure their Tests quality – coverage during the production.
thanks al ot in advance
have a great day
I will confirm with the compiler team but I don't think this is possible with the armcl toolchain as that second bit of processing of the .prf is done by the compiler itself. For our new Clang/LLVM based toolset I believe it is possible to do the analysis without source. I am working on the app note for that toolset right now and it works differently and doesn't involve the compiler for the processing of the data. Anyway I will check and get back to you.
I was able to confirm that you need access to source for the armcl solution but for the tiarmclang toolchain you can get the summary coverage information without source. Basically it generates a report like this.
That much will work. If you try to click on one of the source links in that report to get further details that would fail without source.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.