background image

3

USB TAP Users Guide

Table of Contents

1

Introducing the CodeWarrior™ USB TAP Emulator

5

What is the USB TAP Emulator? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

Product Highlights. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6

The Debugging Environment  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

USB TAP Emulator Benefits. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

Target Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

Operating Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

Standard Electrostatic Precautions  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

Electrical Requirements  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

Operating Temperature . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

Target Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9

Related Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9

2

Connecting to the Target and your Host Computer

11

Debug Port Connector Information  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11

Target Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12

Setting the Debug Port Clock Frequency . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13

Connecting to your Host Computer  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13

What To Do Next  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13

3

Using the USB TAP

15

USB TAP System Startup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15

Notes on Using the USB TAP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15

Run/Pause/Mixed Mode States . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16

Breakpoints in Exception/Interrupt Handlers . . . . . . . . . . . . . . . . . . . . . . . . 16

4

Hardware Specifications

17

Connectors and LEDs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17

Run/Pause Indicator  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18

Transmit/Receive Indicator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18

USB Connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18

Debug Port Connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19

U SB_TA P.book  Page 3  Thursday, N ovem ber 10, 2005  2:27 PM

Summary of Contents for NXP CodeWarrior USB TAP

Page 1: ...CodeWarrior USB TAP Users Guide Revised 11 November 2005 USB_TAP book Page1 Thur s day Novem ber10 2005 2 27 PM...

Page 2: ...lications and actual performance may vary over time All operating parameters including Typ icals must be validated for each customer application by customer s technical experts Freescale Semiconductor...

Page 3: ...ion 9 2 Connecting to the Target and your Host Computer 11 Debug Port Connector Information 11 Target Connection 12 Setting the Debug Port Clock Frequency 13 Connecting to your Host Computer 13 What T...

Page 4: ...Information 27 C BDM Connector Information 31 D OnCE Connector Information 37 E ARM JTAG Connector Information 41 F USB TAP Firmware Loader 47 The USB TAP Internal Software Overview 47 Loader Software...

Page 5: ...ctions are What is the USB TAP Emulator Operating Requirements Related Documentation What is the USB TAP Emulator The USB TAP emulator uses advanced emulation technology to provide control of and visi...

Page 6: ...Red Hat Linux version 8 0 or 9 0 Fedora Core 3 or Core 4 and Mandrake Linux 10 0 Supports all CPU core speeds Lets you control and debug software running in target with minimal intrusion into target...

Page 7: ...USB TAP emulator makes it possible for you to observe registers and the current state of target memory You can halt program execution at predefined states and examine the data for a particular program...

Page 8: ...oducing items such as non ESD approved plastics tape and packaging foam away from the instrument and the target The above precautions should be considered as minimum requirements for a static controll...

Page 9: ...t a JTAG COP target processor the QACK signal must be pulled low The USB TAP emulator pulls this signal low through the JTAG COP connector Related Documentation This manual describes the procedures fo...

Page 10: ...Introducing the CodeWarrior USB TAP Emulator Related Documentation 10 USB TAP Users Guide USB_TAP book Page10 Thur s day Novem ber10 2005 2 27 PM...

Page 11: ...handling or transporting the USB TAP emulator or connecting to or disconnecting from a target system always use proper anti static protection measures including using static free bench pads and ground...

Page 12: ...ed on the USB TAP s gray ribbon cable by a red line down one side of the cable and a small triangle in the plastic socket To connect the USB TAP connector to the target debug port header 1 Remove powe...

Page 13: ...ons in the design of target systems it is not possible to guarantee that all systems can be operated at the maximum debug port clock rates These variations include circuit impedances trace lengths and...

Page 14: ...Connecting to the Target and your Host Computer What To Do Next 14 USB TAP Users Guide USB_TAP book Page14 Thur s day Novem ber10 2005 2 27 PM...

Page 15: ...d the USB TAP drivers Installed the debugger software and properly configured it to communicate with the USB TAP To start up the USB TAP 1 Apply power to your target system 2 Start the debugger You ar...

Page 16: ...ctual exception handler and then a postamble that restores processor context The rule is you can use software breakpoints in the actual exception handler code but not in the code where processor conte...

Page 17: ...rs and LEDs USB TAP Specifications Connectors and LEDs Figure 4 1 and Figure 4 2 show the various LEDs and connectors of the USB TAP device Figure 4 1 USB TAP Device Top View Figure 4 2 USB TAP Device...

Page 18: ...ebugger is connected to the USB TAP Transmit Receive Indicator The transmit receive labeled TX RX LED indicates the state of the USB interface as follows The LED flashes red when the USB TAP is powere...

Page 19: ...eing connected to it does not come with pin 8 removed USB TAP Specifications Figure 4 3 shows the dimensions of the USB TAP device Figure 4 3 USB TAP Dimensions Electrical Characteristics The USB TAP...

Page 20: ...Table 4 1 USB TAP Physical Characteristics Current consumption USB TAP current consumption from USB cable 200 mA USB TAP current consumption from target 50 A Physical dimensions USB TAP dimensions 5...

Page 21: ...tor Table A 2 provides a general description of each JTAG COP signal and the CodeWarrior USB TAP for JTAG COP operational requirements NOTE All JTAG COP signals must meet accepted standards for JTAG C...

Page 22: ...nnector 50mA driver1 5 HALTED Bi directional Open drain 100Ohm to ground when asserted by USB TAP emulator 35pF load when not asserted2 6 TGT PWR From target 2MOhm pull down plus 0 01uF load 7 TCK Fro...

Page 23: ...el dynamic signal trace TDO should have a series termination resistor located near the target processor 2 QACK May be wired to the target processor QACK is an input to most PowerPC processors and must...

Page 24: ...TRST TCK TMS TDI TGT PWR pin 6 should be connected to target Vcc through a 1KOhm pull up 7 TCK Must be wired to the target processor The USB TAP emulator drives the TCK output with up to 50mA The TCK...

Page 25: ...nal widths distance from signal line A So that from the center of line A to the center of line B there should be 0 0025 0 005 0 005 0 0025 0 015mil Target bias should maintain one signal width spacing...

Page 26: ...JTAG COP Connector Information 26 USB TAP Users Guide USB_TAP book Page26 Thur s day Novem ber10 2005 2 27 PM...

Page 27: ...ween the USB TAP for DPI emulator and the target the DPI signals must meet the requirements listed in Table B 2 Figure B 1 CodeWarrior USB TAP for DPI Connector Pin Assignments To connect the CodeWarr...

Page 28: ...Bi directional Open drain 100Ohm to ground when asserted by USB TAP 35pF load when not asserted1 8 DSDI From USB TAP connector 50mA driver 9 VDD From target 2MOhm pull down plus 0 01uF load 10 DSDO Fr...

Page 29: ...to ground through a 100Ohm resistor 8 DSDI Must be wired to the target processor The USB TAP emulator drives the TDI output with up to 50 mA 9 VDD Must be wired to the target The USB TAP emulator use...

Page 30: ...DPI Connector Information 30 USB TAP Users Guide USB_TAP book Page30 Thur s day Novem ber10 2005 2 27 PM...

Page 31: ...signal names direction pin numbers descriptions and drive capabilities for the USB TAP BDM Connector Table C 2 provides a general description of each BDM signal and the USB TAP for BDM operational req...

Page 32: ...ly but firmly press the USB TAP for BDM connector onto the header on the target CAUTION Failure to properly connect the USB TAP for BDM emulator to the target may damage the USB TAP for BDM emulator o...

Page 33: ...ctor 50mA driver 5 GND n a 6 Reserved Bi directional Open drain 100Ohm to ground when asserted by USB TAP emulator 35pF load when not asserted1 7 RESET Bi directional Open drain 100Ohm to ground when...

Page 34: ...is connected directly the USB TAP ground inside the USB TAP 4 DSCLK DSCLK must be connected to the target s processor It is driven by the USB TAP as an output with up to 50mA This signal is the clock...

Page 35: ...TAP does not currently use this signal 13 PST2 Need not be wired to the target The USB TAP does not currently use this signal 14 PST1 Need not be wired to the target The USB TAP does not currently us...

Page 36: ...e USB TAP ground inside the USB TAP 24 PSTCLK Need not be wired to the target The USB TAP emulator does not currently use this signal 25 Core Voltage Need not be wired to the target The USB TAP does n...

Page 37: ...OnCE Connector Table D 2 provides a general description of each OnCE signal and the CodeWarrior USB TAP for OnCE operational requirements NOTE All OnCE signals must meet accepted standards for OnCE si...

Page 38: ...USB TAP connector 50mA driver 8 No Connect Key n a 9 RESET Bi directional Open drain 100Ohm to ground when asserted by USB TAP 35pF load when not asserted1 10 TMS From USB TAP connector 50mA driver 11...

Page 39: ...arget processor 4 GND Must be wired to the USB TAP GND is connected directly to the USB TAP ground inside the USB TAP 5 TCK Must be wired to the target processor The USB TAP emulator drives the TCK ou...

Page 40: ...TRST 12 Reserved Not required for emulation 13 Reserved Not required for emulation 14 TRST Must be wired to the target processor The USB TAP emulator drives the TRST output with up to 50 mA The TRST t...

Page 41: ...rection pin numbers descriptions and drive capabilities for the CodeWarrior USB TAP for ARM JTAG Table E 2 provides a general description of each ARM JTAG signal and the CodeWarrior USB TAP for ARM JT...

Page 42: ...pull down plus 0 01 F load 2 VSUPPLY From target VSUPPLY is not used by the USBTAP 3 TRST FROM USB TAP connector 50mA driver1 4 GND n a 5 TDI From USB TAP connector 50mA driver 6 GND n a 7 TMS From US...

Page 43: ...arget 30pF load 14 GND n a 15 SRST Bi directional Open drain 100Ohm to ground when asserted by USB TAP 35pF load when not asserted2 16 GND n a 17 DBGRQ From USB TAP connector 50mA driver 18 GND n a 19...

Page 44: ...connected directly to the USB TAP ground inside the USB TAP 5 TDI Must be wired to the target processor The USB TAP emulator drives the TDI output with up to 50 mA The TDI trace run should be kept as...

Page 45: ...the USB TAP 15 SRST Must be wired to the target processor The USB TAP drives the SRST output with up to 50 mA During reset the USB TAP drives SRST to ground through a 100Ohm resistor Note TRST must n...

Page 46: ...ARM JTAG Connector Information 46 USB TAP Users Guide USB_TAP book Page46 Thur s day Novem ber10 2005 2 27 PM...

Page 47: ...USB TAP loader firmware and the underlying software framework required to run the debugger When the USB TAP is first connected to the host USB port it runs the loader software This is indicated by th...

Page 48: ...Linux Run the command CodeWarrior Installation ccs bin ccs This will launch CCS and open the command window automatically Figure F 1 CCS Icon 3 In the CCS Command window enter the command updateutap...

Page 49: ...fore disconnecting your USB TAP wait for the flashing status light to turn off What To Do Next When you have completed reprogramming the firmware images stored in the USB TAP flash EPROM configure you...

Page 50: ...USB TAP Firmware Loader What To Do Next 50 USB TAP Users Guide USB_TAP book Page50 Thur s day Novem ber10 2005 2 27 PM...

Page 51: ...lation includes hotplug scripts which should set the appropriate permissions for the USB TAP emulator To confirm that they have been installed correctly ensure that the file etc hotplug usb usbtap exi...

Page 52: ...Troubleshooting 52 USB TAP Users Guide USB_TAP book Page52 Thur s day Novem ber10 2005 2 27 PM...

Page 53: ...ispatcher software overview 47 DPI connector information 27 DSCL signal 13 E Electrical characteristics 19 requirements 8 Electrostatic discharge 8 Emulator state mixed mode 16 pause 16 run 16 ESD 8 E...

Page 54: ...highlights 6 Q QACK 9 R Reprogramming USB TAP firmware image 48 Requirements electrical 8 target 9 Run mode 16 Run Pause indicator 18 Run Pause Mixed Mode states 16 S Setting debug port clock frequenc...

Reviews: