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.

Problem with code coverage in Code Composer

Hello,

 

We have problem with code coverage in file compiled using cl6x.

 

In our project we compile files remotely on our server using cl6x and gmake.

I guess, I should add debug flag  --symdebug:dwarf (or --symdebug:coff).

I understand, that after complete run of my program on simulator

with these flags, I will get coverage statistic files, which I can use to

investigate code coverage in my program.

 

I tried to obtain code coverage statistics of

 simple project locally using Code Composer Studio (v 5.2.1.00018):

 

#include <c6x.h>

 

void main(void)

{

 while(1)

 {

        ;

 }

}

 

I set “Generic C67xxDevice” as device in project properties. In target

Configuration I chose “C67xx CPU Cycle Accurate Simulator, Little Endian”

 Without success. Program compiled. I loaded binary file. Ran it and stopped execution. No code coverage generated.

 

When I compiled code like this:

#include <c6x.h>

 

void main(void)

{

       ;

}

 

There’s error:

No source available for "C$$EXIT() at D:\userdata\grymin\workspace_v5_2\fggdfgdfg\Debug\fggdfgdfg.out:{3} 0x8900{4}"

 

Can You explain me, what should I change in my simple project to compile it and generate coverage data?

Can I automate this process?

  • One of our guys has been working on a little training module that may be helpful with this:

    3301.CCSv5-CodeCoverage2.pptx

    BTW the error: No source available for "C$$EXIT() at D:\userdata\grymin\workspace_v5_2\fggdfgdfg\Debug\fggdfgdfg.out:{3} 0x8900{4}" just means that CCS is halted somewhere that it doesn't have the source for.  You are halted at the exit label in the runtime support library.  CCS automatically sets a breakpoint there so when you run past the end of your program it stops there.