
The Memory Map: What It Is and Why You Must Define It
5-2
5.1
The Memory Map: What It Is and Why You Must Define It
A memory map tells the debugger which areas of memory it can and can’t
access. Memory maps vary, depending on the application. Typically, the map
matches the MEMORY definition in your linker command file.
Note:
When the debugger compares memory accesses against the memory map,
it performs this checking in software, not hardware. The debugger can’t
prevent your program from attempting to access nonexistent memory.
A special default initialization batch file included with the debugger package
defines a memory map for your version of the debugger. This memory map
may be sufficient when you first begin using the debugger. However, the de-
bugger provides a complete set of memory-mapping commands that let you
modify the default memory map or define a new memory map.
You can define the memory map interactively by entering the memory-map-
ping commands while you’re using the debugger. This can be inconvenient be-
cause, in most cases, you’ll set up one memory map before you begin debug-
ging and will use this map for all of your debugging sessions. The easiest
method for defining a memory map is to put the memory-mapping commands
in a batch file.
Defining the memory map in a batch file
There are two methods for defining the memory map in a batch file:
-
You can redefine the memory map defined in the initialization batch file.
-
You can define the memory map in a separate batch file of your own.
When you invoke the debugger, it follows these steps to find the batch file that
defines your memory map:
1) It checks to see whether you’ve used the –t debugger option. The –t option
allows you to specify a batch file other than the initialization batch file
shipped with the debugger. If it finds the –t option, the debugger reads and
executes the specified file.
2) If you don’t use the –t option, the debugger looks for the default initializa-
tion batch file. The batch filename for the simulator is called
siminit.cmd.
If the debugger finds the file, it reads and executes the file.
3) If the debugger does not find the –t option or the initialization batch file, it
looks for a file called
init.cmd.
Summary of Contents for TMS320C6 Series
Page 10: ...x ...
Page 20: ...xx ...
Page 118: ...4 20 ...
Page 144: ...6 16 ...
Page 164: ...7 20 ...
Page 170: ...8 6 ...
Page 284: ...B 18 ...
Page 290: ...C 6 ...