Question: What is reason for the debugger error " Illegal memory access-outside valid range " ?

Answer: The reasons are :

  • Incompatibility between the memory declared in your "emuinit.cmd" file (for the emulator) or the "siminit.cmd" file (for the simulator) and your linker command file. You are in fact accessing memory that is not defined in the ma command list or you are accessing processor reserved memory.

Simulators are more strict in detecting invalid memory accesses than emulators. In an emulator unless you are single-stepping, the emulator doesn't check if you are accessing invalid memory. If that invalid memory is on-chip or depending on your external memory interface, the device may return back a normal RDY signal and the emulator will not detect this.

OR

  • Simulator only:

You haven't declared in your ma commands, the global and local memory control registers. Even though you are not accessing external memory, the simulator needs that minimum configuration.


Device: TMS320C2x
Category: TI Tools
Detail: Debugger Tools
Detail2: Simulator
Title: Illegal memory access-outside valid range
Source: Case from TMS320 Hotline
Date: 4/16/98
GenId: a2

© Copyright 1998 Texas Instruments Incorporated. All rights reserved.
Trademarks, Important Notice!