2.4 Configuring trace for bare-metal or Linux kernel targets

You can configure trace for bare-metal or Linux kernel targets using the DTSL options that DS-5 Debugger provides.

After configuring trace for your target, you can connect to your target and capture trace data.

Procedure

  1. In DS-5 Debugger, select Window > Open Perspective > Other > DS-5 Debug.
  2. Select Run > Debug Configurations to open the Debug Configurations launcher panel.
  3. Select the DS-5 Debugger debug configuration for your target in the left-hand pane.

    If you want to create a new debug configuration for your target, then select DS-5 Debugger from the left-hand pane and then click the New button. Then select your bare-metal or Linux kernel target from the Connection tab.

    Figure 2-4 Select the debug configuration
    Select the debug configuration


  4. In the Connection tab, after you have selected your target, click the DTSL Options Edit button. This shows the DTSL Configuration Editor dialog box where you can configure trace.
  5. Depending on your target platform, the DTSL Configuration Editor provides different options to configure trace. Use the various tabs to configure trace.
    Figure 2-5 Select Trace capture method
    Select Trace capture method


    1. For Trace capture method select the trace buffer you want to use to capture trace.
    2. The DTSL Configuration Editor shows the processors on the target that are capable of trace. Click the processor tab you want and then select the option to enable trace for the individual processors you want to capture trace.

      Note:

      The options to enable trace might be nested. In this example, you must select Enable Cortex-A15 core trace, to enable the other options. Then you must select Enable Cortex-A15 0 trace to enable trace on core 0 of the Cortex-A15 processor cluster.
      Figure 2-6 Select the processors you want to trace
      Select the processors you want to trace


    3. Select any other trace related options you require in the DTSL Configuration Editor.
    4. Click Apply and then click OK. This configures the debug configuration for trace capture.
  6. Use the other tabs in the Debug Configurations Editor to configure the other aspects of your debug connection.
  7. Click Apply to save your debug configuration. When you use this debug configuration to connect, run, and stop your target, you can see the trace data in the Trace view.
Non-ConfidentialPDF file icon PDF versionARM DUI0446Z
Copyright © 2010-2016 ARM Limited or its affiliates. All rights reserved.