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.

How to find the Code coverage in Code Composer Studio ?

Hello,

 We are using Code Composer Studio Version: 5.1.0.09000.

 The controller we are using is LMS35B91 and the compiler details can be found in the screen shot below.

Basically we would like to know the number of source lines executed with our test application.

From the ti wiki we came  to know that the code coverage is possible using CCS IDE.

Can anyone please guide me how to find the code coverage using CCS IDE?

Thanks in Advance.

 Regards,

Suraj

  • Suraj,

    We do not support code coverage for Stellaris LM3S devices. We have a couple different code coverage solutions, 1 is based on the device having trace capabilities so we can capture PC trace and then determine code coverage, the other is based on instrumentation and capturing data to a large memory buffer (available on C6000).

    There are 3rd party solutions that may have something that will work for you. You could check with LRDA, ParaSoft, VectorCAST and others. These solutions typically involve instrumentation and then piping the data off via C I/O or via a port while the processor is running.

    Regards,
    John
  • Hello John,

    Thanks for the information.

    I tried to find out the code coverage using the simulator configuration as shown in the screen shot below:



    I have followed the instructions mentioned in the below link.
    http://processors.wiki.ti.com/index.php/Code_Coverage


    Currently most of the APIs will not execute,since we are not giving any input parameters to the API.
    Now i would like to write the test cases for the APIs defined in the source code, and to increase the code coverage.

    Can anyone please guide me, how to write test cases for the APIs defined in the source code using CCS?
    [Basically i need to invoke and test the API with the required inputs using CCS.]

    Any suggestions are appreciated.

    Regards,
    Suraj