7.7. Setting tracepoints to trace accesses of a specific size

For ETM-based targets, you can capture trace for specific access sizes:

To capture data and instruction accesses of a specific size:

  1. In the source or disassembly view, right-click on the gray margin to the left of the required location to display context menu.

  2. Select Create Tracepoint... from the context menu to display the Create Tracepoint dialog box. Figure 7.5 shows an example.

    Figure 7.5. Create Tracepoint dialog box

    Create Tracepoint dialog box

  3. Select the required tracepoint type from the first drop-down list.

  4. Select the required tracepoint comparison type from the second drop-down list. The tracepoint comparison type determines which of the remaining parameters you can set.

    Note

    Do not select External Condition, because the Size of Data Access field is not supported for this type.

  5. Specify the address or address range to be traced as appropriate:

    • a line number in the source code, with or without a module name prefix, for example \TRACE\#212:0

    • an address or address range

    • a function name, for example, Func_1

    • a function entry point, for example, Func_1\@entry.

  6. Choose the required Size of Data Access. The following options are available:

    Auto

    To check byte addresses depending on the implementation:

    • halfword for Thumb® code

    • word for ARM® code.

    This is the default.

    For ETMv3, you must select Halfword for Thumb data accesses. Otherwise, the address comparators might activate unexpectedly.

    Byte

    To check byte addresses (Thumb code).

    Halfword

    To check both byte addresses in the halfword (Thumb code). This must be used, for example, if you are interested in byte accesses to either byte of a halfword.

    Word

    To check all four byte addresses in the same word (ARM code). This must be used, for example, if you are interested in byte accesses to any byte of a word.

    Note

    This parameter adds the hw_in:"Size of Data Access=size" command qualifier to the CLI command that is generated by RealView Debugger when it sets a tracepoint.

  7. Set any other parameters as required.

  8. Click OK to set the tracepoint and close the Create Tracepoint dialog box.

See also:

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