2.10 Configuring an Events view connection to a bare-metal target
The Events view allows you to capture and view textual logging information from bare-metal applications. Logging is captured from your application using annotations that you must add to the source code.
Before connecting you must ensure that you:
Have the IP address or name of the target. If using a local connection, you
can click Browse and select the target.
Annotate your application source code with logging points and recompile it.
See the ITM and Event Viewer Example for Versatile
Express Cortex-A9x4 provided with DS-5
examples for more information.
from the main menu.
Configurations... from the Run menu.
Select DS-5 Debugger
from the configuration tree and then click New to create a new configuration.
In the Name field, enter a suitable name
for the new configuration.
Click on the Connection
tab to configure a DS-5 Debugger
Select the required platform. For example,
In Target Connection, select the
target connection type, for example, DSTREAM.
In DTSL Options, click
Edit to configure DSTREAM trace and other
target options. In the DTSL Configuration Editor
dialog box which opens:
- In the Trace Capture tab, either select
On Chip Trace Buffer (ETB) (for a
JTAG cable connection) or DSTREAM 4GB Trace
Buffer (for a Mictor cable connection).
- In the ITM tab, enable or disable ITM
trace and select the additional required settings.
Click on the Files tab
to define the target environment and select debug versions of the application
file and libraries on the host that you want the debugger to use.
In the Target Configuration
panel, select the application on the host that you want to download to
Click on the Debugger
tab to configure the debugger settings.
In the Run control panel,
specify the actions that you want the debugger to do after connecting to
Configure the host working directory or use the
In the Paths panel, specify any
source search directories on the host that the debugger uses when it
displays source code.
If required, click on the Arguments tab to enter arguments that are passed, using
semihosting, to the application when the debug session starts.
Click Apply to save the configuration
Click Debug to connect
to the target. Debugging requires the DS-5 Debug
perspective. If the Confirm Perspective Switch dialog box
opens, click Yes to switch perspective.
When connected and the DS-5 Debug perspective
opens, you are presented with all the relevant views and editors.
Click on the Events view
to set up event options.
In the Events view, from the
View menu, select Events
In Select a Trace Source, ensure that the trace
source matches the trace capture method specified earlier.
Select the required Ports/Channels and click
Run the application for a few seconds, and then interrupt it.
You can view the relevant information in the Events
view. For example:
Figure 2-15 Events view with data from the ITM source
For more information on these options, press F1 on your keyboard to display dynamic context