Application Note Debug Cable C166

Similar documents
Application Note Debug Cable XC800

Application Note Debug Cable TriCore

Application Note, V 1.1, Feb AP DAP Connector. Microcontrollers

Easy Kit Board Manual

Modifying Xilinx ML605 for Direct JTAG Access

TRACE32 Documents... ICD In-Circuit Debugger... Processor Architecture Manuals... XC XC800 Debugger... 1

Infineon DAP Active Probe

_ V1.0. Freescale MPC5607B Bolero Mini Target Board. User s Manual. Ordering code

All information, including contact information, is available on our web site Feel free also to explore our alternative products.

All information, including contact information, is available on our web site Feel free also to explore our alternative products.

Digilab 2 Reference Manual

Digilab 2 XL Reference Manual

TAP Expander Blackhawk Emulator Expansion Pod. Document Part Number: REV B

XC164CS Prototype Board

_ V1.3. MPC5643L Target Board. User s Manual. Ordering code

Revision: 5/7/ E Main Suite D Pullman, WA (509) Voice and Fax. Power jack 5-9VDC. Serial Port. Parallel Port

TLE9869 Eval.Kit V1.0 Users Manual

All information, including contact information, is available on our web site Feel free also to explore our alternative products.

Digilab 2E Reference Manual

Debugging Embedded Cores in Xilinx FPGAs [PPC4xx]

The Atmel-ICE Debugger

User Manual For CP-JR ARM7 USB-LPC2148 / EXP

IAR Embedded Workbench

XC2000 series Board Manual, V.1.0, June XC2000 Easy Kit. Board REV. V1.0. Microcontrollers. Never stop thinking.

XC2000 Family AP Application Note. Microcontrollers. XC2236N Drive Card Description V1.0,

IAR Embedded Workbench

UAD2 + Universal Access Device2 plus

XE166 family Easy Kit

isppac-powr1208 Evaluation Board PAC-POWR1208-EV

ARM HSSTP Active Probe

1. ONCE Module 2. EBDI. Application Note. AN2327/D Rev. 0, 9/2002. M Core EBDI Interface Application Note

MMCLAB01 Logic Analyzer Board User s Manual

Evaluation & Development Kit for Freescale PowerPC MPC5517 Microcontroller

Figure 1. JTAGAVRU1 application The JTAGAVRU1 is supported by AVR Studio. Updated versions of AVR Studio is found on

Application Note, V1.3, September 2008 AP XC2000/XE166 Family. Microcontrollers

isppac-powr1208p1 Evaluation Board PAC-POWR1208P1-EV

XE166 Family AP Application Note. Microcontrollers. X E D r i v e C a r d H a r d w a r e D e s c r i p t i o n Board REV.

4X4 Driver Shield Manual

Boundary Scan Implementation

All information, including contact information, is available on our web site Feel free also to explore our alternative products.

ET-UARTSWD Users Guide

MIPI Alliance Recommendation for Debug and Trace Connectors

TMS320-XDS100-V3 DSP and ARM JTAG emulator and adapter USER S MANUAL. Document revision I, October 2017 Designed by OLIMEX Ltd, 2013

IAR Embedded Workbench

S USB-PC Connection (Cable Not Included) S USB Powered (No External Power Supply Required) S Real-Time Data Acquisition Through the USB

_ V1.3. MPC564xB ActiveGT POD. POD Hardware Reference

E1/E20 Emulator Additional Document for User s Manual (RX User System Design)

HAND HELD PROGRAMMER QUICK START GUIDE

Documentation Addendum, V1.2, Aug TC Bit Single-Chip Microcontroller Delta BC-to-BE Step. Microcontrollers

Nios Embedded Processor Development Board

NIOS II Instantiating the Off-chip Trace Logic

ByteBlaster II Parallel Port Download Cable

ispdownload Cables User s Guide

Revision: May 11, E Main Suite D Pullman, WA (509) Voice and Fax LED. Doc: page 1 of 6

TRACE32 Getting Started... ICD In-Circuit Debugger Getting Started... ICD Introduction... 1

HAND HELD PROGRAMMER QUICK START GUIDE

All information, including contact information, is available on our web site Feel free also to explore our alternative products.

PIC-32MX development board Users Manual

USB Debug Adapter. Power USB DEBUG ADAPTER. Silicon Laboratories. Stop. Run. Figure 1. Hardware Setup using a USB Debug Adapter

AGM CPLD AGM CPLD DATASHEET

ST SPC58 B Line Emulation Adapter System

Product Datasheet: DWM1001-DEV DWM1001 Module Development Board. Key Features and Benefits

4I39 RS-422 ANYTHING I/O MANUAL

AC/DC. Adapter. Serial. Adapter. Figure 1. Hardware Setup

DYNAMIC ENGINEERING 150 DuBois St. Suite 3, Santa Cruz, Calif Fax Est.

IAR Debug probes User Guide

BOUNDARY-SCAN DFT & LAYOUT PRINCIPLES at BOARD LEVEL

SAM-ICE. Introduction. Programmers and Debuggers USER GUIDE

_ V1.1. EVB-5566 Evaluation & Development Kit for Freescale PowerPC MPC5566 Microcontroller. User s Manual. Ordering code

Product Overview: DWM1001-DEV DWM1001 Module Development Board. Key Features and Benefits

DEVBOARD3 DATASHEET. 10Mbits Ethernet & SD card Development Board PIC18F67J60 MICROCHIP

EMUL-PPC-PC. Getting Started Guide. Version 1.0

Pmod modules are powered by the host via the interface s power and ground pins.

XE166 Family. Hardware Manual. Microcontrollers. Hardware Manual XE166 Low End Easy Kit Board V1.5 V1.5,

DS28CM00. I²C/SMBus Silicon Serial Number

Modtronix Engineering Modular Electronic Solutions SBC28DC. Single board computer for 28 pin DIP PICs

All information, including contact information, is available on our web site Feel free also to explore our alternative products.

Prototyping Module Datasheet

Bolero3M Nexus Emulation Adapter 256BGA 176TQ

XETK-T2.1 Emulator Probe for Infineon TC1792/ TC1796/ TC1796ED/ TC1797/ TC1797ED User s Guide

Arduino Uno. Arduino Uno R3 Front. Arduino Uno R2 Front

PANDORA HACKER GUIDE

All information, including contact information, is available on our web site Feel free also to explore our alternative products.

Spartan-II Demo Board User s Guide

Figure 1. 8-Bit USB Debug Adapter

RapID Platform Network Interface Module Datasheet June 4, 2012

MINI-CAN User Manual. Issue 1.02

Supported Architectures Supported Cores Supported microcontroller families. Cortex-M0 Cortex-M1 Cortex-M3 Cortex-M4 ARM7 ARM720T ARM7DI ARM7TDMI

All information, including contact information, is available on our web site Feel free also to explore our alternative products.

CEIBO FE-5111 Development System

Introduction Testing analog integrated circuits including A/D and D/A converters, requires a special digital interface to a main controller. The digit

for Summit Analyzers Installation and Usage Manual

KPIC-0818P (V050919) Devices Included in this Data sheet: KPIC-0818P

In-System Programming ProASIC PLUS Devices

#64. Quick start: (photo of 8154 reference board) The numbers on the photo correspond to the text explanation on the right:

USB BitJetLite Download Cable

An Introduction to the MPC57xx Nexus Aurora Interface

bdiaccess Installation Manual MPC85xx/P10xx/P20xx JTAG interface library by Abatron AG Manual Version 1.01 for BDI3000

Mega128-DEVelopment Board Progressive Resources LLC 4105 Vincennes Road Indianapolis, IN (317) (317) FAX

Legacy Debug Adapters

Transcription:

Application Note Debug Cable C166 TRACE32 Online Help TRACE32 Directory TRACE32 Index TRACE32 Documents... ICD In-Circuit Debugger... Processor Architecture Manuals... C166 Family... XC16x Application Notes... Application Note Debug Cable C166... 1 Introduction... 3 Debug Cables... 4 OCDS Debug Cables 4 Unidirectional Cables 4 OCDS Uni-Dir Debug Cable V0 5 OCDS Uni-Dir Debug Cable V1 6 Electrical Characteristics 7 Bidirectional OCDS Debug Cables 7 OCDS Bi-Dir Debug Cables V1 and V2 7 OCDS Bi-Dir Debug Cable V3, V4 8 Electrical Characteristics 9 Debug Interface Description... 10 JTAG Interface 10 Pin Assignments 10 Signal Description 11 Enabling the On-chip Debug System OCDS 12 DAP Interface 13 Pin Assignment 13 Signal Description 13 Enabling the DAP Interface on the Chip 14 Configuring PowerView... 15 Selecting the Interface Mode 15 Enabling the DAP Interface on the Chip 15 DAP User Pins 16 Adapters, Converters and Extensions... 18 Adapter 16-pin 100 mil to 50 mil 18 Application Note Debug Cable C166 1

Converter 16-pin JTAG to DAP for TriCore/XC2000/XC800 19 Recommended Connectors... 20 Standard 2x8 Connector 20 Half-size 2x8 Connector 20 Half-size 2x5 Connector 21 Half-size 2x5 Connector with Keying Pin 7 22 Application Note Debug Cable C166 2

Application Note Debug Cable C166 Version 06-Nov-2017 Introduction The debugger communicates with the CPU via its debug interface. Depending on the CPU and the chip, there are different debug interfaces available. For Infineon CPUs the most commonly used interfaces are JTAG and DAP. This Application Note describes the Lauterbach OCDS Debug Cables for the C166 and XC2000 architecture and the physical debug ports required on the target side. All CPUs support at least the JTAG Interface, and some in addition the DAP interface. All OCDS debug cables support the JTAG interface, and the bi-directional cables also the DAP interface. JTAG (Joint Test Action Group) is a 5-pin interface, a state machine and a serial communication protocol defined by IEEE Std 1149.1. See the standard for more details. DAP (Device Access Port) is a 2- or 3-wire interface and a telegram based communication protocol promoted by Infineon. DAP supports two modes: DAP2 with a clock line (DAP0) and a bidirectional data line (DAP1). DAP3 with a clock line (DAP0), an input (DAP1) and an output line (DAP2)(only Tricore). Note that the DAP Interface used by ARM cores is completely different from the Infineon DAP. The following architectures are supported by the OCDS Debug Cables: Infineon ST C166, C166CBC, XC16x, XC2000, XE16x SUPER10 Not all of these CPUs have an interface compatible with an OCDS Debug Cable. Also not all CPUs support all debug interfaces. Consult XC2000/XC16x/C166CBC Debugger (debugger_166cbc.pdf) or the CPU documentation for details. Application Note Debug Cable C166 3

Debug Cables OCDS Debug Cables There are two basic types of OCDS Debug Cables: uni-directional and bi-directional Cable type Interfaces Reset line TriState output unidirectional JTAG set yes bidirectional JTAG, DAP set, read no Cables with reset line read-back are able to detect a reset event on the nreset line. The TriState output indicates whether the output drivers of the debug cable are currently tristated or not, e.g. when SYStem.Mode NoDebug is active. This can be used, e.g. for triggering a Logic Analyzer. See the SYStem.LOCK command for additional information. The type and the version of the cable can be obtained by the VERSION.HARDWARE command: The output on the screenshot reports a bidirectional cable. On the back side of the Debug Cable there is a sticker with the Serial Number and the programmed licenses. Unidirectional Cables The unidirectional OCDS debug cables can operate each line in one direction only, as input or output. This is a hardware restriction, so only JTAG mode is supported. The following sections are named after the output in the VERSION.HARDWARE window. Application Note Debug Cable C166 4

OCDS Uni-Dir Debug Cable V0 Version 0 debug cables have been shipped for the first time in 1998. The debug cable consists of a plastic housing with a ribbon cable attached. The total ribbon cable length is 40 cm (15.75 inch), including the part covered by the housing. Some cables have a connector on their side, indicating whether the cable is in tristate. The debug cable type can be identified as follows: CABLE.NAME() ID.CABLE() VERSION.CABLE() OCDS Uni-Dir Debug Cable V0 0x0000 0x0 Application Note Debug Cable C166 5

OCDS Uni-Dir Debug Cable V1 Version 1 debug cables completely replaced the version 0 cables in 2006. The cable is RoHS compliant and has a plastic housing. The ribbon cable is removable from the housing, its total length is 40 cm (15.75 inch). There is a single cable contact on the casing of the debug cable which can be used to detect if the JTAG connector of the debugger is tristated e.g. when SYStem.Mode NoDebug is active. If so, also this signal is tristated, otherwise it is pulled low. This can be used, e.g. for triggering a Logic Analyzer. See the SYStem.LOCK command for additional information. The debug cable type can be identified as follows: CABLE.NAME() ID.CABLE() VERSION.CABLE() OCDS Uni-Dir Debug Cable V1 0x0000 or 0x0028 0x1 Application Note Debug Cable C166 6

Electrical Characteristics All unidirectional cables have the same electrical characteristics. Input Pins Input voltage range 2.5 5.2 V. VTREF voltage range Maximum level for low detection Minimum level for high detection 2.25 5.5 V, about 2 ma required. V IL_max =0.8V V IH_min =2.0V Output Pins Output voltage depends on VTREF. All outputs have a 47 serial termination. TDO has a 47 k pull-up resistor. Target power detection The level of VTREF where target power down is detected depends on the used POWER DEBUG or POWER TRACE device. Please contact Lauterbach for more information. Please choose Help menu > Support > System Info and provide the generated support information. Bidirectional OCDS Debug Cables The bidirectional OCDS debug cable was developed for supporting JTAG and DAP mode. Because the adaption logic has moved from the big housing to the smaller one on the target connector for improving EMC behavior, this kind of cable is also called Whisker. For using the JTAG interface, the bidirectional cable can be directly connected to the target s debug port. For the DAP2 modes an adapter may be necessary. The following sections are named after the output in the VERSION.HARDWARE window. OCDS Bi-Dir Debug Cables V1 and V2 Prototypes, never shipped. Application Note Debug Cable C166 7

OCDS Bi-Dir Debug Cable V3, V4 Beginning with September 2008, the bidirectional debug cables completely replaced the unidirectional OCDS debug cables. In JTAG mode they are backwards compatible. The cable is RoHS compliant and consists of two plastic housings. The ribbon cable is attached to the Whisker and the housing, its total length is 45 cm (17.72 inch). The debug cable type can be identified as follows: CABLE.NAME() ID.CABLE() VERSION.CABLE() OCDS Bi-Dir Debug Cable (Whisker) 0x0029 0x3 or 0x4 Application Note Debug Cable C166 8

Electrical Characteristics All bidirectional cables have the same electrical characteristics. Input pins Input voltage range -0.3 5.3 V. VTREF voltage range High/ low detection Low level detection range High level detection range -0.3 5.3 V, about 2 ma required. VTREF / 2, Hysteresis = 50 mv -0.5 0.99 V 2.31 5.5 V All output pins have a 47 serial termination. Output voltage depends on VTREF. TDO has a 100 k pull-down resistor. Target power detection Target power down is detected for VTREF 0.27 V. Application Note Debug Cable C166 9

Debug Interface Description JTAG Interface The JTAG interface can only be used with the standard 16-pin debug connector, also called JTAG Connector. The 10-pin DAP connector does not support JTAG. For directly connecting the Debug Cable to the target board, a Standard 2 x 8 Pin Connector is required on the target. In case of limited space a Half-size 2x8 Pin Connector and the Half-Size Adapter can be used instead. Pin Assignments OCDS Debug Port for 166CBC, Super10 and XC2000 Signal Pin Pin Signal TMS 1 2 VCCS TDO 3 4 GND CPUCLOCK 5 6 GND TDI 7 8 RESET- TRST- 9 10 BRKOUT- TCLK 11 12 GND BRKIN- 13 14 N/C N/C 15 16 GND Application Note Debug Cable C166 10

Signal Description Name I/O Description Recommendations TMS O Test Mode Select None. TCLK O Test clock None. TDI O Test Data In No other devices in the JTAG chain are allowed between the Debug Cable and the CPU (only TriCore, 166CBC and XC2000). TDO I Test Data Out If there are multiple devices on the JTAG chain, connect TDO to the TDI signal of the next device in the chain. Connected to VCC via a 47 k pull-up resistor (Uni-directional Debug Cable) or to GND via a 100 k pull-down resistor (Bi-directional Debug Cable). TRST O Test Reset Connect to TRST. Never connect TRST to PORST. VCCS I VCC Sense VCCS is the processor power supply voltage. It is used to detect if target power is on and it is used to supply the output buffers of the debugger. That means the output voltage of the debugger signals depends directly on VCCS. GND - System Ground Plan RESET O Target Reset Power-on Reset Connect to digital ground. Connect to PORST. Connect PORST to VCC via a 10 k pull-up resistor. Never connect to PORST to TRST. BRKIN (I)/O Break input Optional. Connected via a 47 serial resistor. BRKOUT I/(O) Break output Optional. Connected to VCC via a 47 k pull-up resistor. CPUCLOCK I CPU Clock Optional. N/C - Not Connected Connect to Ground. KEY - Keying pin 16. Can be removed from connector. If the corresponding plug hole is removed, this also avoids incorrect polarization. If not removed from connector, connect to GND for shielding purposes. Application Note Debug Cable C166 11

General recommendations: Do not connect the reserved pin. Do connect all GND and N/C for shielding purpose, though they are connected on the debugger. RESET is controlled by an open drain driver. An external watchdog must be switched off if the In- Circuit Debugger is used. The Bidirectional Debug Cables have a 47 k pull-up resistor connected to RESET to guarantee a proper SYStem.Mode Up. BRKIN and BRKOUT must be configured in Port configuration before they can be used. CPUCLOCK is optional. The CPU clock output has to be enabled by setting the appropriate register. If available, see the Evaluation Board Schematics for an example. The Infineon devices of the TriCore, 166CBC, XC16x, XC2000 and XE16x chip families have a so-called Cerberus IO Client. The protocol of this IO Client does not allow daisy-chaining of more than one device with a Cerberus Module. If combined with other non-cerberus devices, the Cerberus device must be the first one in the chain. Enabling the On-chip Debug System OCDS For security reasons some chips have the OCDS disabled by default. When a Power-on Reset is performed, the chip samples the state of the OCDSE signal at the falling edge of the PORST or RESET signal. When it is low, OCDS is enabled, otherwise disabled. The debugger drives the OCDSE signal low when performing a reset in case of a SYStem.Mode Up or SYStem.Mode Go thus enabling OCDS. In case of a disabled OCDS, debugging after a Hot Attach using SYStem.Mode Attach is not possible. To make enabling of OCDS independent of the debugger, OCDSE can be connected permanently or switchable to GND via a pull-down. Some CPUs do not have an OCDSE signal and are able to detect the debugger presence by another mechanism. For these CPUs the Hot Attach is possible without restrictions. Application Note Debug Cable C166 12

DAP Interface The DAP Interface can only be used with the 10-pin debug connector, also called DAP connector. For connecting the Debug Cable to the Half-size 2x5 Pin DAP Connector the DAP Converter is required. Pin Assignment DAP Debug Port for XC2000/XE16x (10-pin) Signal Pin Pin Signal VREF 1 2 DAP1 GND 3 4 DAP0 GND 5 6 USER0 GND 7 8 DAPEN- (TRST-) GND 9 10 RESET- (PORST-) Signal Description Name I/O Description Recommendations VREF I Reference Voltage VREF is the processor power supply voltage. It is used to detect if target power is on and it is used to supply the output buffers of the debugger. That means the output voltage of the debugger signals depends directly on VREF. GND - Ground Connect to Ground. DAP0 O DAP Clock None. DAP1 (I)/O DAP Data In/ Out None. DAPEN O DAP Port Enable Optional. If high by Debugger at Power-on Reset, the DAP Port is enabled by the CPU. In case DAPEN is handled by the target hardware, this signal can be used as the USER1 signal. USER0 I/O User signal 0. Optional. Can be used as input or output. Can not be used in DAP3 Mode. Application Note Debug Cable C166 13

USER1 I/O User signal 1. Optional. Can be used as input or output. Can not be used when DAP Port Enabling is handled by the debugger. RESET O Target Reset Power-on Reset Connect to RESET or PORST. Never connect to TRST. General recommendations: Do connect all GND and N/C for shielding purpose, though they are connected on the debugger. RESET is controlled by an open drain driver. An external watchdog must be switched off if the In- Circuit Debugger is used. The Bidirectional Debug Cables have a 47 k pull-up resistor connected to RESET to guarantee a proper SYStem.Mode Up. If available, see the Evaluation Board Schematics for an example. Enabling the DAP Interface on the Chip For safety reasons the DAP Interface on the Chip is normally disabled. On a Power-on Reset, a configuration pin of the chip (normally TRST) is sampled by the CPU on the falling edge of PORST. Depending on the level of the configuration pin the DAP Interface is enabled. The configuration pin can either be programmed by the target hardware, e.g. by a permanent or switchable pull-up to VCC, or it can be handled through the debugger by connecting to the DAPEN or ALTEN pin of the DAP debug connector. The debugger has to be configured which method is applied on the target hardware by using the SYStem.CONFIG DAP.DAPENable command (see the particular Processor Architecture Manual for details). Note that the SYStem.CONFIG DAP option only has an effect on the DAPEN signal. Although DAP can be disabled, JTAG can be activated at any time. A change of the Debug Interface Mode (JTAG or DAP) is only possible when the debugger is not in System. Mode Up. More information can also be found in chapter Enabling the DAP Interface on the Chip. Application Note Debug Cable C166 14

Configuring PowerView The Interface Mode required by the target cannot be detected automatically. Additionally it might be necessary to configure and access the DAPEN and DAP User Pins. This chapter describes how to do so. Selecting the Interface Mode At the time this document is written, all known CPUs and all available Debug Cables support the JTAG Interface, so this Interface Mode is selected by default. If another Interface Mode is desired or required, e.g. by target configuration, it has to be selected by the SYStem.CONFIG DEBUGPORTTYPE command (see the particular Processor Architecture Manual for details): SYStem.Mode Down SYStem.CPU XC2287M-104F SYStem.CONFIG DEBUGPORTTYPE DAP2 SYStem.Mode Up ; switch to a System Mode where the Interface Mode can be changed ; select a CPU supporting DAP ; choose DAP2 Mode for debug connection ; establish debug connection in DAP2 Mode Interface modes not supported either by the cable or the CPU are locked. Note that the Interface mode can only be changed before target communication is established. Enabling the DAP Interface on the Chip If the target hardware is designed in a way that the debugger enables the DAP Mode on the CPU, this has to be configured by the SYStem.CONFIG DAP.DAPENable command (see the particular Processor Architecture Manual for details): SYStem.Mode Down SYStem.CPU TC1797ED SYStem.CONFIG DEBUGPORTTYPE DAP2 SYStem.CONFIG DAP.DAPENable ON SYStem.Mode Up ; switch to a System Mode where the Interface Mode can be changed ; select a CPU supporting DAP ; choose DAP2 Mode for debug connection ; enable DAP Mode on the CPU ; establish debug connection in DAP2 Mode Application Note Debug Cable C166 15

The DAP Interface Mode has to be selected before configuring SYStem.CONFIG DAP.DAPENable. The CPU only enables it s DAP Interface on a Power-on Reset event. The debugger does not perform this reset automatically, instead it is up to the user, e.g. by issuing a SYStem.Mode Up command. If the target is designed to enable the DAP Mode by Hardware, the default setting should be used SYStem.CONFIG DAP.DAPENable TARGET ; DAP port enabling is done by target hardware Do not confuse: SYStem.CONFIG DAP.DAPENable instructs the debugger whether the enabling of the CPU s DAP Port is done by the target hardware (TARGET) or by the debugger. The debugger can enable (ON) or disable (OFF) the port. The CPU samples the debugger s setting only on a Power-on Reset event. SYStem.CONFIG DEBUGPORTTYPE configures the debugger software which Interface Mode to use: JTAG or DAP2. DAP User Pins The DAP User Pins USER0 and USER1 can be used independently either as input, e.g. for target status feedback to the debugger, or as output, e.g. for additional target configuration. Although their purpose is not defined by the specification, their availability is dependent: USER0 and USER1 can not be used in JTAG Interface Mode. USER0 can not be used in DAP3 Interface Mode. USER1 can only be used when the enabling of the CPU s DAP Port is completely handled by the target hardware. The DAP User Pins can be configured by using the commands SYStem.CONFIG DAP.USER0 and SYStem.CONFIG DAP.USER0 (see the particular Processor Architecture Manual for details). If configured as input, the PRACTICE functions DAP.USER0() and DAP.USER1() can be used to read the status. The following example configures the USER0 pin as output: SYStem.CONFIG DAP.USER0 OUT SYStem.CONFIG DAP.USER0 Set LOW PRINT DAP.USER0() SYStem.CONFIG DAP.USER0 Set HIGH ; USER0 pin is output ; USER0 pin is low ; print status of USER0 pin ; USER0 pin is high Application Note Debug Cable C166 16

The following example configures the USER1 pin as input: SYStem.CONFIG DAP.USER1 IN ; USER1 pin is input IF (DAP.USER1()==1) PRINT "external event occurred" ; perform some action... A possible use case for the User Pins could be disabling an external watchdog circuit, e.g. for Flash programming or checking an important hardware status. Application Note Debug Cable C166 17

Adapters, Converters and Extensions An adapter or converter is necessary to connect a debug cable and/or a trace preprocessor to a target board in case different connector types are used or the pin assignment is different. An adapter just adapts from one connector type to another, the signal mapping and pin numbers are identical. An example is the half-size adapter which allows to connect a debug cable with a standard 2.54 inch (100 mil) plug to a target using a standard 1.27 inch (50 mil) connector. An adapter is always passive so no power supply is required. The term adapter is today mainly used with emulator-related products, for example adapters for ICE and FIRE. A converter allows connecting devices with different signal mappings and connector types. An example is the converter for the 26-pin automotive debug cable to a target using a 16-pin OCDS JTAG connector. Unused signals are connected to GND, VCC or are not connected at all. There may also be a jumper or soldering option for a user-specific solution. Converters can connect two or more devices with each other, e.g. they connect a debug cable and a trace preprocessor to the target board using a single target connector. Converters may be passive or active. An active converter needs an additional power supply, e.g. for signal level adaption or glue logic. Most active converter get this additional power from the target (VCC, VCCS or VTREF). Almost all converters are related to debuggers and trace preprocessors. Adapter 16-pin 100 mil to 50 mil The 16-pin half-size adapter can be used to connect a 100 mil 16-pin plug to a 50 mil connector, e.g. for using a small-size 16-pin debug connector. The signals are mapped 1:1, so this is a general purpose adapter. Order-Code LA-2102 Description Adapter 16-pin 100 mil to 50 mil Recommended target connector: Half-size 2x8 connector. Application Note Debug Cable C166 18

Converter 16-pin JTAG to DAP for TriCore/XC2000/XC800 The DAP converter is required for converting the DAP signals of the 16-pin OCDS bidirectional debug cable to the 10-pin Infineon DAP connector. This converter is mandatory when using DAP with the XC2000, XC800 or XE16x chip family, it is optional for the TriCore family. Order-Code LA-3815 Description Converter 16-pin JTAG to DAP for TriCore/XC2000/XC800 Recommended target connector: Half-size 2x5 connector with keying pin 7. Application Note Debug Cable C166 19

Recommended Connectors Lauterbach recommends using connectors with shroud for assuring correct polarization. Otherwise the target and/or the debugger might get damaged. Do not extend the Debug Cable to avoid bad signal quality, e.g. by increased EMC influences. Standard 2x8 Connector Standard 16 pin double row connector (two rows of 8 pins) Pin to pin spacing: 100 mil = 0.1 inch = 2.54 mm Connector example: Seltronics HC 2532-016-SW If a terminal strip without shroud is used, the spacing marked with "A" must be a minimum of 25.5mm/1" (see picture). Half-size 2x8 Connector Half-size 16 pin double row connector (two rows of 8 pins) Pin to pin spacing: 50 mil = 0.05 inch = 1.27 mm Application Note Debug Cable C166 20

Connector examples: Samtec FTSH-108-01-L-DV Samtec FTSH-108-01-L-DV-K Samtec FTSH-108-01-L-DV-EJ standard double-row with keying shroud wit ejector shroud Half-size 2x5 Connector Half-size 10 pin double row connector (two rows of 5 pins) Pin to pin spacing: 50 mil = 0.05 inch = 1.27 mm Connector examples: Samtec FTSH-105-01-L-DV Samtec FTSH-105-01-L-DV-K Samtec FTSH-105-01-L-DV-EJ standard double-row with keying shroud with ejector shroud Application Note Debug Cable C166 21

Half-size 2x5 Connector with Keying Pin 7 Half-size 10 pin double row connector (two rows of 5 pins) Pin to pin spacing: 50 mil = 0.05 inch = 1.27 mm Connector examples: Samtec FTSH-105-01-L-DV Samtec FTSH-105-01-L-DV-K Samtec ASP-168330-03 Samtec FTSH-105-01-L-DV-EJ standard double-row, remove pin 7 manually with keying shroud, remove pin 7 manually This is an Application Specific Product code for FTSH- 105-01-L-DV--K--P-TR-POL (keying shroud, pick & place pad, tape & reel) with pin 7 already removed. When ordering this version from Samtec, please refer to Lauterbach. with ejector shroud, remove pin 7 manually The picture below shows the version without keying pin. Application Note Debug Cable C166 22