Earlier, you installed the Lauterbach Trace32 In-Circuit plugin to start the Trace32 Powerview using the QNX Momentics IDE
launch configurations.
To create a launch configuration:
-
Launch configurations are set up in the usual Launch Configurations dialog (accessible from ).
-
In the opening dialog select Lauterbach TRACE32 Debugger and add a new configuration.
Note: It is mandatory to have a project to use the Lauterbach Trace32 In-Circuit Debugger plugin. Breakpoint synchronization and
edit-source functionality work only with files contained in a project; otherwise, the plugin doesn't know which Trace32 instance
it belongs to.
The Lauterbach Trace32 In-Circuit Debugger launch configuration type contains these tabs: the Trace32 Debugger, Edit Configuration File, and Common.
-
In the T32 executable field, type the path to the Trace32 application that you want to associate with this launch configuration.
By default, the Trace32 installation process will have located the executable in the folder c:\T32; however, the executable depends on your target architecture (e.g. T32MARM.EXE for ARM, T32MPPC.EXE for PPC).
-
In the Configuration File field, type the name of the Trace32 configuration file to use with the executable.
After specifying the configuration file, you may conveniently edit this file on the Edit configuration File tab.
-
If not already present, add the following lines to your configuration file, including the empty lines at the beginning and
end of the block:
<- mandatory empty line RCL=NETASSIST PACKLEN=1024 Eclipse Plugin for Coupling
with TRACE32 6 Creation of Launch Configurations PORT=20006
<- mandatory empty line
This configures Trace32 to accept commands via the built-in socket API which is a prerequisite for connecting with the plugin.
Note that the port number used in the example (20006) is rather arbitrary, but must be unique among all concurrently active
connections between Trace32 and the IDE and must not be used by other programs on the host. You don't need to configure the
plugin; it will parse the chosen configuration file and extract the relevant parameters.
-
To start the Lauterbach Trace32 In-Circuit Debugger, click Debug.
Next, you'll want to create a launch configuration for the target hardware. The following steps describe how to create a launch
configuration for a C++ Project written for the target hardware.
To create a launch configuration:
-
Open the Project Explorer view and select a project that you want to debug.
-
Right-click on the project icon, and select .
-
Create a new instance of the Lauterbach Trace32 Debug Configuration. Give it an appropriate name, and ensure that the Project field is correctly set to the project you're debugging.
-
Under Debugger Setting, select the T32 executable option, browse to the Trace32 installation directory, and select the appropriate executable for your target hardware architecture.
For example, choose t32mppc.exe for a PowerPC target.
-
Set the Configuration File to the name of your Trace32 configuration. Unless you have created your own, this file will usually be named config.t32 and will be located in the root of your TRACE32 installation directory.
-
Click Apply to save the configuration, and then click Close to exit the debug dialog.