Measuring Coverage - Fujitsu SOFTUNE F2 MC-16 User Manual

Software for developing programs for the f2 mc-16 family of microprocessors / microcontrollers
Hide thumbs Also See for SOFTUNE F2 MC-16:
Table of Contents

Advertisement

CHAPTER 2 DEPENDENCE FUNCTIONS
2.3.8

Measuring Coverage

This emulator has the C0 coverage measurement function. Use this function to find what
percentage of an entire program has been executed.
■ Coverage Measurement Function
When testing a program, the program is executed with various test data input and the results are checked for
correctness. When the test is finished, every part of the entire program should have been executed. If any part
has not been executed, there is a possibility that the test is insufficient.
This emulator coverage function is used to find what percentage of the whole program has been executed. In
addition, details such as which addresses were not accessed can be checked.
This enables the measurement coverage range to be set.
To execute the C0 coverage, set a range within the code area. In addition, setting a range in the data area,
permits checking the access status of variables such as finding unused variables, etc.
Execution of coverage measurement is limited to the address space specified as the debug area.
Therefore, set the debug area in advance.
This is operable by enabling the coverage function on the chip tabs: [Environment] - [Setup Debugging
Environment] - [Debug Environment] menu.
■ Coverage Measurement Procedures
The procedure for coverage measurement is as follows:
1. Set range for coverage measurement:SET COVERAGE
2. Measuring coverage:GO, STEP, CALL
3. Displaying measurement result:SHOW COVERAGE
■ Coverage Measurement Operation
The following operation can be made in coverage measurement:
- Load/Save of coverage data:
- Abortion and resume of coverage measurement: ENABLE COVERAGE, DISABLE COVERAGE
- Clearing coverage data:
- Canceling coverage measurement range:
Note:
When the coverage measurement function is used, the monitoring function in RAM area of the 0 bank
cannot be used. For more details, refer to Section "2.3.9 Real-time Monitoring".
188
LOAD/COVERAGE, SAVE/COVERAGE
CLEAR COVERAGE
CANCEL COVERAGE

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Softune workbench

Table of Contents