Home > User Support > CoverageMaster winAMS FAQ

CoverageMaster winAMS FAQ

CoverageMaster General Specific Issues

A02_02: What is the setup procedure to run tests using CoverageMaster General MPU?

Question:

I want to perform tests using CoverageMaster General (generic processor core). What is the setup procedure?

Answer:

CoverageMaster General is a generic processor simulator used as a simulation environment for unit testing. It is equivalent to running a test on a different MPU. Specifically it is running tests on a distinct MPU called "General".

The object file generated by your compiler is not used. Instead the execution code for the test is compiled and created by CasePlayer2.

Procedure to generate the object file (*.xlo) using CasePlayer2:

1. Enable the option to generate general code in CasePlayer2

After creating the CasePlayer2 project, open the "Analysis Settings" window from the "Settings" tab. Check the "Enable advanced mode", "Create WinAMS analysis data" and "Build object using General" check boxes. Run the CasePlayer2 analysis (Project -> Re-Create all Documents) and the [project_name].xlo object file will be generated in the project path.

2. Run the source code analysis, resolve analysis errors:

Creating the general executable code means compiling with the built-in compiler of CasePlayer2. Therefore, it is necessary to set the include path and preprocessor (#define information) settings in CasePlayer2, the same as those set in the development environment.

Furthermore, if the source code includes compiler specific keywords such as __inline, __packed, near, etc. that are unknown to CasePlayer2, by default the analysis will fail due to an analysis error. The compiler specific keywords must be registered in the CasePlayer2 [Settings] tab, "C Option Parameters" to resolve the analysis errors.

For more details on how to setup CasePlayer2 with the advanced mode analysis, please refer to the following page:
D01_01: How do I setup CasePlayer2 to use the advanced analysis mode, or link with CoverageMaster?

When the analysis completes successfully, the following message will appear in the message view:

Creating General code object...
[project path\project name].xlo is created.

Note: CasePlayer2 linker warnings and errors will also be displayed in the message view.

Reference:

For more details on setting up CoverageMaster General, please refer to the following document:

[General_Setup.pdf]


Related Technical Tips Search

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

Search key word link: General Setup
Technical Tips Google Search


Information Links