10.13.4. Displaying capturing trace with a trigger

To display the captured trace on a running target using a trigger:

  1. Unload and reload the image:

    1. Right-click on the Load Image+Symbols entry in the Process Control view to display the context menu.

    2. Select Unload from the context menu. The image is unloaded.

    3. Right-click on the Load Image+Symbols entry in the Process Control view to display the context menu.

    4. Select Load from the context menu. The image is reloaded and the PC is reset to the image entry point (0x8000). The previous tracepoint is removed.

  2. If tracing is disabled, select Tracing Enabled from the Edit menu of the Analysis window.

  3. Click Run on the Debug toolbar to start execution.

  4. Set a Trigger tracepoint at line 74:

    1. Click the trace.c tab to display the source code.

    2. Scroll down until line 74 is visible.

    3. Right-click in the margin at line 74 to display the context menu.

    4. Select Insert Tracepoint... from the context menu to display the New Tracepoint dialog box.

    5. Select Set Trigger.

    6. Click OK. The New Tracepoint dialog box closes and the Prompt dialog box, is displayed. Figure 10.67 shows an example. To set a tracepoint on a running target, tracing must be disabled.

      Figure 10.67. Prompt to stop tracing when setting a tracepoint

      Prompt to stop tracing when setting a tracepoint

  5. Click Yes to disable tracing. The following actions occur:

    • The trigger tracepoint is set.

    • All trace captured up to the point where tracing is disabled is displayed.

    • Enable tracing again. When the trigger is activated, the captured trace is updated in the Trace tab of the Analysis window. Figure 10.68 shows an example.

      Figure 10.68. Trace captured with a trigger

      Trace captured with a trigger

    • The target continues running.

See also

Copyright © 2006-2009 ARM Limited. All rights reserved.ARM DUI 0322D
Non-Confidential