Home > User Support > CoverageMaster winAMS FAQ

CoverageMaster winAMS FAQ

MPU Simulator

452_01: The error "Invalid address found [code = 18] (pc=******)" is displayed during the simulation. How do I fix it?

Question:

In CoverageMaster I press the "Start Simulator" button to run a test, but an "Invalid Operation code found [code = 16] (pc=*******)" error is displayed in the simulator output window. What is the cause of this?

Answer:

The Invalid address code found error occurs when an address is specified that is not word/longword boundary aligned when accessing memory in word/longword units. For example, in the case of an MPU with a 2-byte alignment memory structure, the error occurs when a 2-byte word is accessed by a pointer and the address value is an odd number (2 bytes are accessed across the alignment boundary).

This error may be caused by other abnormal operations, resulting in memory accesses to odd addresses, so there is no guarantee that the source code has unaligned word/longword accesses.

Also, the "Invalid address found" message may occur when the accessed memory area does not have the necessary access attribute assigned. In this case, enter the assign command in the startup command file and set the necessary memory access attribute to the memory area.

Example:

assign/read/write 0x00010000:0x0001ffff


 

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 address
Technical Tips Google Search


Information Links