7.9. Setting tracepoints to trace accesses on a specific security level

For ETM-based targets that support TrustZone technology, then you can limit the trace capture to addresses in:

To limit the trace capture to addresses in a specific memory space for targets that support TrustZone technology:

  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.7 shows an example:

    Figure 7.7. 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.

  5. Specify the location to be traced. The address prefix determines the specific memory space:

    • to capture trace in the Secure memory space, include the S: address prefix, for example S:0x8000 or S:\TRACE\#212:0

    • to capture trace in the Normal memory space, include the N: address prefix, for example N:Func_1

    • to capture trace in any memory space, do not include an address prefix, for example 0x8000.

    This can be an a single address or a range of addresses:

    • 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 setting for Ignore Security Level. The following options are available:

    Yes

    Capture trace when the processor is in any memory space. This is the default.

    No

    Capture trace only when the processor is in either Normal or Secure memory space.

    Note

    This parameter adds the hw_in:"Ignore Security Level=level" 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-2010 ARM Limited. All rights reserved.ARM DUI 0322F
Non-ConfidentialID102410