10.10.2. Procedure

To capture data trace with a trace range:

  1. Reload the image:

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

    2. Select Reload from the context menu. The image is reloaded and the PC is reset to the image entry point (0x8000).

  2. Set a Start of Trace Range for instructions and data at line 210 in the source:

    1. In the Code window, click the trace.c tab in the Code window.

    2. Scroll down until line 210 is visible.

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

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

    5. Select Start of Trace Range (Instruction and Data) from the list of tracepoint types.

    6. Click OK. The dialog box closes, and a Start of Trace Range tracepoint is set as indicated by the green arrow . Figure 10.53 shows an example. The tracepoint is set at line 212, because this is where the code for SendData() starts.

      Figure 10.53. Start of Trace Range set

      Start of Trace Range set

  3. Set an End of Trace Range for instructions and data at line 222 in the source:

    1. In the Code window, click the trace.c tab in the Code window.

    2. Scroll down until line 222 is visible.

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

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

    5. Select End of Trace Range (Instruction and Data) from the list of tracepoint types.

      Note

      This is the only trace range option available, because you must complete the current trace range before another trace range can be set.

    6. Click OK. The dialog box closes, and the End of Trace Range tracepoint is set as indicated by the green arrow . Figure 10.54 shows an example:

      Figure 10.54. End of Trace Range set

      End of Trace Range set

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

  5. After a short time, click Stop on the Debug toolbar to stop execution. The captured trace is displayed in the Trace tab of the Analysis window.

  6. Select Inferred Registers from the Trace Data menu to hide the inferred register view. Figure 10.55 shows an example:

    Figure 10.55. Captured trace in Analysis window

    Captured trace in Analysis window

See also

Copyright © 2006-2010 ARM Limited. All rights reserved.ARM DUI 0322F
Non-ConfidentialID102410