On-Chip Trace - OCDS L2, MCDS, ETM, ETB and Triggered Transfers
In depth real-time debugging requires close interaction with the processor. Tracing shall provide a chronological picture of a system's inner
workings - before or after a critical event - mainly to help analyzing
a faulty program. OCDS L2 was defined for this purpose and is available
for the TriCore derivatives. The OCDS L2 unit of the TriCore
derivatives supports the recording of a program's execution. In
combination with the JTAG OCDS L1 unit it is possible to comfortably
watch the
program flow in realtime. UDE, the universal debug engine, basically
supports the OCDS unit through the Universal Access Device add-on.
OCDS L2 Instruction TraceThe
OCDS L2 (On-chip Debug Support Level 2) unit of the TriCore derivatives
supports the recording of a running program's trace. In combination
with the JTAG OCDS L1 unit a comfortable watching of the program flows
of the core, the PCP/PCP2 processor and the DMA processor in real-time
are possible. UDE supports the OCDS unit by the Universal Access Device
- Trace Board option. 60 Pin OCDS L2 High-speed Connector Pod - Proposed
by Infineon to support connection to OCDS L2 port of TriCore 1.3
systems (TC11xx, TC17xx, TC19xx and future derivatives)
- Connector system based on SAMTEC 60 pin highspeed connector QSH-030-01-F-D-A
- Prepared to use for systems up to 180 MHz system clock
- Supports 2,5V to 3,6V I/O ring voltage
OCDS L2 is supported by the TriCore TC1130, TC1161, TC1163, TC1166,
TC1775, TC1762, TC1764, TC1766, TC1796, TC1920 and other derivatives.
ETM Instruction Trace
The Embedded Trace Macrocell (ETM) of ARM derivatives is used to
capture processor states in real-time using a dedicated connection to
the derivative.
UDE supports ETM as 4 bit or 8 bit trace port
up to 170 MHz system clock. The program and data trace allows to record
up to 1 MSamples. By compiling the trace data directly via the trace
hardware this sample rate complies with a multitude of machine code
instructions. Each sample is able to contain eight additional external
hardware signals. Recording is synchronous to the system clock
frequency. This ensures the optimal use of the trace memory and
allows application specific time stamps. Start and stop of recording is
comfortably controlled via triggers. The total performance of the ETM
unit is available for trigger events. The comfortable trace window
included in the user interface offers a direct link to the user from
trace samples to the related source code, monitoring the runtime of the
program based on the time stamps and comprehensive search functions.
UDE supports the ETM unit by the Universal Access Device - Trace Board
option. 38 Pin ETM High-speed Connector Pod - Proposed by ARM to support connection to ETM port of ARM systems (LPC21xx and further ARM7, ARM9, ARM11 derivatives)
- Connector system based on 38 pin high-speed connector AMP-MICTOR
- Supports 2,5V to 3,6V I/O ring voltage
ETM is supported by the Philips LPC2xxx, AT91RM9200, STR910 derivatives and other derivatives.
MCDS Instruction Trace
The Multi Core Debug System (MCDS) integrated on the Emulation
Extension Chip (EEC) of Infineons TC1796ED and TC1766ED is a powerful
trace and event generation module. This new full-featured emulator
onsilicon opens a new age of debugging capabilities.It allows to
observe and control the running system in a very purposeful way.
Elaborated filter mechanisms and a high visibility to the system
internals (cores and busses) are the key features of MCDS. To make use
of them the MCDS has to be configured for each trace task using the
Universal Emulation Configurator (UEC).
The Universal Emulation Configurator is the hardware-independent tool to describe measuring tasks for on-chip emulators and is comparable with development environments for the hardware draft. With its assistance development engineers can also create configuration data for an on- chip emulator without large expenditure of time and this independently of the respective target hardware. With the "Universal Emulation Configurator" the developer gets a top-notch configuration tool just right for demanding measuring tasks with on-chip emulators. Major benefits of using the UEC are:
- Functional description on basis of a state machine
- Being independent from the respective target and emulator hardware
- Fast and simple definition of complex measuring tasks
This is done by joining pre-defined subtasks from expandable libraries and defines parameters.
MCDS is supported by the TriCore family, including TC1766ED and TC1796ED derivatives.
ETB Instruction Trace
The Embedded Trace Buffer (ETB) extends the ETM unit of ARM derivatives
by an embedded on-chip circular trace buffer. This simplifies the
adaptation of external trace units because the high speed trace
signaling does not need to transfer to the external unit. The trace
buffer is managed and read via the JTAG communication channel.
ETB is supported by UDE with the Philips LPC3000 derivatives.
Triggered TransfersThe
UDE TTF Recorder uses the Triggered Transfer feature of new Infineon
microcontrollers. Triggered Transfer is part of the on-chip debug
support implemented on these controllers. It allows transferring the
value of a single memory location via the JTAG debug interface.
The transfer is triggered by a debug event of the onchip debug support
(OCDS) unit. There are several types of debug events that can trigger
the transfer depending on the actual type of controller. A typical use
case provided by all supported controller types is to trigger on write
accesses on a single variable and to transfer the new value of the
variable.
The recording is done while the target system is in running state.
OCDS L2 and MCDS Trace Feature Comparison The following table gives an overview about the OCDS L2 and MCDS trace features of the Infineon TriCore microcontrollers.
| Feature list | new MCDS | known OCDS L2 | | Supported Chips | TC1796ED, TC1766ED | Any TriCore Derivative | | TriCore Instruction Pointer Trace |  |  | | DMA Trace |  |  | | PCP Instruction Pointer Trace |  |  | | PCP Channel (Priority) Trace |  | | | Data Trace, Watch point Trace, Bus Trace |  | | | TriCore-PCP mixed Instruction Pointer Trace |  | | | Number of Ranges to be traced simultaneously | 6 ranges | 1 range | | OCDSL1 Trigger Condition |  |  | | Sequential Trigger Condition |  | | | Reference-Clock (USB-Clock) based Time Stamps |  | | | Time based Trigger Condition |  | | | Tick based Time Stamps |  |  | | Single shot Time Stamps for Time measurement |  | | | Stopping TriCore and/or PCP on Trigger Condition |  | Manual configuration | | Emitting Signal on external Break pin on Trigger |  | Manual configuration | | Connector | 16-Pin standard JTAG Connector | 60-Pin OCDS L2 Connector with Trace pod | | UDE-Tool Ordering Code | UDE/UAD2 and UEC | UDE/UAD2+-TC L2 |
Trademarks: ARM, EmbeddedICE, Embedded Trace Macrocell are trademarks of ARM Limited. TriCore is a trademark of Infineon Technologies. |