Texas Instruments TMS320C2 Series Installation Manual page 40

Pc emulator
Table of Contents

Advertisement

Step 4: Setting Up the Debugger Environment
Setting up the environment variables
An environment variable is a special system symbol that the debugger uses
for finding or obtaining certain types of information. The debugger uses three
environment variables named D_DIR, D_SRC, and D_OPTIONS. The next
three bullets tell you how to set up these environment variables. The format
for doing this is the same for both the autoexec.bat and initdb.bat files.
-
-
-
2-12
Set up the D_DIR environment variable to identify the c2xxhll directory:
SET D_DIR=C:\C2XXHLL
(Be careful not to precede the equal sign with a space.)
This directory contains auxiliary files (emurst, emuinit.cmd, etc.) that the
debugger needs.
Set up the D_SRC environment variable to identify any directories that
contain program source files that you'll want to look at while you're debug-
ging code. The general format for doing this is:
SET D_SRC= pathname
;pathname
1
(Be careful not to precede the equal sign with a space.)
For example, if your 'C2xx programs were in a directory named c2xxcode
on drive C, the D_SRC setup would be:
SET D_SRC=C:\C2XXCODE
You can use several options when you invoke the debugger. If you use the
same options over and over, it's convenient to specify them with
D_OPTIONS. The general format for doing this is:
SET D_OPTIONS= [ object filename ] [ debugger options ]
(Be careful not to precede the equal sign with a space.)
This tells the debugger to load the specified object file and use the speci-
fied options each time you invoke the debugger. Table 2–3 lists the options
that you can identify with D_OPTIONS.
Note that you can override D_OPTIONS by invoking the debugger with the
–x option.
For more information about options, see the invocation instructions in the
Overview of a Code Development and Debugging System chapter in the
TMS320C2xx C Source Debugger User's Guide .
...
2

Advertisement

Table of Contents
loading

Table of Contents