Ide User
Ide User
Release 09.2022
MANUAL
PowerView User’s Guide
TRACE32 Directory
TRACE32 Index
Commands ............................................................................................................................... 28
Command Structure 28
Long Form and Short Form of Commands and Functions 29
Entering Commands 30
Command Line 30
Device Selection 31
Command History 32
Command and Function Parameters 33
Parameter Types 35
Operators 40
Arithmetic Rules and Operator Precedence 42
Parentheses and Braces 43
Parameter History 43
File Names 44
Path Prefixes 45
General Command Parameter Parser - Behavior in the Different Radix Modes .............. 46
Parser Changes in Version V2.00 and Higher 46
A. Object of Description 46
B. Support of C Language Expressions 48
C. Radix Mode Support 49
D. Incompatibilities in RADIX.Classic Mode 50
Operands 51
Operand Format Examples (Literals) 52
Operand Transition Table 53
Operators 54
Operator Formats 55
Operator Transition Table 57
Version 26-Oct-2022
The release history in the documentation always lists the latest changes in the TRACE32 software. When
you get a new version of the TRACE32 software, please always check the Release history first.
Online Documentation
1. If the TRACE32 software is already running, you can use the Help command in the main menu
bar.
2. On the TRACE32 software DVD and in your TRACE32 system path (e.g. C:\T32), you can find
a directory pdf. This directory contains the complete TRACE32 documentation in PDF format.
Open directory.pdf to get the table of contents for the complete TRACE32 documentation.
Documentation on how to use the online help can be found in chapter Help System.
The documentation is automatically filtered by your currently used hardware and/or software configuration.
The filter automatically reduces the whole documentation to the part that is relevant for you. If you want to
change the filter, take a look at the command HELP.FILTER.
TRACE32-ICD includes all debuggers based on an on-chip debug interface (e.g. JTAG, BMD, OCDS …) as
well as ROM monitor solutions. Lauterbach also provides a trace extension for most debuggers
(TRACE32-ICT). TRACE32-ICD comes with a number of manuals that should make you familiar with
important features of TRACE32-ICD.
Sources of information beyond the PDF files of the TRACE32 online help:
• https://www.lauterbach.com/publications/debugging_amp_smp_systems.pdf - An introduction
to asymmetrical and symmetrical multiprocessing (AMP/SMP)
For more information on the features of TRACE32-ICD, refer to the following parts of the TRACE32
online help:
After installing the driver program to the appropriate host system, the executable can be started.
The TRACE32 system has to be powered up. If this is not the case, the error message "NO CARRIER …",
"LINK ERROR …" or "TRACE32 not responding" will appear.
If all environment variables are installed correctly, the driver program can be invoked from any sub-directory
or drive.
T32Start
The user interface of the T32Start utility assists you in creating as many start environments for TRACE32 as
you need for your different debug projects. Based on the start environment you have created with a few
mouse-clicks, T32Start auto-generates the configuration file that is essential for starting TRACE32 correctly.
Command Line
If you want to start TRACE32 via the command line of the operating system, you need to manually create
the configuration file (by default config.t32). The configuration file settings are described in “TRACE32
Installation Guide” (installation.pdf).
For information about the command line syntax and command line options, see “TRACE32 Installation
Guide” (installation.pdf).
• --t32-help
• --t32-safestart
• --t32-logautostart
Getting back to the operating system command level is possible by using the command QUIT or by choosing
File menu > Exit.
::QUIT
The QUIT command quits the driver program and resets the TRACE32 system. When the driver program is
restarted, a complete boot sequence will be executed.
If for any reason the host crashes, the TRACE32 system should be switched off for a few seconds.
NOTE: If your TRACE32 development tool is connected to the target, it is important to use
the proper power on/power off sequence. For detailed information, refer to your
Processor Architecture Manual.
Concept
The graphical user interface (GUI) of TRACE32 is called TRACE32 PowerView. The TRACE32 user
interface is based on an extremely fast, character oriented window system. Up to 128 different windows can
be composed for display, each can contain up to 250 * 250 characters. Window type, size and status can be
defined very flexibly by the user. Each window is assigned to one task, which is sequentially executed to
update the window information.
An array of windows is called a “PAGE”. Several pages can be defined in this manner, with each page
representing a part of the user’s work area. Multiple pages cause no performance degradation, as only the
visible windows are updated.
• MDI (multiple document interface): All sub-windows are placed inside the TRACE32 main
window.
• MWI (multiple window interface): The TRACE32 main window and the sub-windows are placed
freely on the desktop.
• FDI (floating document interface): Same as MWI; the taskbar shows only one icon for all
windows. Minimizing the main window will also minimize the sub-windows.
• MTI (multiple top-level window interface): The taskbar shows an icon for the main window and
each sub-window. Minimizing the main window does not minimize the sub-windows.
These modes can be set in the SCREEN= section of the configuration file (config.t32). Depending on the
version of TRACE32, not all window modes are supported:
MDI + - + - - - +
MWI + + + + + + +
After starting TRACE32, the main window of the TRACE32 PowerView GUI is displayed.
After starting TRACE32, the main window of the TRACE32 PowerView GUI is displayed.
Local buttons
The main menu bar provides all important commands for each functional unit of the TRACE32 development
tool. You can add user-defined menus to the main menu bar by using the MENU commands.
MENU.AddMenu Allows you to quickly add one menu for temporary usage.
Default name of the temporary menu is User.
MENU.ReProgram Allows you to embed a menu definition in a PRACTICE script
(*.cmm) or create a *.men file for a menu definition.
Example: This script adds the User menu shown in the above screenshot to the main toolbar.
Accelerators
Accelerators allow you to execute commands with a single keystroke. Usually the function keys are used for
this purpose. Accelerators can be changed by using the MENU commands.
Example:
The main toolbar provides buttons for the most important TRACE32 commands. You can add user-defined
buttons with tooltips to the main toolbar by using the MENU commands.
Example: This script adds the button shown in the above screenshot to the main toolbar.
; the example shows how to add a temporary button to the main toolbar
; <tooltip> <button_letters,color> <command>
MENU.AddTool "Mapper Settings" "ML,B" "MAP.List"
Work Area
[Back to Top]
The work area is used as the general input and output area. For more detailed information, see Windows.
In addition to working with windows in the work area, you can place windows on user-defined pages. This is
useful if you need to open lots of windows and want to group them. For more information, see Pages.
The message line displays error and general messages, information on cursor position, etc. The message
line is located below the command line.
Error Messages
Error messages are displayed by a special attribute (e.g. red or blinking). The error message is erased
automatically. If an input error was made, an arrow will point to the mistake on the command line.
The softkeys will no longer correspond to the entered data! If the error message
is still unclear, the appropriate page in the on-line manual will be displayed,
when using the «help» key.
General Messages
When entering configuration commands, the current state is displayed during the command input. Some
command outputs are also displayed in the message line.
B::TRANSlation.TableWalk
Address translation: OFF
If the left mouse button is pressed down while the cursor is positioned within a window, additional information
in regard to the current context will be displayed. In the example below the variable flags is selected in the
Data.List window.
B::
flag = {1, 1, 0, 0, 1, 1, 1, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 1}
The softkey structure represents a hierarchical selection menu. Each softkey can be activated by clicking the
left mouse button.
Softkeys with pointed brackets (e.g., «<file>, <range>, <address>») are placeholders for parameters which
have to be entered in the command line.
In the case of softkeys with square brackets ([ or ]) the command is executed immediately after being
selected without a written entry to the command line.
Softkeys written completely in lower case characters represent command hierarchy branching which does
not alter the command line (e.g., emulation).
Softkeys written in upper case and mixed case represent command words which can also be entered via
the keyboard. You can enter either the entire word, or just the upper case letters. Upper and lower case
characters are not differentiated.
By means of the «other» softkey additional menu selections located in the same hierarchical level can be
started. By «previous» you can return to the former level in the menu hierarchy. The commands for those
softkeys which have been shadowed in on the display are inaccessible at this time.
Data Command
<address> Parameter
The state line is located at the bottom of the TRACE32 main window.
For more information about the individual fields in the state line, click the blue GUI terms.
Trace Mode
Debugger System
Cursor Debug Activity
and and
Cursor (in Hypervisor Environment) Task
and
Task (in Hypervisor Environment)
Cursor
[Back to Top]
A B
a b c d
B Symbol (\\sieve\sieve\fill_buffer+0x64)
The machine ID [b] is displayed only if you set SYStem.Option.MACHINESPACES to ON, and the space ID
[c] is displayed only if you set SYStem.Option.MMUSPACES to ON.
Debug
[Back to Top]
• Information on the state of the debugger (running, stopped, stopped at breakpoint etc.)
The state of the trace can be changed by using the Trace pull-down.
A A white X against a red background indicates that the trace method is set to NONE. For more
information, see <trace>.METHOD NONE.
Debugger Activity
[Back to Top]
The Debugger Activity field provides information on the target activity of the debugger, for example:
• A red S indicates that the debugger shortly interrupts the program execution to realize a
debugger feature, e.g. intrusive breakpoints.
• RUN in green indicates that TRACE32 has started an algorithm on the target to realize a
debugger feature, e.g. target-controlled FLASH programming.
The Mode field indicates the debug mode. The debug mode defines how source code information is
displayed (assembler code ASM or programming language code HLL or a mixture of both MIX) and how
single stepping is performed (assembler line-wise or programming language line-wise).
The System field indicates Up if the communication between the debugger and the processor/core is
established and nothing is otherwise.
The communication between the debugger and the processor/core can be established and ended by the
System pull-down.
The name of the current task is displayed in the Task field after the TRACE32 OS Awareness was activated,
see [A].
Selecting another task from the Task pull-down allows to switch the task context (mainly Register.view
window and Frame.view window).
• A check mark is used to mark the task for which the task context is displayed.
In a hypervisor environment, the machine name precedes the task name, and the three colons ::: serve as
the separator between machine name [B] and task name [C].
• TRACE32 PowerView visualizes all system information from the perspective of the selected core
if not specified otherwise.
Advanced
[Back to Top]
The Target field indicates an active target reset or a locked JTAG interface (command: SYStem.LOCK ON).
Target
If “Integrated Run & Stop Mode Debugging via JTAG” is used TRACE32 indicates that a debug agent is
running in the Monitor field. For details refer to “Run Mode Debugging Manual Linux” (rtos_linux_run.pdf).
Monitor
Window pages in TRACE32 are similar to workspaces in other applications. In TRACE32, you can open
windows on different pages, but only the windows on the selected page are visible. Windows located on the
other pages are temporarily hidden.
You can create a new page and switch between pages by right-clicking anywhere on the TRACE32 main
toolbar. By default, TRACE32 auto-increments the names of new pages P001, P002, etc. But you can also
create new pages with user-defined names.
The WinPAGE.List window serves as the table of contents for your pages. You should always open the
WinPAGE.List window with the WinResist pre-command to keep the table of contents visible on all pages.
Example:
Colors
The TRACE32 PowerView GUI is designed to assist you in writing PRACTICE scripts (*.cmm), with which
processes can be automated in TRACE32:
1. The GUI controls in TRACE32 windows are labeled such that they reveal the command syntax
for use in a PRACTICE script. See (A) below.
2. The commands shown in window captions can be modified and re-used with one mouse-click.
See (B) below.
(A) Writing Scripts based on the Text Labels of the TRACE32 PowerView GUI
Let’s assume you are writing a PRACTICE script and require the configuration settings from a window, such
as the ITM.state window. A window can contain all sorts of GUI controls: radio options, check boxes, drop-
down lists, input boxes, and so on. To write a script that takes all of these GUI controls into account, follow
these two simple rules:
2. Omit the GUI labels that are all lowercase (here: itm, trace, commands)
Solution 2 is the recommended solution in terms of typing effort and source code maintainability - for you
and your colleagues.
Solution 3 is very useful for frequently-used commands when you are working with the TRACE32
command line.
Commands shown in window captions can easily be modified. This is a TRACE32 feature which is very
useful if you want to add, remove, or change the options or parameters of a command. This feature is also
useful when you are writing a PRACTICE script (*.cmm) and require a command that is already displayed in
a window caption; there is no need to re-type the command.
If you want to reproduce the step-by-step procedure below, use this source code:
You can now modify the command string in the command line. You can also select and copy the
command in the TRACE32 command line and paste the command into a PRACTICE script file
(*.cmm).
3. To deselect the window caption without executing the command again, press the Esc key.
• Command Structure
• Entering Commands
• Command History
• For information about tab completion for commands, see “Shortcuts”, page 123.
Command Structure
Most commands consist of a command word, parameters, and options. The command word consists of
several tokens, which are separated by a dot. Commands are combined into command groups whereby the
first token of the command designates the command group. The other tokens define subcommands.
Device Command Subcommand
B:: Data. dump
List
Print
View
Set
LOAD. Ubrof
Ieee
SAVE. BINary
. .
Break. direct
Set
.
Commands can be preceded by a pre-command. Examples of pre-commands are ChDir (for changing the
directory), WinPrint, or WinExt. Window pre-commands are used to modify the behavior of the window for
a command.
WinPrint generates a hardcopy or a file from a command.
::B::WinPrint.Data.dump 0x1000 /Byte
option
parameter
sub-command
command
pre-command
device prompt
WinExt allows you to detach a window from the TRACE32 main window.
You can detach the window - even if TRACE32 is in MDI window mode.
WinExt.SYStem.state
Commands and functions have a long form and an equivalent short form. The two forms can be used in the
TRACE32 command line and in PRACTICE scripts (*.cmm). In addition, the two forms are not case
sensitive.
Short forms are a time saver when you are working with the TRACE32 command line. In PRACTICE scripts,
the use of short forms is not recommended because short forms tend to make scripts difficult to maintain
later on - for you and your colleagues.
UPPER CASE letters in the TRACE32 application and documentation are just visual cues to indicate the
short forms of commands. You can see the UPPER CASE letters of the short forms in the following places:
• In the online help (For example, choose Help menu > Tree to open the command tree.)
To retrieve the long form of an unfamiliar short form (e.g. for sys.d):
2. Type the short form in the Find Index box, and then press Enter.
The long and short forms of TRACE32 commands are not case sensitive.
Command Line
[Back to Top]
All line-oriented commands are entered to the TRACE32 command line. The command line will
automatically come into focus when an alphanumeric character is entered (except Editor windows or fields).
All line oriented commands are not executed until confirmed by «return» or «[ok]».
Command B::Data.
[ok] dump View Print List Set
Sub-command B::Data.List
[ok] <range> <address> options
NOTE: You can copy and paste up to 300 commands (i.e. 300 lines including
comments) into the command line.
TRACE32 executes them like a PRACTICE script (*.cmm).
Each TRACE32 system has an identifier ending with two colons. The currently selected device is displayed
by the prompt of the command line. System identifiers can be entered prior to each command. When a new
device selector is entered prior to a command, the device selector is only valid for this specific command.
The permanent selection of a device is done by entering the identifier without any command word. The
TRACE32 operating system level can be accessed by entering two colons. Operating system commands
can be executed from any device without using a device identifier.
By clicking inside the command line and then pressing the «up» or «down» arrow keys, you can get back the
previously executed commands. By entering just a keyword before pressing the «up» arrow key, it is possible
to search for lines containing this word.
The command history is displayed with the command HISTory.type. Clicking with the mouse will copy one
line to the command line.
Omitting parameters is only possible if commas are used to separate parameters. Additionally, existing
spaces are simply ignored.
FramePOS 10.,10.,80.,50.,Top,WHITE
FramePOS 10.,10.,,,,WHITE
Wrong: Correct:
0y 1000 0y1000
If SETUP.RADIX. is entered at the command line, the currently used RADIX mode is displayed in the
message line.
B::SETUP.RADIX.
Numerical values are limited to 64-bit values, strings are limited to 4095 characters. Depending on the
particular command or function, the following parameters are valid:
Boolean <operand1><compare_operator><operand2>
or any function returning a boolean expression,
such as the functions TRUE() and FOUND().
Decimal value 1.
123445.
Range 0x10..0x20
10.--30.
0x10--0xed or 10--0ed
'A'--'Z'
String "name"
(with quotation marks) "abc""def" - string literal value: abc"def
Symbol ;<symbol_name>
main
SIEVE
;\<module_name>\<symbol_name>
\MCC\sieve
;\\\<machine_name>\\<program_name>\<module_name>\<symbol_name>
\\\1\\linux\do_mounts\load_ramdisk
\\\Dom0\\linux\do_mounts\load_ramdisk
;\\<program_name>\<empty>\<symbol_name> results in
\\linux\\load_ramdisk ;2 backslashes before the <symbol_name>
;\\\<machine_name>\\<empty>\<empty>\<symbol_name> results in
\\\Dom0\\\\load_ramdisk ;4 backslashes before the <symbol_name>
Symbol Syntax:
<symbol> = \\\<machine_name>
\\[<program_name>]
\[<module_name>]
\<symbol_name>
[\<symbol_name>]...
||
[ [\\<program_name>]
\[<module_name>]\ ]
<symbol_name>
[\<symbol_name>]...
The HLL debugger commands (all commands beginning with Var.) have their
own syntax, which is identical to the syntax of the used high-level language.
An address range consists of a start address, an operator, and an end address. The following operators
between the start and end address are permissible: two dots (..) or two dashes (--) or two plus signs (++).
If the radix mode is set to Classic with the command SETUP.RADIX.Classic, then only two dashes and two
plus signs can be used.
NOTE: The address range always includes the last byte too.
Example 1:
;Address range
Data.List SP:0x0..0xFFF
;Address range
Data.List SP:0x0--0xFFF
Example 2: All four Data.SAVE.Binary commands save 0x30 bytes beginning from D:0x4040
;Address range --
Data.SAVE.Binary file1.bin D:0x4040--0x406F
;Address range ..
Data.SAVE.Binary file2.bin D:0x4040..0x406F
;Offset ++
Data.SAVE.Binary file3.bin D:0x4040++0x2F
;Range computed with offset
Data.SAVE.Binary file4.bin D:0x4040--(0x4040+0x2F)
White spaces before or after operators are interpreted as separators of consecutive expressions.
Values can be linked by operators.
Brackets (main+1)*20
Negation -1 or -1
-0x1 or -10000!
-0y10000
!('a'--'z'||'A'--'Z' or N:('a'--'z':O:'A'--'Z'
||0x20||0x9||'0'--'9') :O:20:O:9:O:'0'--'9')
!0x10 or N:10
0x10<<0x2 or 1000--1fff<<4
result: 0x40
0x1000--0x1fff<<0x4
result: 0x1000--0x1FFF0
"abc"<<3.
result: "abcccc"
"-"<<10.
result: "-----------"
0x10>>2. or 1000--1ffff>>2.
result: 0x04
0x1000--(0x1ffff>>0x2)
result: 0x1000--0x7fff
0x1000--0x1fff>>0x10
result: 0xff0--0x1fef
Concatenation "abc"+"def"
or "abc" "def"
result: "abcdef"
Comparisons sieve>0x1000
sieve<0x1000
sieve==0x1000
sieve!=0x1000 or sieve<>1000
sieve>=0x1000 or sieve=>1000
sieve<=0x1000 or sieve=<1000
Data.Byte(my_char)==(
'a'--'z'||'0'||'1')
result: TRUE() when value is a
lower alphabet character or a
binary digit character “0“ or “1”
Register(PC)!=(P:0x1000||
sYmbol.RANGE(func2)||
P:0x20..P:0x2ff)
The arithmetic hierarchy is similar to that found in most other programming languages, whereby a difference
is made between boolean and arithmetic operators of logical relations. Expressions of the same priority are
evaluated from left to right.
2. -- ++ .. Ranges
The braces '{' and '}' have the same mathematical function as the parentheses '(' and ')', except that the
braces additionally convert a variable expression into a constant expression.
Parameter History
For most parameters (e.g. addresses, file names) the previous parameter entered may be recalled by using
the appropriate softkey. Only one entry is stored for each parameter type.
• File names can be entered without extensions (*.xyz). The valid extension is added automatically
(see SETUP.EXTension).
• Wildcard characters (‘*’ or ‘?’) are supported in file names. In this case, a file selection or folder
picker dialog opens, from which you can select the file you want. See [A] in screenshot below.
• The file type filter can be set to automatically show the desired file types, for example c, cmm,
txt, etc.
In the example below, the file type filter is set to c files, i.e. the other files are temporarily hidden
in the file selection dialog.
A The command you have used to open a window is shown as the window caption.
For MS-DOS/Windows applications, only one working directory is supported. To access a file on another
drive, the full path name must be used. Prepending the ChDir command before the command causes the
new directory to become the current working directory.
Examples:
Data.LOAD *.abs
DIR *.obj
Path Prefixes
Tildes and periods can be used as path prefixes. There are five special path prefixes:
Example:
;step through this PRACTICE script file (*.cmm) in the PSTEP window
PSTEP ~~/demo/arm/compiler/arm/arm9.cmm
NOTE: • In the command line, please use the path prefixes instead of the func-
tions, e.g. CD ~~~~/ instead of OS.PresentPracticeDirectory().
• TRACE32 can handle forward slashes / on all operating systems.
A. Object of Description
The general parameter parser for commands is the TRACE32 parser which is used for command line input,
the batch language PRACTICE, the analyzer programming language, the peripheral description language
and the menu programming. The parser version V2.X was introduced May 1999.
Only the command group “Var” which handles HLL debugging does not use the TRACE32 parser. For
HLL debugging a special programming language aware parser is used. This allows the user to enter HLL
expression like the following example:
Var.View *((long*)p_firstelement->next))
Different HLL parsers are implemented (e.g. for C, C++, JAVA, Ada, ...).
This description is not intended for these kind of special HLL parsers.
Command line:
Parser version V2.00 and higher supports a command parameter syntax that is similar to C
language expressions.
Please be aware, it isn’t a full C expression implementation, which is only available for the command group
“Var” (e.g. Var.view *(&flags+20)).
Restrictions:
1. Not implemented:
2. Different meaning:
++ (prefix and postfix; e.g. i++) will be used for range offset input
e.g. 1234.++1000.,
-- (prefix and postfix; e.g. i--) will be used for range offset input
e.g. 100ns--200ns,
Symbol names will be interpreted always as &symbolname (start address of symbol) and not as
name or value for the complete symbol.
Example:
3. Extensions:
logical XOR (^^), data type boolean, bit constants, bit masks, hex masks, ranges,
addresses, address ranges, times, time ranges can use.. to define a range
(e.g. 123..456)
Parser version V2.00 and higher supports radix (number base) switching.
Depending on the selected radix the written values are interpreted in a different way.
E.g. 123 could be meant as 123 decimal or 123 hexadecimal depending on the used radix mode.
RADIX Modes
The radix mode (number base) is specified by this option. Numbers without type prefix like “0X” or “0Y”
respectively postfix “.” are interpreted in the selected number base.
Classic number base is hex - all input formats for operands and operators permitted
Decimal number base is decimal - old-fashioned operators and operands are
locked
Hex number base is hex - old-fashioned operators and operands are locked - default
If RADIX. is entered in the command line, the currently used RADIX mode is displayed in the state line.
E::RADIX.
radixmode: Hex
To use PRACTICE and analyser programming files written in old-fashioned format please insert the
command RADIX.Classic in the first line of the start up PRACTICE script.
This section describes incompatibilities between radix mode Classic of the parser version 2 and higher
compared to older versions. The parser version V2.X was introduced May 1999.
1. Now bit- and hex masks which start with 0x (e.g. 0xx10) will always be interpreted as a hex
constant (only one ’x’ in value - e.g. 0x23) or hex mask (more than one ’x’ - e.g. 0x2x4). The
result will be a different and wrong constant value or an error message compared to versions <=
V1.90.
2. Now symbol names which begin with the prefix character ’.’ will generate an error message. This
could be avoided if:
- the whole symbol name is put into quotation marks (e.g ’.start’)
- the automatic symbol prefix is set to ’.’ with the command sYmbol.PREFIX . Then the symbol
name has to be entered without prefix (e.g. start).
Restriction:
Not all operand formats could be used in all radix modes. Please refer to the Operand Format Table.
Please use the table below for converting the old-fashioned data type format into the new-fashioned formats.
Command line:
Not all operators could be used in all radix modes. Please refer the Operand Format Table.
! logical NOT X X X
&& logical AND X X X
^^ logical XOR X X X
|| logical OR X X X
N: logical NOT X
:A: logical AND X
:X: logical XOR X
:O: logical OR X
~ binary NOT X X X
& binary AND X X X
^ binary XOR X X X
| binary OR X X X
N# binary NOT X
#A# binary AND X
#X# binary XOR X
#O# binary OR X
- negation or minus X X X
+ plus X X X
* multiplication X X X
/ division X X X
% modulo (reminder) X X X
<< shift left X X X
>> shift right X X X
Please use the following table to convert old-fashioned operators into the new format.
N# ~ bitwise negation
#O# | bitwise or
N: ! logical negation
:O: || logical or
Windows
[Back to Top]
All outputs of the TRACE32 system are displayed in windows. Usually, all windows display current data
because they are updated periodically.
Windows can be closed by the esc key. This allows to temporarily display some information and quickly
close the window again.
G F
H
A Window manager menu: Clicking the icon lets you open the window manager menu.
B Window caption: It displays the TRACE32 command that was used to open the window.
H Scale area: Additional information about lines, such as line numbers, record numbers, addresses,
breakpoints, bookmarks, etc.
The command you have used to open a window is shown as the window caption. The parameters and
options are also included in the window caption.
In addition, you can easily modify the window caption with a simple mouse-click. For more information, refer
to “Modifying and Re-using Commands Shown In Window Captions”.
Example: This script allows you to reproduce the above Data.DRAWFFT window:
Local Buttons
[Back to Top]
Many TRACE32 windows have built-in local buttons [A]. In addition, you can extend TRACE32 windows with
user-defined local buttons [B].
A B
For an example of how to program your own local buttons in TRACE32 windows, see the BUTTONS
command.
You can extend the built-in local popup menus of TRACE32 windows with your own local popup menus and
menu items, as shown in this example of a List.auto window:
B C
There are two ways to add your own menu items to popup menus in TRACE32 windows:
• You can assign your own menu items to the command short form of a TRACE32 window, e.g. to
the command short form L. for the List.auto window. As a result, your own menu items are only
visible in the List.auto window, but not in the List.Mix nor the List.Asm window nor any other
window.
For information about command short forms, see “Long Form and Short Form of Commands and
Functions”, page 29.
• You can assign your own menu items to the built-in popup menus Program Address and
Variable. As a result, your own menu items are visible in all TRACE32 windows that have these
popup menus, such as the following windows: List.auto, List.Mix, List.Asm, Data.dump,
Var.Watch, etc.
For examples of how to programmatically extend a TRACE32 window with your own menu items, refer to the
menu programming command MENU.
Most windows that output data have slider controls. By dragging the slider controls, you can:
1. Open and close legends, e.g. the color legends of charts in ProfileChart windows, see [A].
3. Display new columns after modifying a command on the fly. In example [C], the Data.List
command is modified by adding ISTAT. To display the new columns, drag the slider control to the
right.
For information about how to modify a command displayed in a window caption, see “Modifying and
Re-using Commands Shown In Window Captions”.
B
F
Basic Operations
All basic operations (e.g. move window, iconize window) are fully compatible with the host operating system.
You can place visible bookmarks and one hidden bookmark in TRACE32 windows that output data, e.g. in
Trace.List or List windows. Using bookmarks, you can navigate between bookmarked locations.
Visible bookmarks View menu > Bookmarks opens the Bookmark.List window. The steps
below describe how to place visible bookmarks. For more information
about visible bookmarks and the difference between the bookmark colors
yellow and green, see BookMark.
Hidden bookmark Recall Position returns to the position you have previously saved with
Store Position. The steps below describe how to place a hidden
bookmark.
Current Selection Goto Selection returns you to the currently selected position or last
active view (in case the selection is no longer active).
1. Choose View menu > e.g. Trace List to open a Trace.List window.
2. Right-click where you want to place a visible bookmark, and then select Toggle Bookmark.
- Scroll somewhere else within the same window, and then place another bookmark.
• Double-click a bookmark in the BookMark.List window. A new window opens, displaying the
bookmark location.
Trace.List /Track
4. To return to the last stored position, choose Edit menu > Recall Position.
Getting Information
If the left mouse button is held down, additional information will be displayed concerning the field addressed
by the cursor position.
Cursor position
A double click to a field with the left mouse key will invoke a change command such as «Data.Set» or
«Register.Set».
Cursor position
Generated command
The windows in TRACE32 provide a window manager menu with special commands. For a short description
of the these commands, see below.
• Windows GUI: To access the window manager menu, click the icon in the top left corner of a
window:
• Motif GUI: To access the window manager menu, right-click the window manager button. The
window manager button is located on the right upper or right lower corner of a Motif window.
Command Line Inserts the window caption (= command) in the command line.
• On a Windows GUI, right-click the window caption.
• On a Motif GUI, click the window manager button, and then select
Command line.
You can now modify and run the command again or re-use it in a
PRACTICE script (*.cmm).
See also “Window Captions - What makes them special in TRACE32”.
Freeze Freezes the window contents. Executing the function again will change
back to a cyclic update of the window.
Small, Medium, Changes the size of the font for the window. Switching to Large Font is
Large Font very useful in presentations before large audiences.
See also WinSmall, WinMid, WinLarge.
Transparent Makes the window transparent (only available for MWI interface of
Windows 2000 and later). These kind of external windows will allow
windows in the background to shimmer through.
See also WinTrans.
• Print prints only the visible window contents to the selected output
medium
• Print all behaves within a TRACE32 window as if you scroll to the
top of the terminal buffer and choose Print, then scroll down one
visible terminal page and do the next Print, and so on.
To Clipboard To Clipboard copies the visible window contents as text to the clipboard.
See also PRinTer.
To Clipboard all To Clipboard All behaves within a TRACE32 window as if you scroll to
the top of the terminal buffer and choose To Clipboard, then scroll down
one visible terminal page and do the next To Clipboard, and so on.
Window Screen- Captures a screenshot of the active window and opens the Save Window
shot to File Screenshot dialog. Enter file name and select file type (PNG, GIF etc.)
See also SCreenShot.
Window Screen- Copies a screenshot of the visible part of the window to the clipboard.
shot to Clipboard
Store Command Saves the window caption (= command) as a PRACTICE script (*.cmm).
The position, size, and name of the window as well as column widths are
also included in the script.
See also STOre.
The size and position of a window generated by a command can be predefined by the command WinPOS.
A name can be specified for this window. This command in mainly used in PRACTICE scripts (*.cmm),
which were generated by the STOre command.
Example:
Freezing a Window
A window is frozen by choosing the Freeze command of the window manager menu. A frozen window is no
longer updated with the current state. Therefore, it can no longer be scrolled, because the required data are
missing. The pre-command WinFreeze will generate a frozen window from the command line.
Erasing a Window
Windows are deleted like any other window on the host. All windows can be deleted without loss of data, e.g.
when using the editor. The command WinCLEAR without parameters deletes all windows on the current
window page. All window pages are deleted by the WinPAGE.RESet command.
In the case of most windows with a finite size, the relationship between the displayed section and the entire
size of the window is represented in the scroll bars located at the borders of the window. Infinite windows,
like a hex dump, have no moving scroll bar.
To print a hardcopy of the active window, select the Print command from the window manager menu. Larger
areas can be printed by adding the pre-command WinPrint.
Printers must be configured in the config file (default config.t32). The installation of printers is described in
the INSTALLATION GUIDE.
The PRinTer commands can be used to redirect and save window contents to a file. The output file can
either contain one printout or combine multiple printouts in one file. The output format of the file can be either
a plain ASCII format for postprocessing or POSTSCRIPT for use in document processing tools.
PRinTer.OPEN Open file and re-route multiple printer outputs to this file
PRinTer.FILE Define file for single printer output and select output
format for file
PRinTer.CLOSE Close file after multiple printer outputs
WinPrint Print one window (full size) to file
PRinTer.EXPORT Export CSV-formatted printer output to file
Example: The contents of the Register.view window are saved to file, which is then opened in the TYPE
window. The path prefix ~~~ expands to the temporary directory of TRACE32.
Windows with some special behavior can be created by the following commands:
Examples:
WinBack.AREA error
WinFreeze.Data.dump 0x1000
WinResist.PEDIT test
The text-based functions are available in all windows. They allow searching for text and control the display
excerpt of the window.
The Find function can be accessed from the Edit menu window (Windows) or from the window manager
menu (Motif). This example shows that you can search for text in a peripherals file (PER.view window).
Selection Service
The selection service allows 'drag and drop' and 'cut and paste' features between applications. Drag and
drop is started by pressing the left mouse button on a selection and then moving the mouse. Cut and Paste
can be done either with the Copy command in the window manager menu or by using the Edit menu or the
appropriate accelerator key (i.e. ^C on Windows).
By default, all information is displayed in the message line. To get a more terminal-like output and input, you
can create multiple named message areas and display the information output to the various message areas
in AREA windows. Information is printed to the AREA windows with the PRINT command. Interactive
keyboard input on an AREA window can be made with the ENTER command.
• Error messages and warnings will always be displayed in the default AREA window A000.
A000 is the name of the default message area. See [A].
• User-defined messages can be output to the same default AREA window A000, or to extra
AREA windows having user-defined names, see [B].
A B
Windows may be coupled by a global reference indicator, generated either by the mouse position within a
window or by the result of a search or goto operation. The global reference indicator can be one of the
following:
Window tracking is possible between different types of windows, like source text, analyzer listings or timing
diagrams. Every window which is set to track mode by the option /Track will follow the global reference
indicator.
Some windows are temporarily set to tracking when search functions are executed (e.g. the analyzer list
window during a find operation).
Example 1 - Tracking in two text windows using the mouse: The cursor position of the mouse pointer [A]
can be tracked in the other window [B], provided path and file name are identical in both windows.
B Tracking pointer
B In the List.auto window, the corresponding position is highlighted because of the use of the Track
option.
A By clicking inside the Trace.PROfileChart.sYmbol window, a fine blue graticule marks the cursor
position. A tooltip displays more information about the selected position, including the absolute time,
here 5.588s.
B A the same time, a fine blue vertical line highlights the corresponding position in the
Trace.Chart.sYmbol window thanks to the Track option.
C The corresponding record is also highlighted in the Trace.List window, again thanks to the Track
option.
TRACE32 provides standard operating system commands for fast execution of file and folder operations.
The commands are implemented in the TRACE32 software, they don’t execute operating system
commands on the host.
For information about wildcard characters and path prefixes supported with the file and folder handling
commands, see “File Names”, page 44 and “Path Prefixes”, page 45.
TRACE32 provides a number of commands for writing data from TRACE32 to file and reading data from
files. The following list is a selection of commands:
You can encrypt PRACTICE script files (*.cmm) and PER files (*.per) in TRACE32 with user-defined keys.
This encryption is useful if you do not want other people to view your source code in human readable form.
Other users can execute any encrypted file (*.cmm or *.per) in TRACE32, provided the encrypted file is
unlocked with the same key you have defined for this file.
NOTE: With the correct key, an encrypted file can be executed in TRACE32, but the
source code itself remains encrypted.
Operations of the host system may be executed directly on the TRACE32 command line.
Example 1: The TRACE32 commands and functions are formatted in bold. The host command is formatted
in regular font.
LOCAL &files
&files=OS.FILE.ABSPATH(~~/demo/arm/)+"*.cmm"
Example 2: This script line opens a *.csv file in your favorite spreadsheet application.
OS.OPEN ~~/demo/etc/trace/export.taskevents/temp.csv
You can send every window or the complete screen from TRACE32 to:
• The clipboard
• A file
For each output medium, you can define the format, e.g. font, font size, ASCII, enhanced ASCII, XML, or a
more complex format, like POSTSCRIPT or WORDSTAR. When printing to file, you can specify path and file
name or browse for an existing file.
You have the following options to send information from TRACE32 to a printer or save TRACE32 windows to
file:
• Choose File menu > Window Screenshot to File to capture the TRACE32 main window and all
other TRACE32 windows displayed within the TRACE32 main window [A].
• Click the top left icon in any window to open the window manager menu [B].
A
C
D
- The Print option prints just the visible contents of the active window [C].
- The Print all option prints more than the visible contents of the active window [D].
• Use the TRACE32 command line and PRACTICE scripts (*.cmm); commands for printing and
saving TRACE32 windows to file are listed in the table below.
• Extra commands are provided for saving the code coverage database and the instruction
statistics database to XML files.
Examples:
Many system configuration options are set with the SETUP command. For more information refer to the
“PowerView Command Reference” (ide_ref.pdf) and the manual of the devices.
You can log the command inputs and the call hierarchy of PRACTICE scripts (*.cmm) with the commands
listed below.
The logging of the command input generates a file which has the structure of a PRACTICE script (*.cmm).
This file can be edited and started with the DO command. The command log includes all commands entered
in the TRACE32 command line and all mouse commands. Every operation on TRACE32 can be referred to
a single-line command. The mouse click to a screen-based button will be stored as a single line command.
Command inputs which lead to a syntax error are not logged.
To generate a command log, the log file must be opened first. Then all executed commands are written to
this file. There is no limitation by an internal buffer size. The file can be viewed in a window, while it is being
filled. By closing the file the logging process is terminated. Only one file may be opened at the same time.
The logging may be interrupted temporarily by an OFF and ON sub-command.
Example:
The DIALOG command group and its dialog elements, such as buttons and edit boxes, are used to create
and display custom dialog boxes. They are normally used to increase the flexibility of PRACTICE script files
by providing user selectable actions or requesting information from the user, e.g. actual firmware file name
for the flash process.
In this section:
• Comments in Dialogs
For information about built-in and user-defined icons, see “Built-in Icons and Icon Library”, page 118.
The syntax of a dialog definition is line oriented. Blanks and empty lines can be inserted to structure and
indent the dialog definition. Single and multi-line programs can be assigned to dialog elements.
Single-line scripts are enclosed in straight quotation marks "..."; multi-line scripts are enclosed in
parentheses (...).
The opening parenthesis of a multi-line script must immediately follow after a dialog element. If an empty line
is erroneously inserted after a dialog element, the TRACE32 message bar displays the error message
nesting block open missing. This error message is displayed when you try to execute the defective
dialog.
1. Embedded in PRACTICE script files with the extension *.cmm. The dialog definition is placed in
parentheses after the DIALOG command. See example 1.
2. In extra files with the extension *.dlg. They are called by the DIALOG.view command.
See example 2.
Example 1: The dialog is embedded in a PRACTICE script file with the extension *.cmm:
Comment lines start with a semicolon and must be placed in separate lines.
DIALOG.view DIALOG.view
( (
;your comment ICON ":objects" ;your comment
ICON ":objects" TEXT "Hello World!" ;your comment
;your comment )
TEXT "Hello World!"
)
If a comment is erroneously placed in the same line as a dialog element, the TRACE32 message bar
displays the error message no more arguments expected. This error message is displayed when you
try to execute the defective dialog.
Using the DIALOG command group you can (a) control your custom dialogs, (b) control the behavior of an
individual dialog element on a custom dialog, (c) interact with the file system of the operating system (OS),
and (d) display OS message boxes.
DIALOG.DIR Display a folder picker dialog and pass the return value of the
selected folder to your PRACTICE script (*.cmm).
DIALOG.File Open an OS file dialog and pass the name of the selected file to your
PRACTICE script (*.cmm).
DIALOG.SetDIR Browse for folder. The selected folder an be displayed in the EDIT
box of your custom dialog.
DIALOG.SetFile Open an OS file dialog and pass the name of the selected file to a
custom dialog. The selected file can be displayed in the EDIT box of
your custom dialog.
DIALOG.MESSAGE Create dialog box with an information icon (OK button only)
DIALOG.OK Create dialog box with an exclamation mark (OK button only)
DIALOG.YESNO Create dialog box with YES and NO buttons
Dialog elements allow you to place edit boxes, buttons, drop-down lists, etc. on your custom dialogs.
TRACE32 provides the following dialog elements for programming custom dialogs:
Dialog elements, such as an EDIT box or a LISTBOX, can have a user-defined label in front of the
command. Labels must start in the first column and are always followed by a colon. Together with the
DIALOG.STRing() or DIALOG.STRing2() function, a label can be used to access the return value of a
dialog element.
&retVal
&retVal=DIALOG.STRing(<label>)
POSX 1. 5.
DEFBUTTON "OK" "CONTinue"
)
STOP ;wait for the user's response to the dialog
DIALOG.END
DIALOG.MESSAGE "The EDIT box contains the address &retVal"
The return values of built-in dialog boxes, e.g. the DIALOG.YESNO message box or the DIALOG.DIR folder
picker dialog, can be accessed with the ENTRY command. Here is an example of a simple “yesno” input:
ENTRY &<practice_macro>
IF !&result
ENDDO
ELSE
(
;your code...
)
Two PRACTICE macros, highlighted in blue, are used in the following dialog definition. For activating
PRACTICE macro expansion inside a DIALOG definition, the following prerequisites have to be fulfilled:
DIALOG.view
(&
HEADER "&header_text"
POS 1. 1. 30.
LAB: EDIT "&default_flash_firmware_file" ""
POS 31. 1. 5.
BUTTON "File"
(
DIALOG.SetFile LAB *.bin
)
POS 1. 3. 5.
DEFBUTTON "OK" "CONTinue"
)
STOP
&file=DIALOG.STRing(LAB)
PRINT "selected firmware file: &file"
PRINT "for flash:"+FORMAT.Decimal(1,&flashno)
DIALOG.END
ENDDO
In this section:
• Context-Sensitive Help
• Context-sensitive help
You can call up the HELP window via the help key. On Windows, the help key is F1. The HELP window then
displays information about the current context, with the current context being determined by the cursor
position.
• To get context-sensitive help on a window or dialog, click the window or dialog, and then press
F1.
• To get context-sensitive help for a command, type the command at the TRACE32 command line,
append an empty space, and then press F1.
• To get context-sensitive help on an individual item such as a button, check box, or menu item,
click the context help button on the toolbar (HELP.PICK).
• The HELP window is used to navigate through the help files and to search for any topic.
Your favorite PDF viewer: It takes only a few mouse-clicks to configure the TRACE32 help system to relay
context-sensitive help calls to your favorite PDF viewer.
HELP window
For a step-by-step procedure, see “Configure the Help System”, page 94.
Alternate PDF viewers: TRACE32 relays context-sensitive help calls to a batch file, which then calls the
desired topic in the PDF file. The script is a *.bat file under Windows, or an*.sh file under Linux and MacOS.
HELP window
Acrobat Reader: TRACE32 communicates with the TRACE32 plug-in to jump directly to the desired topic in
the PDF file.
This section describes how to proceed after you have successfully installed the TRACE32 software and the
help system.
• The file help.t32, which has to be in the system path (e.g. c:\t32), enables all help functions in
TRACE32, like context-sensitive help and full-text search. When TRACE32 is started, the file
help.t32 is loaded. If not, you receive an error message, saying that the help.t32 file cannot be
loaded.
• The PDF help files are in the subfolder pdf of the TRACE32 system path (e.g. c:\t32\pdf). This
path can be changed in the config file.
• Configure the TRACE32 help system with a few mouse-clicks to display the PDF help files in your
favorite PDF viewer; see step-by-step procedure below.
1. Choose Help menu > Setup PDF Viewer, or at the TRACE32 command line, type:
SETUP.PDFViewer
- Click browse if you want to user a PDF viewer other than the default, e.g. a portable PDF
viewer.
3. Click test to verify that the selected PDF viewer can be started from within TRACE32.
4. Click the remaining three test buttons to verify that your selected PDF viewer passes the
following basic tests:
- The PDF viewer jumps to a named destination on another page in the same test document.
- The PDF viewer prints our test document or opens the Print dialog.
5. If the selected PDF viewer has passed all tests, click Ok.
6. Optional test - online help call via the TRACE32 command line:
NOTE: You do not need to re-start TRACE32 because your settings take immediate
effect.
- Tabbed document view for files opened via the command line.
- Command line argument for passing file names to the PDF viewer (e.g. debugger_arm.pdf).
- Command line argument for passing named destinations to the PDF viewer (e.g. line IDs).
- One and the same PDF viewer instance allows an unlimited number of context-sensitive jumps
to named destinations within one and the same PDF file instance.
- A Back button that allows you to re-trace your navigation steps across PDF documents, and
not just the navigation steps within the same PDF document.
2. Install the latest version of the PDF viewer, in which you want to display the files of the TRACE32
help system.
In this section:
NOTE: Unsaved help bookmarks are only available during the current TRACE32
session.
If you want to re-use your help bookmarks in future sessions, remember to store
your help bookmarks. See “Store and Load Help Bookmarks Automatically”,
page 97.
- The help bookmark itself is added to the Bookmark tab of the HELP window.
Use the steps described below if you want to transfer your bookmarks from one computer to another
computer.
3. Click Open to load the help bookmarks into the Bookmark tab.
NOTE: Unsaved help bookmarks are only available during the current TRACE32
session.
1. Close TRACE32.
AutoSTOre , HELP
If the AutoSTOre command is already used in your start-up script, then add just the keyword HELP
as shown in the example below.
3. Restart TRACE32.
The help bookmarks you create are now automatically stored when you close TRACE32. In addition,
the bookmarks are automatically loaded back into the Bookmark tab of the HELP window when you
start TRACE32 again.
This script line returns the path and file name where TRACE32 auto-stores your help bookmarks:
PRINT VERSION.ENVironment(AUTOSTORE)
Verify if the file help.t32 is in the TRACE32 system path (by default c:\t32), and if you have rights to read this
file.
Cause: The TRACE32 help system is at least 2 software releases older than the TRACE32 executable
(t32m<architecture>.exe).
Remedy:
1. Open the VERSION.ENVironment window, and then make a note of the paths shown in the lines
SYS: and HELP:
2. Close TRACE32.
3. Download the zipped help system of the most recent TRACE32 software release from
www.lauterbach.com/manual.html
6. Copy the help.t32 file to the SYS: folder, i.e. the TRACE32 system directory.
The PDF files of the TRACE32 help system are installed to the TRACE32 system path, subfolder pdf. But
sometimes it may be necessary to change this path - for example, if you want different TRACE32
installations to share the same HELP= path.
There are two possibilities to change the installation path for the PDF files:
OS=
SYS=c:\t32 ; system directory for TRACE32
TMP=c:\tmp ; temporary directory for TRACE32
HELP=c:\t32\pdf ; help directory for TRACE32 (default: c:\t32\pdf)
NOTE: The help directory for the PDF files can be a local folder or a network folder, e.g.
g:\trace32-help-files\pdf
The file help.t32 must reside in the system directory. A network folder is not
supported.
Winhelp Compatibility
To provide backward compatibility, the main Winhelp functions will still work.
On unix, additionally the environment variable “HHHOME” has to be set to the directory for hyperhelp (used
for displaying the online manual).
Winhelp Files:
The installation of the help system is normally done by the software installation program, but here the
complete online help installation is described if any problem occurred:
2. TRACE32 help loads the file help.t32, which has to be in the system path, e.g. C:\T32\
Only this file enables all help functions in TRACE32, like context-sensitive help and full-text
search.
3. Acrobat Reader should be installed on the computer, and to use the TRACE32 plug-in, the
version has to be 4.0 or higher.
4. Acrobat loads the TRACE32 plug-in (trace32.api) which has to be in the “plug_ins” directory. If
the plug-in is loaded correctly, you can find the menu entry About TRACE32 in the Help menu.
5. The PDF help files are in the TRACE32 system path in the subfolder “pdf”, e.g. “C:\T32\pdf”. This
path can be changed in the config file.
The environment variable “ACROBAT_PATH” has to be set to the path where acroread is installed,
Use the setenv command or add it to your .profile - file.
>setenv ACROBAT_PATH=/opt/Acrobat5
>cp cdrom/bin/suns/trace32.api
/opt/Acrobat5/Reader/sparcsol/plug_ins/
By default, the help system of TRACE32 uses Adobe Reader as PDF viewer. But, as of the release in
November 2014, the help system of TRACE32 supports any PDF viewer that can handle file names and
named destinations.
Please consult the help of the PDF viewer you want to use about how to pass file name and named
destination as command line arguments to that PDF viewer; for some examples, see below.
The following step-by-step procedure assumes that you have installed TRACE32 in the default system
directory c:\t32 on Windows, or $HOME/t32 on Linux.
1. Close TRACE32.
export T32PDFVIEWER=$HOME/t32/_pdfviewer.sh
4. To make the new OS environment variable and its value available to TRACE32, log out of your
Windows or Linux session, and then log in again.
6. For Linux users: Make sure that you have execute permission for the script file, e.g.
chmod +x _pdfviewer.sh
7. Enter a script which calls the PDF viewer you want to use and passes file names and named
destinations as arguments from TRACE32 to your PDF viewer:
8. Start TRACE32.
9. To test the alternate online help call, type the following command at the TRACE32 command line:
List.Mix
10. Add a space, and then press F1. Result: TRACE32 help system displays the description of the
List.Mix command in your favorite PDF viewer.
The argument %1 or ${1} in the script examples below takes the pdf file names, the argument %3 or ${3}
takes the named destinations within a pdf file.
PDF-XChange Viewer:
@echo off
set reader="C:\Program Files\Tracker Software\PDF Viewer\PDFXCview.exe"
start "Launch PDF" %reader% /A nameddest=%3 %1
SumatraPDF:
@echo off
start "Launch PDF" "C:\T32\bin\SumatraPDF.exe" ^
%1 ^
-nameddest %3 ^
-reuse-instance
The caret sign ^ serves as a line continuation character in Windows batch files (*.bat). White space
characters after ^ are NOT permissible.
Foxit Reader:
@echo off
set reader="C:\Program Files (x86)\Foxit Software\Foxit Reader\Foxit
Reader.exe"
start "Launch PDF" %reader% /A "nameddest=%3" %1
@echo off
start acrobat.exe /n /A "nameddest=%3" %1
evince (as of version 3.x; earlier versions do not support the -n option):
#!/bin/bash
/usr/bin/evince ${1} -n ${3} &
evince or xpdf or Firefox: This Linux shell script displays the pdf of the TRACE32 help system in the first
available pdf viewer:
#!/bin/bash
evince "${1}" -n ${3} || \
xpdf -remote t32xpdf -raise "${1}" +${3} || \
firefox file:///${1}#nameddest=${3} &
Verify if help.t32 is in TRACE32 system path (by default c:\t32), and if you have rights to read this file.
Alternate Call for Adobe Reader [only Software Releases 09/2014, 02/2015, and 09/2015]
By default, the trace32.api file relays the call for a particular help topic from TRACE32 to Adobe Reader.
However, if you encounter problems after updating your Adobe Reader version, you can bypass the
trace32.api file with the code shown below. For a step-by-step procedure, see “Previous Releases -
Configuring an Alternate PDF Viewer”, page 100.
Adobe Reader:
@echo off
start acrord32.exe /n /A "nameddest=%3" "%1"
Reinstall Acrobat Reader, verify if everybody can write to Acrobat subfolder “plug_ins” – if not, copy
“trace32.api” manually to this folder
Acrobat opens File, but does not jump to the right Chapter
Verify if there is a Acrobat menu entry “Help->About plug-ins->About Trace 32” – if not copy “trace32.api” to
Acrobat subfolder “plug_ins”
Warning “Communication with Acrobat Reader failed” always when using the Help
Warning “Communication with Acrobat Reader failed” only at first Acrobat Startup
Good trick to improve Acrobat startup time is to delete never needed plug_ins:
then create empty “plug_ins” folder and copy there only “trace32.api” and other really needed plug_ins
This message is displayed if the Acrobat installation could not be found on windows systems. Download the
Acrobat Reader software from www.adobe.com and install it.
If you installed Acrobat already and this message is displayed anyway, check if one of the following registry
entries exist (execute regedit.exe):
If none of these keys exist, remove your current installation and install it again. You can also start Acrobat
manually before using the online help and ignore the error message.
If you have the rights and if you are skilled to change registry entries, you can add it manually. But you have
to be sure what you are doing - changing registry entries can affect the whole behavior of the Windows
system!
Add the key “AcroRd32.exe” as shown below, change the Acrobat installation where it is installed on your
system.
Check the registry entries as described above - check if the (Standard) entry is really the correct installation
path
Check if environment variable “ACROBAT_PATH” is set correctly to the Acrobat installation path.
The InterCom system allows the exchange of data between different TRACE32 systems. The exchange is
based on UDP. The destination system is defined by a port number of a UDP port used by this TRACE32
system. This requires an entry in the 'config.t32' file of any participating TRACE32 system:
IC=NETASSIST
PORT=20001
NAME=firstInstance
...
NOTE: If multiple TRACE32 systems are used on one host, the port numbers must differ!
A good way to familiarize yourself with the InterCom command group is to start with the example below.
;select the 2nd CortexA9MPCore core of OMAP4430 for the 2nd instance
InterCom.execute secondInst SYStem.CPU OMAP4430
InterCom.execute secondInst CORE.ASSIGN 2.
InterCom.execute secondInst SYStem.CONFIG.CORE 2. 1.
InterCom.execute ALL Go
The VERSION.view window provides information about the TRACE32 software version and licenses as well
as TRACE32 hardware and environment information.
1. To open the VERSION.view window, choose Help menu > About TRACE32.
For more information on finding serial numbers, see “Serial Numbers” in Software Updates, page 12
(updates.pdf).
The following commands are described in the “PowerView Command Reference” (ide_ref.pdf).
This chapter describes how TRACE32 PowerView supports editing text files.
Built-in Editors
1. OS-Native Editor: This editor has a limited feature set as provided by the GUI framework.
2. PowerView Editor: Advanced editor with syntax highlighting and context specific features.
OS-Native Editor
The features of this editor are limited to the features provided by the GUI framework / OS API that provides
the edit control. There are no configurable options for highlighting, indentation etc. The are keyboard
shortcuts available as provided by the GUI framework (Windows API, Qt, MOTIF).
PowerView Editor
This editor has a variety of features that are available on all supported host operating systems:
• Nesting-aware editing
• Highlighting of matching block, braces, current cursor line, keywords and matching selection
• Individual settings for tab size, indentation size and type for several file types (PRACTICE, C,
Python, ASM Text and TRACE32 trigger languages.
• Context sensitive context menus (e.g. Help for command / function, Goto label)
For a detailed description of available configuration options see the SETUP.EDITOR command group.
Below is an overview of the context sensitive context menu features The context menu is opened by right-
click on the item of interest.
Keyboard Shortcuts
CTRL+Y Redo
CTRL+Z Undo
Automatic Formatting
Automatic formatting is available for PRACTICE (PEDIT), Menu (MENU.Program) and Peripheral View
(PER.Program) and re-indents the selected file or block.
Automatic formatting is available from context menu and also from command line with additional features
like bringing all commands into the correct camel cased form. See EDIT.FORMAT for more information.
Unformatted block: Formatted block:
TRACE32 includes editor windows that are specific for a certain programming language:
C
Editor for
PRACTICE scripts
(special-purpose
A B
editor)
In addition to, or as an alternative to the TRACE32 editors, you can configure an external editor for use in
TRACE32 using the SETUP.EDITEXT command. For more information about the use of external editors in
TRACE32, see “External Editors”, page 114.
General-purpose editor:
EDIT Primarily used to create and edit text files, e.g. *.txt, *.log,
*.dat, etc.
Special-purpose editors:
If your TRACE32 tool provides a trigger language for your processor architecture or timing analyzers, a
trigger programming editor is provided:
Examples
Below is an overview of the Edit menu tools displayed in the menu bar.
External Editors
In addition to, or as an alternative to the built-in TRACE32 editors, you can configure an external editor for
use in TRACE32. This allows you to take advantage of the combined features of both (a) the respective built-
in TRACE32 editor you have selected and (b) the external editor - while you are working on the same file at
the same time in both editors.
Syntax highlighting files for external editors reside under ~~/demo/practice/syntaxhighlighting and are
available for the following external editors:
• TextPad
• UltraEdit
• Kate
• Notepad++
Before configuring an external editor for use in TRACE32, you should consult the online help of your favorite
external editor for information about (a) syntax highlighting files or syntax definition files and (b) command
line parameters for file name and line number.
Background information is also provided in the headers of the syntax files and in the readme.txt residing
under ~~/demo/practice/syntaxhighlighting
2. Copy the required syntax highlighting file, and paste it into the folder where your external editor
expects syntax highlighting files.
The remaining steps for registering a syntax highlighting file depend on the external editor.
In TextPad, for example, you need to create a new document class and assign the TRACE32 file
types *.cmm, *.men, and *.dlg to this new document class.
3. Look up the examples and description of the following TRACE32 command. They tell you how to
replace the TRACE32 editor call with an external editor call.
The interaction between a TRACE32 editor and an external editor allows you to take advantage of the
combined features of both editors. For example, after saving your PRACTICE script in the external editor,
you can immediately execute and/or debug your script in TRACE32.
Prerequisite:
• You have configured an external editor for use in TRACE32. If not, then the EDIT command will
continue to open the TRACE32 EDIT window instead of your external editor.
1. Run the PSTEP and EDIT commands for the same PRACTICE script file. For example:
2. In the external editor, type your PRACTICE script. Let’s use this very simple demo script:
ENDDO
3. In TRACE32, right-click the window caption of the PSTEP window, and then press Enter.
- The saved PRACTICE script file is loaded into the PSTEP window.
- You are now ready to step through your script line by line (STEP button), execute it (Continue
button), set PRACTICE breakpoints (see PBREAK).
NOTE: If your script starts with a WinCLEAR command, you can prevent the PSTEP
window from being erased by opening it with the WinResist pre-command.
TRACE32 allows you to customize the user interface and add icons to your customized user interface. This
chapter informs you about the supported icon types, tells you where you can add icons, and describes step-
by-step how you can create your own icons.
• Built-in icons
• User-defined icons
Both icon types can be added to the following dialog, menu, and toolbar elements:
You can choose built-in icons from the icon library. For more information, see “Built-in Icons and Icon
Library”, page 118.
You can create your own, user-defined icons with the TRACE32 bitmap editor. For step-by-step instructions,
see “Inserting a Placeholder for User-Defined Icons”, page 119.
TRACE32 provides a number of built-in icons. You can easily include these built-in icons in icon-capable
dialog, menu, and toolbar elements. Using the TRACE32 icon library, you can:
1. Choose Misc menu > Tools > Display internal icon library.
DO "~~/demo/menu/internal_icons.cmm"
DIALOG.view
(; Assigns the icon to BUTTON
BUTTON "[:var]Any text" "Var.View"
)
STOP
DIALOG.END
To try this script, simply copy it to a test.cmm file, and then run it in TRACE32 (See “How to...”).
Icon-capable dialog, menu, and toolbar elements require an icon placeholder in the form of two square
brackets [].
1. In TRACE32, open the file where you want to add an icon, e.g.:
Examples:
3. Click Save.
After inserting the icon placeholders (see previous section), you can open the file in the BITMAPEDIT
window and draw an icon on the canvas.
A A
B
E
A
C Assign a color to a mouse button by clicking a color in the palette with that mouse button.
D The source code of an icon is inserted between the corresponding icon placeholder [] while you are
drawing the icon.
E Up and down arrow buttons let you navigate from one icon or icon placeholder to the next.
To draw an icon:
- The first editor window contains the source code of your project.
- The second editor window, i.e. the BITMATEDIT window, provides the icon drawing tools.
Example:
2. In the BITMAPEDIT window, under Bitmap, click the up and down arrow to navigate to the icon
placeholder you want [E].
3. From the color palette, choose the colors you want, and draw an icon.
5. Click in the window of the first editor: the PEDIT window or the MENU.Program window or the
DIALOG.Program window. You are prompted to reload the file.
You are now ready to execute the file to view the finished icon.
For more information about the configuration of the interface, see “TRACE32 Installation Guide”
(installation.pdf). Commands are described in the “PowerView Command Reference” (ide_ref.pdf).
ALT+ Spacebar
• If the TRACE32 window mode is MDI, then the ALT+spacebar shortcut works only for windows
preceded by the WinExt pre-command, e.g. WinExt.Register.view or WinExt.List
Alt+F4
Ctrl+A
Ctrl+C
Ctrl+F
• Opens the Find dialog window. TRACE32 searches in the active window.
Ctrl+G
Ctrl+Left
Ctrl+H
Ctrl+F4
Closes the active window (i.e. windows without the WinExt. pre-command).
See also esc key.
Ctrl+F6
Selects the next window (i.e. windows without the WinExt. pre-command).
Ctrl+S
Ctrl+V
Ctrl+X
Ctrl+Y
Ctrl+Z
esc
Closes the active window - regardless of whether the active window is preceded by the WinExt. pre-
command or not.
F1
• To get context-sensitive help on a window or dialog, click the window or dialog, and then press
F1.
• To get context-sensitive help for a command, type the command at the command line, append an
empty space, and then press F1.
F2 Single step
Shift+Tab
2. Type the first few letters of the PRACTICE function you want, e.g. ad
3. Press Tab repeatedly to cycle through the list of matching PRACTICE functions.
2. Press Tab repeatedly to cycle through the list of recently used symbols.
• At the command line, type for example symb and then press Tab.
TRACE32 completes symb to the command sYmbol
Pause / Break
Moves the insertion point from any TRACE32 window back to the TRACE32 command line.
Format: <type>.<year>.<month>.<build_number>
<type>: R|P|N|S|F
<year> • Year of the software version. This is the year in which a release or
pre-release was branched from the development trunk.
• Four-digit representation of a year (Return value example: 2018).
<month> • Month of the software version. This is the month in which a release
or pre-release was branched from the development trunk.
• Two-digit representation of a month with leading zeros (Return val-
ues: 01 … 12).
Information about the version number can be returned with the following functions: