Home > User Support > CoverageMaster winAMS FAQ

CoverageMaster winAMS FAQ

Coverage Measurement

013_06: I measure code coverage with the object with hook code, but I get 0% coverage results.

Question:

I measure code coverage with the object with hook code as explained in FAQ 013_01, 013_02, 013_03, but I get 0% coverage results. Measuring C0 or C1 Coverage with the original target object gives correct results (not 0%). There is no issue with my object with hook code build environment. How do I fix it?

Answer:

This depends on the target MPU and compiler, but in most cases this is due to the string for the file and function names used as parameters for the coverage measurement functions not being passed correctly.
The most common issues and solutions have been gathered in the following document:

Known Issues: Coverage Measurement with Hook Code

The samples showed in the document above are available here:

Coverage Measurement with Hook Code Known Issues SAMPLE

 

Related Technical Tips Search

Other technical tips in GAIO's web site can be searched for using the links below.

Search key word link: Hook Code | 0% Coverage results
Technical Tips Google Search

 

Information Links