10.7.2. Tracing with trace start and end points

To capture trace using trace start and end points:

  1. Remove the trace start and end points and the breakpoint you set previously:

    1. Right-click on the Load Image+Symbols entry in the Process Control pane 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 pane 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 tracepoints are removed.

  2. Disable cycle accurate tracing for the ETM:

    1. Select Configure Analyzer Properties... from the Edit menu of the Analysis window to display the Configure ETM dialog box.

    2. Unselect Cycle accurate tracing.

    3. Click OK to close the Configure ETM dialog box. RealView Debugger generates an ETM_CONFIG CLI command, which is also displayed in the Cmd tab of the Output pane:

      etm_config,syncfreq:0,packauto

  3. Set a Trace Start Point at the address 0x8248:

    1. In the Code window, click the Disassembly tab.

    2. Right-click in the Disassembly tab to display the context menu.

    3. Select Locate Address... from the context menu to display the Prompt dialog box.

    4. Enter the address 0x8248.

    5. Click Set. The disassembly at address 0x8248 is displayed. An example is shown in Figure 10.20.

      Figure 10.20. Disassembly view

      Disassembly view

      RealView Debugger generates a DISASSEMBLE CLI command, which is also displayed in the Cmd tab of the Output pane:

      dis 0x8248

    6. Right-click in the margin at address 0x8248 to display the context menu.

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

    8. Select Trace Start Point from the list of tracepoint types.

    9. Click OK. The dialog box closes, and the Trace Start Point is set as indicated by the green arrow . An example is shown in Figure 10.21.

      Figure 10.21. Trace Start Point set

      Trace Start Point set

      RealView Debugger generates a TRACE CLI command, which is also displayed in the Cmd tab of the Output pane:

      trace,prompt 0x00008248

  4. Set a Trace End Point at the address 0x8288:

    1. In the Code window, click the Disassembly tab.

    2. Right-click on the white background in the Disassembly tab to display the context menu.

    3. Select Locate Address... from the context menu to display the Prompt dialog box.

    4. Enter the address 0x8288.

    5. Click Set. The disassembly at address 0x8288 is displayed. An example is shown in Figure 10.22.

      Figure 10.22. Disassembly view

      Disassembly view

      RealView Debugger generates a DISASSEMBLE CLI command, which is also displayed in the Cmd tab of the Output pane:

      dis 0x8288

    6. Right-click in the margin at address 0x8288 to display the context menu.

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

    8. Select Trace End Point from the list of tracepoint types.

    9. Click OK. The dialog box closes, and the Trace End Point is set as indicated by the green arrow . An example is shown in Figure 10.23.

      Figure 10.23. Trace End Point set

      Trace End Point set

      RealView Debugger generates a TRACE CLI command, which is also displayed in the Cmd tab of the Output pane:

      trace,prompt 0x00008288

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

  6. 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. An example is shown in Figure 10.24.

    Figure 10.24. Captured trace in Analysis window

    Captured trace in Analysis window
Copyright © 2006, 2007 ARM Limited. All rights reserved.ARM DUI 0322B
Non-Confidential