Home > User Support > CoverageMaster winAMS FAQ

CoverageMaster winAMS FAQ

MPU Simulator

452_02: The error "Invalid Operation code found [code = 16] (pc=******)" is displayed when starting the simulator and the simulation stops. How do I fix it?

Question:

When I press the simulator start button for test execution "Invalid Operation code found [code = 16] (pc=******)" appears in the simulator output window and the simulation stops. What is the cause of this?

Answer:

The Invalid Operation code found message is displayed when an instruction code that cannot be interpreted by the MPU simulator is fetched.

There are various causes for this error such as the following.

- The MPU mode such as MPU type, model number, endian, ARM code/thumb code, etc. is not selected correctly.
- If it occurs after entering the test, unintended portions of the target program may have been executed.
(There are various causes for this, such as stack overflow, NULL access, test data setting error, etc.)

The selection of the MPU type, model number, etc. can be confirmed from the "File" menu -> "Project Settings". Also, depending on the type and model number of the MPU, some need to have a setting specified in the "Target Settings" -> "Simulator Options".

To find the cause of the error during test execution, trace the simulation until the error occurs and attach the simulation log when you contact user support.

Refer to FAQ 000_01 for the procedure to trace the simulation and generate the simulation log.

 

Related Technical Tips Search

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

Search key word link: Execution Error | Invalid Operation
Technical Tips Google Search


Information Links