You need to define the trace configuration before debugging the
application for trace collection.
To define a trace configuration:
- Right-click the selected project in the Project Explorer view and select
Build Project from the context menu.
- In the Project Explorer view, right-click on the project and select Debug
as > Debug Configurations from the context menu.
The
Debug
Configurations dialog appears.
Figure 1. Debug Configurations Dialog Box - Main Page
- Expand the S32 Debugger group in the tree structure on the left, and
select the launch configuration corresponding to the project you are using. For example,
MyProject_A53_0_0.
- Click on the Debugger tab. Here, make sure the Initial core
checkbox is checked, and you can also select the Debug Probe Connection Interface,
either over Ethernet, and you must specify its IP, or over USB and the IDE tries to find it
automatically when you click on Refresh
Here is very important for the Launch server checkbox to be checked in order to be
able to Debug!
Figure 2. Debug Configurations Dialog box - Debugger Page
- Click the Trace and Profile tab. This tab has the Overview and
Basic pages.
The
Overview page displays the flow diagram for
collecting trace.
Figure 3. Trace and Profile Page - Overview page
- In the Basic page, you can see the configuration file used for the
board. You can create a New one or use the one generated by the IDE.
Figure 4. Trace and Profile page - Basic tab
- Click on Edit and the Trace Configurations window should appear.
Figure 5. Trace Configurations Window
- Here you need to Add the .ELF file that was built for your project. Click on
Add and then click on the row under the New File column and a button with three dots should
appear. Click on the button and then browse to the location of the .ELF file. You need to
add each ELF file from each project for the cores that you want to collect trace from.
- To change the server port, go to the Target Access section and modify the default value to the desired one.
Figure 6. Trace Configurations Target Access
-
Import button is used to load an existing configuration file from your file system. To save the configuration file for future use or sharing,
use the Export button.
Figure 7. Trace Configurations Export
- Click Apply to save the configuration.
To start the
trace collection, in the Debug window, click Debug to start debugging the
project.