| |||
| Home > RealView Debugger Commands > Alphabetical command reference > ETM_CONFIG | |||
The ETM_CONFIG command provides control over the ARM ETM.
[,ETM_CONFIGqualifier...]
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.
For more information on the terms used by the ETM and options it provides, see the Embedded Trace Macrocell™ Specification and the chapter that describes tracing in RealView Debugger v1.8 Extensions User Guide.
The list of qualifiers is dependent on the processor and vehicle. The command handler generates an error if a specific combination is invalid for a specific processor or vehicle, but this is determined when you issue the command. The possible qualifiers are:
size:nSet the ETM trace buffer size to records.n
mmap_decode:nSet the ETM memory map value to .n
FIFO_hw:nSet the FIFO high-water mark to .n
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.
time_stampsEnable time stamping if the ETM and trace capture hardware support it. To disable, issue the command without this qualifier.
stall_fullEnable processor stalling if the FIFO becomes full, if the ETM and processor support it. To disable, issue the command without this qualifier.
half_rateEnable half-rate clocking of the trace port by the ETM. For full-rate, issue the command without this qualifier.
cycle_accurateEnable cycle-accurate tracing, if the ETM supports it. To disable, issue the command without this qualifier.
coprocessorEnable coprocessor tracing. To disable, issue the command without this qualifier.
disableportDisable the ETM trace port. To enable, 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.
nomultiplexSelect the normal (not multiplexed or demultiplexed) trace port transmission mode.
multiplexSelect the multiplexed trace port transmission mode.
demultiplexSelect the demultiplexed trace port transmission mode.
dataonlyTrace only data bus transfers.
addronlyTrace only address bus transfers. (Deprecated)
fulltraceTrace both data and address bus transfers. (Deprecated)
portratio:nEnables ETM v3 port speed to ETM clock speed ratios
to be set. This is supported only by ETM v3. 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.
datasuppressionEnables ETM v3 data suppression on FIFO full. This is supported only by ETM v3.
filtercoprocessorEnables filtering of CPRTs when data trace is enabled. This is supported only by ETM v3.
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.
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 commands provide similar or related functionality: