Professional Documents
Culture Documents
Symbol Browser 7
View Window 20
Referenced Variables 21
Local Variables 22
Stack Frame 23
Linked Lists 27
Variable Log_________________________________________ 30
Format Variable______________________________________ 34
Format a Variable using the Format Dialog Box 34
07/10/02
Format a Variable Using the Command Line 41
General SETUPs 42
07/10/02
Load the Application Program
1
General Loader Options
The general loader options are independant from the compiler. A list of all general loader options is given with the
Data.LOAD command.
Verify Memory is checked after write. This is done by reading back the memory
immediatelly after a memory block is written.
ComPare Data in the memory is compared against the file, memory is not changed.
Loading is stopped after the first detected difference.
DIFF Data in the memory is compared against the file, memory is not changed.
• found() returns TRUE, when a difference between the file and the
memory is found
2
Loader options if more the one file is loaded
NoClear By default, whenever a new load command is started, the internal symbol
database is deleted. With this option the internal symbol data base is not
deleted. This option is necessary if more then one program is loaded.
MultiFile This option speeds up the downloading of large projects consisting of
serveral programs. This option suppresses the generation of the internal
symbol database when using the load command.
Example:
StripPATH Extracts the file name from the complete source path given in the object
file.
sYmbol.List.SOURCE
New search pathes for the sources can be defined using the command
sYmbol.SPATH <path>.
The search order for newly defined pathes can be displayed using the
command
sYmbol.List.SPATH
sYmbol.SPATH F:\rob\test\si
sYmbol.SPATH F:\rob\test\conf
sYmbol.SPATH F:\rob\bat\test
3
StripPART <n> Parts from the source path stored in the object file are removed.
sYmbol.List.SOURCE
sYmbol.SPATH F:\rob
TRACE32-ICD provides a so-called virtual memory on the host. With the following options the code is loaded into
this virtual memory.
The virtual memory is mainly used for program flow traces e.g. MPC500/800, ARM-ETM … Since only reduced
trace information is sampled, the TRACE32-ICD also needs the code from the target memory in order to provide
a full trace listing. If the on-chip debugging logic of the processor does´t support memory read while the program
is executed a full trace display can only be provided if the program execution is stopped.
If the code is loaded into the virtual memory TRACE32-ICD can use code from the virtual memory in order to
provide a full trace listing.
4
The Symbol Database
Program
Types
Module Global
Variable Sections
Column
5
General Information on the Symbol Database
Command: sYmbol.STATE
Format: sYmbol.STATE
6
Symbol Browser
Command: sYmbol.Browse
7
Global Browsing
\\* Program
8
Display of file names instead of module names
Move the small square to the right, to get the module names for the symbols
9
Narrowed Browsing
10
If the browsing is narrowed to
Variables and a function is selected,
the local variables of the selected
function are displayed
11
Browse Modules
Browse Functions
Browse Variable
Command: sYmbol.Browse.sYmbol
Command: sYmbol.Browse.Function
Command: sYmbol.Browse.Var
Command: sYmbol.Browse.Modules
12
Browsing for a Specific Type
13
Details about a Selected Symbol
14
Select the variable you are interested in
15
Searching in source files
If Debug mode HLL is active, the entered string is searched in the current source file.
16
Display Variables
Watch Window
Adds the selected variable to the top of the Variable Watch Window. If no Watch Window exists, a new Watch
Window is created.
17
Add the variable to the
Watch Window by using
the Variable pull down
18
Command: Var.Watch (Open a new variable watch window)
• If several variable watch windows exist, the variable will be added to the watch window in front.
19
View Window
Opens a new Variable View Window for the selected variable.
Command: Var.View
20
Referenced Variables
Opens a Var.Ref Window. The variables referenced by the current source line are automatically added to this
window.
Command: Var.Ref
21
Local Variables
To open a window to display the local variables of the current function.
Command: Var.Local
22
Stack Frame
Display a “stack trace” to show the functions´ nesting.
Caller Display of the high level language block, from which the function was
called.
Command: Var.Frame
23
Special Display for Arrays
Graphical Display
Command: Var.DRAW
Var.DRAW sinewave
24
Display Array with Indices and Pointers
To display an array together with the indices and pointers to the array use:
Command: Var.TABle
25
Compress the array
Command: Var.FixedTABle
26
Linked Lists
To display a linked list use:
Command: Var.CHAIN
27
Display nth element on
top of the window
Display first element on
top of the window
Display last element on
top of the window
Scan Modes The linked list is permanently scanned to keep it up to date. This
may reduce the performance of the TRACE32 user interface. 3 dif-
ferent scan modes are supported
Full The linked list is scanned completely. This may reduce the perfor-
mance of the TRACE32 user interface considerably.
Partial The linked list is only scanned from the record at the top of the
screen. The influence on the performance of the TRACE32 user
interface is very small.
28
Command: Var.FixedCHAIN
29
Variable Log
Command: Var.LOG
30
Display the log in a special window
To create a special window for the variable log, use the following commands:
AREA.Create Log1
Area.view Log1
Var.LOG flags /AREA Log1
AREA.Create Log1
Area.view Log1
Var.LOG flags /AREA Log1 /Changes ;Variable is only recorded when it
;has changed since the last program
;stop
31
Save the log to a file
To create a special window for the variable log, use the following commands:
AREA.Create Log1
Area.view Log1
AREA.OPEN Log1 loglist.lst
Var.LOG flags /AREA Log1
AREA.CLOSE Log1
Var.LOG
32
Log the variable on each Spotpoint
AREA.Create Log1
Area.view Log1
Var.LOG flags /AREA Log1 /ONSPOT
33
Format Variable
34
General Examples
• Numeric formats
35
• Information on type and location
36
Examples for Arrays
• Index display
37
• Array as string
38
Examples for Pointers
39
More Examples
• Mark changes
• Realtime update
Realtime update
40
Format a Variable Using the Command Line
If a variable is formatted using the Format dialog box, the format information
will not be stored when the windows configuration is saved in a PRACTICE file.
The format information will be stored only, if the variable was formatted using
the command line.
Command: Var.View
• Format definitions are valid for all variables used in the command after the format definition.
41
General SETUPs
Command: SETUP.Var
42
Testing of functions
Command: Var.set
Call a function with its arguments. The return value of the function is displayed in the state line.
Var.set func5(4,8,17)
43
Command: Var.Call
If the expression is a function call, this function is entered and the program counter points to the first
instruction of the function.
The values of the CPU registers before the function call can be recalled with the
Register.SWAP command.
Var.set func13(3,8,5)
44
Since no information was
saved on the stack at the
function call use Register
Swap to restore all CPU
registers to the values
before the function call
45