BullseyeCoverage Up Contents Search

Siemens Nucleus RTOS

Sourcery CodeBench

Use the instructions for Eclipse IDE.

Run-Time Library Built Automatically

By default, BullseyeCoverage automatically compiles and adds the run-time library run/libcov-nucleus.c to compiler invocations that link an executable with -lnucleus. 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. The output file BullseyeCoverage.data-1 is written with the Nucleus FILE API. The file is written to the root directory of the first available drive in the sequence A: to Z:. Errors are written to the <stdio.h> stream stderr.

#if _BullseyeCoverage
    cov_dumpData();
#endif

Updated: 12 Jan 2021