BullseyeCoverage Up Contents Search

TASKING VX-toolset

The MULTI IDE cannot be configured to build using BullseyeCoverage. However, you can build projects from a command prompt.

Build Project

Follow these steps to build your project with instrumentation.

  1. Invoke a command prompt.

  2. Add the compiler bin directory to the PATH environment variable. For example,
    C:\>set PATH=%ProgramFiles%\BullseyeCoverage\bin;C:\Program Files (x86)\TASKING\TriCore v6.2r2\ctc\bin;%PATH%
    
  3. Move to the directory workspace\project\configuration. For example:
    C:\>cd C:\workspace_ctc_v6.2r2\HelloWorld\Debug
    
  4. Enable coverage build and run the TASKING command amk with PRODDIR set to the BullseyeCoverage directory. For example:
    C:\workspace_ctc_v6.2r2\HelloWorld\Debug>cov01 -1
    C:\workspace_ctc_v6.2r2\HelloWorld\Debug>amk PRODDIR="%ProgramFiles%\BullseyeCoverage" -a all
    

Run-Time Library Built Automatically

By default, BullseyeCoverage automatically compiles and adds the run-time library run/libcov-tasking.c to compiler invocations that link an executable. This source implements the small footprint configuration. You can override this behavior by one of the alternatives below.

Saving Coverage

Add a call to cov_dumpData into your program.

#if _BullseyeCoverage
    cov_dumpData();
#endif

Updated: 27 Sep 2023