Академический Документы
Профессиональный Документы
Культура Документы
T32Start ..........................................................................................................................................
Abstract .......................................................................................................................................
First Steps
Basic Configuration
12
13
Debug Environment for a Single Core with Power Debug II / Power Trace II
14
Basic Configuration
15
20
21
22
Basic Configuration
24
29
32
33
34
Basic Configuration
35
40
44
45
46
Basic Configuration
47
47
47
47
48
50
52
54
56
59
T32Start
59
Configuration Tree
59
60
60
Devices
62
62
65
TRACE32 Instances
67
Target Option
67
68
71
72
72
73
74
Mouse Actions
74
75
75
76
77
78
T32Start
T32Start
Version 24-May-2016
Abstract
The main objective of T32Start is to ease the setup of multicore/multiprocessor debug environments.
To start a TRACE32 instance a so-called configuration file is required. The configuration file defines
primarily:
The host interface that is used to connect the LAUTERBACH device to the PC.
To debug multicore applications one TRACE32 instance has to be started for each core. Each
instance requires an adapted configuration file. Creating and managing all configuration files and
TRACE32 instances for a multicore debugging environment becomes quite complex. With
T32Start this work is easier to handle.
For detail about the multicore debugging concept of LAUTERBACH refer to Multicore
Debugging in ICD Debugger Users Guide, page 23 (debugger_user.pdf).
To debug multiprocessor applications one TRACE32 instance has to be started for each
processor. Each instance requires an adapted configuration file. Creating and managing all
configuration files and TRACE32 instances for a multiprocessor debugging environment
becomes quite complex. With T32Start this work is easier to handle.
For details on the multiprocessor debugging concept of LAUTERBACH refer to Multiprocessor
Debugging in ICD Debugger Users Guide, page 53 (debugger_user.pdf).
Using T32Start is also advisable if many different debugger configurations are used.
T32Start
Abstract
The draft below shows the flow of information between the debug environment and the TRACE32 instances.
Connection
Type
Target
System
Podbus Device
Chain
Podbus
Device
T32Start
Abstract
The configurations are displayed in a tree, whose nodes can be edited easily.
Nodes and subtrees can be created, deleted, replaced, copied, pasted, loaded and saved by
keyboard inputs or drag and drop actions.
Multiple configurations can be constructed, saved and sorted into the tree.
New configurations for TRACE32 instances are copied from a Default Configuration.
The resulting configuration files and command line options can be viewed without starting up the
whole debug environment.
T32Start
Abstract
Quick Start
To start T32Start, do one of the following:
Navigate to the TRACE32 system directory (by default c:\t32) and double-click the t32start.exe.
First Steps
t32start.exe is copied during the installation to the TRACE32 system directory.
When T32Start is started the first time, the following basic settings are displayed:
T32Start has already adapted some default settings. Open the Settings branch to display them.
Since the default settings are used as base for all user-created configurations it is recommended to adapt
them to your environment.
1989-2016 Lauterbach GmbH
T32Start
Quick Start
Target
ARM9
Debug Cable
for ARM9
PC
POWER
DEBUG
INTERFACE
/USB 2
Power
Supply
T32Start
Quick Start
Basic Configuration
1.
2.
T32Start
Quick Start
3.
4.
Add the POWER DEBUG INTERFACE / USB2 to the Podbus Device Chain.
T32Start
Quick Start
The correct name of your LAUTERBACH device can be read from the labelling.
Labelling of the
LAUTERBACH device
The LAUTERBACH device which provides the host interface has to be the first device in the Podbus
Device Chain.
5.
T32Start
10
Quick Start
6.
T32Start
11
Quick Start
2.
T32Start
12
Quick Start
2.
T32Start
13
Quick Start
Debug Environment for a Single Core with Power Debug II / Power Trace II
The following example describes how to start a TRACE32 instance to debug an ARM9 that also provides
program and data flow information via the ETM trace port.
Target
ARM 9
ETM-Preprocessor to
Trace Connector
On-chip Debug
Interface
Debug Cable
for ARM 9
POWER
DEBUG II
PC
POWER
TRACE II
Power
Supply
T32Start
14
Quick Start
Basic Configuration
1.
2.
T32Start
15
Quick Start
3.
4.
T32Start
16
Quick Start
The correct name of your LAUTERBACH device can be read from the labelling.
Labelling of the
LAUTERBACH device
The LAUTERBACH device which provides the host interface has to be the first device in the Podbus
Device Chain.
5.
T32Start
17
Quick Start
6.
Because two devices are used for debugging, both of them have to be included in the Podbus
Device Chain.
7.
T32Start
18
Quick Start
T32Start
19
Quick Start
2.
T32Start
20
Quick Start
2.
T32Start
21
Quick Start
T32Start
22
Quick Start
on a multicore chip. Both cores are debugged via a joint JTAG interface by using a POWER DEBUG
INTERFACE / USB 2.
Target
ARM9
Xpert
Teak
PC
POWER
DEBUG
INTERFACE
/USB 2
USB
Interface
Power
Supply
T32Start
23
Quick Start
Basic Configuration
1.
2.
Re
T32Start
24
Quick Start
3.
4.
Add the POWER DEBUG INTERFACE / USB 2 to the Podbus Device Chain.
T32Start
25
Quick Start
The correct name of your LAUTERBACH device can be read from the labelling.
Labelling of the
LAUTERBACH device
The LAUTERBACH device which provides the host interface has to be the first device in the Podbus
Device Chain.
5.
T32Start
26
Quick Start
6.
7.
T32Start
27
Quick Start
8.
Now the basic set-up to start two TRACE32 instances to debug an ARM9 and an XpertTeak via a joint JTAG
interface is done.
T32Start
28
Quick Start
Start/stop synchronization
The start/stop synchronization has to be prepared before the start of the TRACE32 instances by
configuring the Intercom Port for each core. This in independent of the implementation of the
start/stop synchronization. For details about the LAUTERBACH concept for the start/stop
synchronization refer to Installation in ICD Debugger Users Guide.
T32Start
29
Quick Start
Open the Advanced Settings branch for the first Core to configure the Intercom Port.
2.
T32Start
30
Quick Start
Open the Advanced Settings branch for Core 2 to configure the Intercom Port.
2.
Since Use Auto Increment Port is set to yes the Port Value for the second core is 10001.
1989-2016 Lauterbach GmbH
T32Start
31
Quick Start
T32Start
32
Quick Start
2.
Start the TRACE32 instances to debug the ARM9 and XpertTeak in a multicore debugging
environment.
T32Start
33
Quick Start
on a multicore chip. Both cores are debugged via a joint JTAG interface.
Target
ARM9
Xpert
Teak
PC
Debug Cable
for ARM9
POWER
DEBUG
INTERFACE
/USB 2
Debug Cable
for Xpert Teak
POWER
DEBUG
INTERFACE
/USB 2
Power
Supply
USB
Interface
TRACE32 Instance for Xpert Teak
AC/DC-adapter
T32Start
34
Quick Start
Basic Configuration
1.
2.
T32Start
35
Quick Start
3.
Add two
4.
Add two POWER DEBUG INTERFACE / USB 2 to the Podbus Device Chain.
T32Start
36
Quick Start
The correct name of your LAUTERBACH device can be read from the labelling.
Labelling of the
LAUTERBACH device
The LAUTERBACH device which provides the host interface has to be the first device in the Podbus
Device Chain.
5.
T32Start
37
Quick Start
6.
7.
T32Start
38
Quick Start
8.
Now the basic set-up to start two TRACE32 instances to debug an ARM9 and an XpertTeak via a joint JTAG
interface is done.
T32Start
39
Quick Start
Start/stop synchronization
The start/stop synchronization has to be prepared before the start of the TRACE32 instances by
configuring the Intercom Port for each core. This in independent of the implementation of the
start/stop synchronization. For details about the LAUTERBACH concept for the start/stop
synchronization refer to Start Stop Synchronization inICD Debugger Users Guide
(debugger_user.pdf).
T32Start
40
Quick Start
Intercom Port Configuration for the Core assigned to the first Power Debug USB II
1.
Open the Advanced Settings branch for the Core assigned to the first Power Debug USB II to
configure the Intercom Port.
2.
T32Start
41
Quick Start
Intercom Port Configuration for the Core assigned to the second Power Debug USB II
1.
Open the Advanced Settings branch for the Core assigned to the second Power Debug
USB II 2 to configure the Intercom Port.
T32Start
42
Quick Start
2.
Since Use Auto Increment Port is set to yes the Port Value for the core assigned to the second
Power Debug USB II is 10001.
T32Start
43
Quick Start
T32Start
44
Quick Start
2.
Start the TRACE32 instances to debug the ARM9 and XpertTeak in a multicore debugging
environment.
T32Start
45
Quick Start
ARM9
PC
Debug Cable
for ARM9
POWER
DEBUG
INTERFACE
/USB 2
USB
Interface
Xpert
Teak
Debug Cable
for Xpert Teak
POWER
DEBUG
INTERFACE
/USB 2
Power
Supply
T32Start
46
Quick Start
Basic Configuration
The basic configuration is the same as for multi device solutions. Refer to chapter Basic COnfiguration
for multi device solutions.
T32Start
47
Quick Start
A single TRACE32 PowerView instance runs on the same host as the back-end, see Setup 1. This
configuration cant handle AMP debug scenarios.
2.
Multiple TRACE32 PowerView instances run on the same host as the back-end, see Setup 2.
3.
The TRACE32 PowerView instances run on a dedicated workstation; the back-end runs on another
host, see Setup 3.
The T32Start application assists you in configuring the desired setup. This way you do not need to manually
edit any config.t32 file. Simply choose the setup you need, and then follow the cross-reference at the bottom
of the chosen setup diagram.
Setup 1
Setup with a single TRACE32 PowerView instance running on the same host as the back-end:
For step-by-step instructions on how to configure the above setup in T32Start, see Debug Environment
for Setup 1 (Single Instance), page 50.
T32Start
48
Setup 2
Setup with multiple TRACE32 PowerView instances (AMP) running on the same host as the back-end:
For step-by-step instructions on how to configure the above setup in T32Start, see Debug Environment
for Setup 2 (Integrated Server), page 52.
Setup 3
Setup with multiple TRACE32 PowerView instances (AMP) running on another host:
For step-by-step instructions on how to configure the above setup in T32Start, see Debug Environment
for Setup 3 (Dedicated Server), page 54.
T32Start
49
In the T32Start window, right-click Configuration Tree, point to Add, and then select
Configuration.
Press F2 to rename the new Configuration<number> tree item to a meaningful name, for
example, hostmci_setup1.
Right-click the renamed tree item, point to Add, and then select MCI Lib Debugger.
4.
Click the little triangle next to MCI Lib Debugger to expand the tree node and navigate to Target.
5.
Right-click Target, and then select the target name you want from the Target drop-down list.
This completes the steps for setup 1. The remaining steps depend on your project, see Advanced Settings
below.
T32Start
50
Advanced Settings
6.
7.
T32Start
51
In the T32Start window, right-click Configuration Tree, point to Add, and then select
Configuration.
Press F2 to rename the tree item to a meaningful name, for example, hostmci_setup2.
Right-click the renamed tree item, point to Add, and then select MCI Server.
4.
Navigate from MCI Server to Server Settings by clicking the little triangles next to the tree items.
5.
Dedicated: no
T32Start
52
Click the MCI Server tree item, point to Add, and then select MCI Server Debugger.
7.
Click the little triangle next to MCI Server Debugger to navigate to Target.
8.
Right-click Target, and then select the target name you want from the Target drop-down list.
9.
Repeat the steps in this section for each MCI Server Debugger required for your project.
This completes the steps for setup 2. The remaining steps depend on your project, see Advanced Settings
below.
Advanced Settings (Setup 2)
10.
For each MCI Server Debugger, configure the Advanced Settings as required for your project.
For a description of the tree items under Advanced Settings, see Advanced Settings and
Default Advanced Settings.
11.
T32Start
53
In the T32Start window, right-click Configuration Tree, point to Add, and then select
Configuration.
Press F2 to rename the tree item to a meaningful name, for example, hostmci_setup3.
Right-click the renamed tree item, point to Add, and then select MCI Server.
4.
Navigate from MCI Server to Server Settings by clicking the little triangles next to the tree items.
5.
Node Name / IP Address: Type IP address of the workstation where t32mciserver runs
Dedicated: yes
T32Start
54
Click the MCI Server tree item, point to Add, and then select MCI Server Debugger.
7.
Click the little triangle next to MCI Server Debugger to navigate to Target.
8.
Right-click Target, and then select the target name you want from the Target drop-down list.
9.
Repeat the steps in this section for each MCI Server Debugger required for your project.
This completes the steps for setup 3. The remaining steps depend on your project, see Advanced Settings
below.
Advanced Settings (Setup 3)
10.
For each MCI Server Debugger, configure the Advanced Settings as required for your project.
For a description of the tree items under Advanced Settings, see Advanced Settings and
Default Advanced Settings.
11.
T32Start
55
2.
T32Start
56
3.
4.
T32Start
57
5.
T32Start
58
Configuration Tree
Settings
1
*
1
Configuration Container
*
Simulator
Configuration
1
Arbitrary Program
*
Serial Rom Monitor
...
Other
Devices
...
1
*
PodBus Device
Trace32 GUI
1
*
Power Trace
Core
Configuration Tree
The Configuration Tree is the root of the tree and contains Configurations or Configuration Container.
Both item types can be created and deleted from the tree. The Configuration Tree does also contain the
Settings tree, where default settings are stored.
T32Start
59
Multicore
Target
System
1
2
3
4
PodBus Device
Chain
PodBus
Device
PodBus Device
Chain order equals
order in T32Start
The order and type of LAUTERBACH devices has to be modelled as subitems in the Podbus Device
Chain.
T32Start
60
The device which contains the host interface has to be the first device in the Podbus Device Chain. The Up
and Down buttons can be used to change the device order.
Every device has a menu item Replace by to exchange it by a another device. While the exchange takes
place the settings of the device are kept if possible.
T32Start
61
Devices
Settings for the Host Interfaces
Description
Port
Access Mode
Connection
Mode
T32Start
62
Ethernet Settings
The options Max UDP Packet Size, Packet Burst Limitation, Compression and Delay can be
useful when the net work connection is slow or many routers are involved.
Option
Description
Node Name /
IP Address
Max UDP
Packet Size
The network can have a limited UPD packet size below the default of
1024 bytes. Setup this value to limit the maximum packets the TRACE32
will send through the network.
Packet Burst
Limitation
Compression
Delay
Delay time between sending two UDP packets. This can avoid packet
order changing when connection is established through internet.
T32Start
63
Description
Port
IO Communication Port
USB Options
Option
Description
Node Name
T32Start
64
T32Start
65
The Power Probe and the Power Integrator can also be used as stand-alone devices. In this case a
appropriate host interface is required.
T32Start
66
TRACE32 Instances
The following items are associated with a TRACE32 instance: Core, Simulator, Serial Rom Monitor and T32.
The settings to perform the start and setup for the started instance are derived from the values of the
subitems and items in the whole Configuration e.g. the position in the Podbus Device Chain or the
connection type of the first device in the chain.
Target Option
The Target subitem of a TRACE32 instance defines the executable to be started to support the target
architecture of the dedicated debug process.
T32Start
67
Not all TRACE32 settings have to be adapted for every TRACE32 instance. The settings are composed into
a subtree called Advanced Settings. Every time a new instance is create the Advanced Settings are
copied from the Default Advanced Settings located in the Settings tree.
Paths
Item
Description
Working Path
System Path
Temp Path
Help Path
Directory, where the pdf-files for the TRACE32 online help are located.
License File
Display
Item
Description
Title
Set the window title of the TRACE32 instance. Wild cards can be
included into the value e.g. for Core Number, Intercom Port, API Port,
1989-2016 Lauterbach GmbH
T32Start
68
Small Font
Size
Full Screen
Iconic
MWI
Child windows are created on the desktop instead within the main
window.
Language
Description
Use Port
Use Auto
Increment Port
Port Start
Value
When Use Auto Increment Port is false, the port number can be specified
here. If the TRACE32 instance is the first one to be started in the
Configuration, Port Start Value is the start value of the increasing port
number set.
Port Value
T32Start
69
Startup Script
Item
Description
Source
File
Built-in Script
When File is chosen as Source, the file assigned to the File item will be
executed.
File
If the Source item is set to File, specify the start-up script here.
Parameters
Set the parameters that are passed to the command script from File or
Built-in Script.
Built-in Script
The start-up script can be edited and stored directly in T32Start. Select
the item and press the Edit button to edit the script.
This example is for demo purposes only, and assumes that the following settings are made in the
Startup Script tree item:
Source: File
File: c:\t32\demo-start-up-script.cmm
When TRACE32 is started via T32Start, the parameters are passed to the specified PRACTICE start-up
script (*.cmm). In this example, the script is programmed to open an AREA.view window in TRACE32 and
display the parameters.
T32Start
TRACE32
%COMPUTERNAME% is an environment variable of Windows. For information about the environment variables
of T32Start, see References to Environment Variables and Tree Items, page 76.
Information for advanced users: The %LINE option together with ENTRY reads multiple parameters into one
PRACTICE macro. For more information, see ENTRY.
1989-2016 Lauterbach GmbH
T32Start
70
The context menu of a TRACE32 instance item offers a menu item Show Start Environment.
This opens a dialog, where the whole startup script and command line is visible. This is implemented mainly
for diagnostics purposes.
The Batch Job field shows the DOS command script which would have to be executed in order to start the
TRACE32 instance. The Configuration File field displays the configuration file contents. The shown file
names are valid also after closing T32Start.
T32Start
71
Every TRACE32 instance has a unique ID which assigns the history and file names of temporary created
files to the TRACE32 instance. The Reset T32 History menu action allocates new IDs to the items and
subitems in order to reset the history and to disconnect multiplied TRACE32 instances items.
Create Start Link Menu Action
The Create Start Link menu action opens a dialog in order to create links to T32Start on the Windows
Desktop or Windows Start Menu.
After the link is executed, T32Start will appear and start the connected item and all subitems. After starting,
T32Start will be closed automatically based on the settings.
T32Start
72
Setting
Description
Defines the time that T32Start wait between the start of two
TRACE32 instances.
Target Type Registry will store the entire Configuration Tree into
the Windows Registry under the HKEY_CURRENT_USER key.
T32Start
73
Mouse Actions
The tree items can be modified by mouse actions with drag & drop.
Actions with two items involved: The possible actions take affect only on the two involved source
and destination item. The matrix below shows the four cases that are possible in this case. The
shift key switches between the move and copy mode. The append and replace mode is derived
by the program automatically depending on the concrete situation.
Source
Move
Copy
Replace
Destination
Add
Deep Replace: It is possible to replace none-deletable subtrees by a template tree. This can be
done by dragging the template tree and dropping it on the root of the tree, where the compatible
subtrees are to be replaced.
Deep Replace
of Working Path
in Example Configuration
T32Start
74
T32Start
75
2.
3.
4.
The absolute path of any item is displayed in the status line of T32Start. To copy the absolute path, right-click
the status line, and then select Copy ID.
T32Start
76
Description
-QUIT
-RUNCFGFILE
<ConfigurationFile>
<ConfigurationFile>
-RUNITEM <ID>
T32Start
77
Error Messages
Solution
Invalid ID path
File paths or directory path can refer to other tree items in order to
take their value. Circular references are not allowed. Correct the
references.
Add TRACE32 instance tree items to the sub tree of the startable
item.
T32Start
78
Error Messages