| |||
| Home > RealView Debugger Commands > Alphabetical command reference > ETM_CONFIG | |||
Provides control over the ARM ETM.
[,ETM_CONFIG qualifier...]
where:
qualifierIs a list of qualifiers. The possible qualifiers are described in List of qualifiers.
The ETM_CONFIG command provides control over the ARM ETM. The arguments to a single invocation of the command specify a configuration of the ETM, so the presence or absence of qualifiers is relevant.
The list of qualifiers depends on the processor and Debug Interface. The command handler generates an error if a specific combination is invalid for a specific processor or Debug Interface, but this is determined when you issue the command. The possible qualifiers are:
addronlyTrace only address bus transfers. (Deprecated)
coprocessorEnable coprocessor tracing. To disable, issue the command without this qualifier.
cycle_accurateEnable cycle-accurate tracing, if the ETM supports it. To disable, issue the command without this qualifier.
demultiplexSelect the demultiplexed trace port transmission mode.
dataonlyTrace only data bus transfers.
datasuppressionEnables ETMv3 data suppression on FIFO full. This is supported only by ETMv3.
disableportDisable the ETM trace port. To enable, issue the command without this qualifier.
extinN:valueExternal extended input selector register parts:
extin1:nExternal extended input 1.
extin2:nExternal extended input 2.
extin3:nExternal extended input 3.
extin4:nExternal extended input 4.
The value of
each part can be a value in the range 0 to 255, inclusive. However,
the number of inputs, the range of values supported, and the default
value of each input depends on the ETM you are using. For example,
the ARM1136JF-S™ has two extended
external inputs with values in the range zero to 20 and default
values of zero.n
Use the TRACEEXTCOND command to specify which input to test.
These inputs are supported only by ETMv3.1, and later.
FIFO_hw:nSet the FIFO high-water mark to .n
filtercoprocessorEnables filtering of CPRTs when data trace is enabled. This is supported only by ETMv3.
fulltraceTrace both data and address bus transfers. (Deprecated)
half_rateEnable half-rate clocking of the trace port by the ETM. For full-rate, issue the command without this qualifier.
mmap_decode:nSet the ETM memory map value to .
This is an implementation-dependent value that varies depending
on the memory map decode logic present in your system.n
multiplexSelect the multiplexed trace port transmission mode.
nomultiplexSelect the normal (not multiplexed or demultiplexed) trace port transmission mode.
packautoSelects the automatic packing mode for the TPA.
packnormalSelects the normal packing mode for the TPA.
packdoubleSelects the double packing mode for the TPA.
packquadSelects the quad packing mode for the TPA.
portratio:nEnables ETMv3 port speed to ETM clock speed ratios
to be set. This is supported only by ETMv3. Appropriate values for are:n
0Use a 1:1 ratio.
1Use a 1:2 ratio.
2Use a 1:3 ratio.
3Use a 1:4 ratio.
4Use a 2:1 ratio.
5Use dynamic ratio modes for on-chip trace.
6Use the implementation-defined mode, if implemented by the ASIC designer.
port_width:nSet the ETM port width, where is
one of:n
04-bit port.
18-bit port.
216-bit port.
324-bit port.
432-bit port.
The 24-bit and 32-bit settings are supported only for ETB11™ connections using RealView ICE.
size:nSet the ETM trace buffer size to records.n
stall_fullEnable processor stalling if the FIFO becomes full, if the ETM and processor support it. To disable, issue the command without this qualifier.
suppressdataSuppress data tracing if the FIFO becomes full. To leave data tracing enabled, issue the command without this qualifier.
syncfrequency:nFor ETMv3, and later, a synchronization frequency register is used to define the time between synchronization points in the trace data. That is, the points where the trace tools start decompressing the trace output.
The synchronization frequency can
be a value in the range 100 to 4095, inclusive, with the default
being 1024:n
for ETMv3.0, the value is in cycles
for ETMv3.1 and later, the value is in bytes.
time_stampsEnable time stamping if the ETM and trace capture hardware support it. To disable, issue the command without this qualifier.
twinSelects the connection that the current connection is connected (twinned) with. This is supported only by DCP/TCM hardware.
twinmasterSelects the processor that is to be the DCP master. This is supported only by DCP/TCM hardware.
The following examples show how to use ETM_CONFIG:
ETM_CONFIG,port_width:0,coprocessor,fulltrace,size:10240Set up the ETM for a 4-bit, full-rate, nonmultiplexed trace port, no stalling or timestamps, 10K trace records, address and data tracing, and in non cycle-accurate mode.
ETM_CONFIG,port_width:1,stall_full,multiplex,fulltrace,suppressdata,size:1024Set up the ETM for an 8-bit, full-rate, multiplexed trace port, processor stalling and data suppression on FIFO full, no timestamps, 1024 trace records, address and data tracing, and in non cycle-accurate mode.
the following in the RealView Debugger Trace User Guide:
Embedded Trace Macrocell Specification.