Texas Instruments TMS320C3x Network Card User Manual


 
Step 3: Setting Up the Debugger Environment
9
Installing the Evaluation Module and the C Source Debugger
- If you are modifying an autoexec that already contains a PATH statement,
simply include ;C:\c3xhll at the end of the statement as shown in Figure 3 (a).
- If you are creating an initdb.bat file, use a different format for the PATH
statement:
PATH=C:\C3XHLL;%PATH%
The addition of ;%path% ensures that this PATH statement won’t undo
PATH statements in any other batch files (including the autoexec.bat file).
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 follow-
ing tells 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.
- Set up the D_DIR environment variable to identify the c3xhll directory:
SET D_DIR=C:\C3XHLL
(Be careful not to precede the equal sign with a space.)
This directory contains auxiliary files (evmrst, evminit.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
1
;pathname
2
...
For example, if your ’C3x programs were in a directory named c3xsrc on
drive C, the D_SRC setup would be:
SET D_SRC=C:\C3XSRC
- 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]
This tells the debugger to load the specified object file and use the speci-
fied options each time you invoke the debugger. These are the options that
you can identify with D_OPTIONS:
−b −bb −i pathname
−p port address s −t filename
−profile −v