A2.3.6 Resource selection

The ETM-M33 uses event selectors to control resources.

The ETM-M33 controls the following resources:

  • Trace events, triggers, and markers in the trace stream.
  • Timestamp event.
  • ViewInst event.
  • Reduced function counter.

An event selector is configured to be sensitive to a resource selector pair, and one resource selector pair can control more than one event selector. The event selectors for Cortex®‑M33 are located in registers TRCEVENTCTL0R, TRCCNTCTLRn, TRCTSCTLR, and TRCVICTLR.

The ETM-M33 provides one fixed resource selector pair, registers TRCRSCTLR0 and TRCRSCTLR1 with respective static values of 0 = FALSE and 1 = TRUE, and one configurable resource selector pair, registers TRCRSCTLR2 and TRCRSCTLR3. A resource selector pair enables up to two resource groups to be selected, and enables one or more resources to be selected in each group. If more than one resource is selected, the outputs of the selected resources are OR-gated.

See the ARM® Embedded Trace Macrocell Architecture Specification ETMv4 for more information.

The following table shows the resources that can be selected for the Instruction trace.

Table A2-3 Instruction trace resource selection

Group Select Resource
0b0000 0-3 External input selectors 0-3
0b0001 0-3

Inputs from Processor DWT comparators Element 0-3

0b0010 0 Counter at zero 0
0b0011 0 Single-Shot Comparator control 0
0b0100-0b1111 0-15 Reserved

For example, the following figure shows the steps necessary to use a Single-Shot comparator to generate a trigger event and an ATB trigger. This example uses the user-configurable resource selector 2.

The Data Watchpoint and Trace (DWT) unit in the processor control the processor comparator inputs.

Figure A2-2 Trigger event resource selection
To view this graphic, your browser must support the SVG format. Either install a browser with native support, or install an appropriate plugin such as Adobe SVG Viewer.

The ETM-M33 single shot and start-stop logic, when present, might not reliably trigger where DWT comparators are programmed for comparisons other than instruction address comparison.

Non-ConfidentialPDF file icon PDF versionARM 100232_0002_00_en
Copyright © 2016, 2017 ARM Limited or its affiliates. All rights reserved.