P&E Microcomputer Systems Tracelink User guide

Purchase Agreement
P&E Microcomputer Systems, Inc. reserves the right to make changes without further notice to any products herein to improve reliability, function, or design. P&E Microcomputer Systems, Inc. does not assume any liability arising out of the application or use of any product or circuit described herein.
This software and accompanying documentation are protected by United States Copyright law and also by International Treaty provisions. Any use of this software in violation of copyright law or the terms of this agreement will be prosecuted.
All the software described in this document is copyrighted by P&E Microcomputer Systems, Inc. Copyright notices have been included in the software.
This software may be used by one person on as many computers as that person uses, provided that the software is never used on two computers at the same time. P&E expects that group programming projects making use of this software will purchase a copy of the software and documentation for each user in the group. Contact P&E for volume discounts and site licensing agreements.
P&E Microcomputer Systems does not assume any liability for the use of this software beyond the original purchase price of the software. In no event will P&E Microcomputer Systems be liable for additional damages, including any lost profits, lost savings or other incidental or consequential damages arising out of the use or inability to use these programs, even if P&E Microcomputer Systems has been advised of the possibility of such damage.
By using this software, you accept the terms of this agreement.
©2012 P&E Microcomputer Systems, Inc.
Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. Kinetis and ColdFire are registered trademarks of Freescale Semiconductor, Inc.
P&E Microcomputer Systems, Inc. 98 Galen St. Watertown, MA 02472
617-923-0053 http://www.pemicro.com
TRACELINKUM Manual version 1.00 August 2012
1 INTRODUCTION ............................................................................................ 1
2 QUICK START GUIDE ................................................................................... 3
3 TRACELINK HARDWARE.............................................................................. 4
3.1 Tracelink Power Supply ..................................................................................4
3.2 Ethernet Connector.........................................................................................4
3.3 USB Connector...............................................................................................5
3.4 Target Debug Connectors ..............................................................................5
3.5 Target Power ................................................................................................13
4 EXTERNAL TRACE OVERVIEW ................................................................. 15
4.1 How External Trace Works ...........................................................................15
4.2 Trace Types..................................................................................................15
4.3 Trace Filtering...............................................................................................16
4.4 Board Design Considerations .......................................................................16
5 ETHERNET CONFIGURATION ................................................................... 18
5.1 Network Architectures...................................................................................18
5.2 Network Parameters .....................................................................................19
5.3 Internet Protocol ...........................................................................................20
5.4 Connecting The Tracelink Device .................................................................20
5.5 Tracelink IP Setup Utility User Interface (ConfigureIP).................................22
5.6 Using ConfigureIP.exe To Configure The Tracelink .....................................24
6 USB CONFIGURATION ............................................................................... 27
7 CODEWARRIOR 10.x CONFIGURATION ................................................... 28
8 PRODUCTION PROGRAMMING................................................................. 33
8.1 Cyclone Key Features ..................................................................................33
8.2 Cyclone In-Depth ..........................................................................................34
Tracelink User Manual i

1 INTRODUCTION

The Tracelink is a powerful development interface capable of capturing external trace data on Freescale microcontrollers.
The Tracelink is designed to help developers find and diagnose software bugs quickly and efficiently. While a microcontroller is running, the Tracelink is constantly recording trace information into its internal memory buffer, which can later be used by supporting software to provide program flow charts and profiling statistics.
Figure 1-1: P&E’s Tracelink
In addition to trace capture, the Tracelink also supports all standard run control operations, such as single-stepping, setting breakpoints, register/memory access, and flash programming. The following features make the Tracelink an extremely valuable debug tool:
Tracelink User Manual 1
Multiple Freescale Architecture Support
• ColdFire V2-4
• Kinetis
• S12Z (coming soon)
External Trace Capture
• Supports trace port speeds up to 250 MHz
• 128MB of trace storage
Multiple Voltage Operation
• Automatically detects and caters to target voltages ranging from 1.8V to 5V
Target Power Generation
• Can generate 2V, 3V, or 5V to directly power target microcontroller
Multiple Communication Interfaces
• Ethernet 10/100 baseT
• USB 1.1
Additional Tracelink resources can be found at pemicro.com/tracelink.
Tracelink User Manual 2

2 QUICK START GUIDE

Step 1. Install Software
The accompanying software includes all necessary drivers and configuration utilities needed for the Tracelink. After installation is complete, make sure the PC is rebooted before moving on to the configuration step.
Step 2. Power On Tracelink
Power up the Tracelink by connecting the included 9V power supply. A blue LED will be illuminated on the Tracelink to indicate it is receiving power.
Step 3. Ethernet Configuration
Connect the Tracelink to the PC using a USB connection. Run the ConfigureIP software utility to set up the network parameters (IP address, subnet mask, etc.). The Ethernet port will not function properly until this one-time configuration is complete. You may wish to refer to Section 5 - ETHERNET CONFIGURATION. If the Tracelink Ethernet connection is not required, this step may be skipped.
Step 4. Hardware Setup
Connect the appropriate ribbon cable between the Tracelink and the target board. The Tracelink case flips open for easy access to the ribbon cable connectors. Power up the target board. A yellow LED on the Tracelink will be illuminated to indicate that it is detecting target power.
Finally, connect the USB or Ethernet cable from the Tracelink to the host PC.
Step 5. Launch PC Software
The Tracelink is now ready to be used with PC software to debug and analyze trace. Please refer to the documentation from the software vendor (e.g., P&E software, Freescale
TM
CodeWarrior) for more details on any additional configuration that may be
required.
Tracelink User Manual 3

3 TRACELINK HARDWARE

This chapter provides more in-depth technical detail about the features and interfaces of the Tracelink unit.

3.1 Tracelink Power Supply

The Tracelink requires a regulated 9V DC center positive power supply with a 2.5/
5.5mm female plug. The power supply plugs into the power jack located on the top of the unit.

3.2 Ethernet Connector

Figure 3-1: Power Jack
The Tracelink provides a standard RJ45 socket to communicate with a host PC through the Ethernet Port (10/100 BaseT).
Figure 3-2: Ethernet Connector
Tracelink User Manual 4

3.3 USB Connector

The Tracelink provides a USB connector for Universal Serial Bus communications with the host PC. The Tracelink is a USB 1.1 compliant device.
Figure 3-3: USB Connector

3.4 Target Debug Connectors

The different families of Freescale microcontrollers are supported via the multiple debug headers located on the Tracelink. These headers are accessed by flipping open the plastic case. Pin 1 of each header is marked with the number “1” and also has a rounded corner.
Note: To avoid improper connections, the red stripe of the ribbon cable should always be
oriented towards Pin 1.
Warning: Do not attempt to use multiple ports at once, as this may damage both the target
processors and the Tracelink.
Tracelink User Manual 5
Figure 3-4: Tracelink Headers, Pin 1 Highlighted
Note: For signals requiring pull-up or pull-down resistors, please note that most
microprocessors implement internal resistors to meet these requirements. Otherwise, an external resistor must be used.
Tracelink User Manual 6
3.4.1 PORT A: Kinetis (Mini-10)
Table C-1. Kinetis Mini-10 Signals (PORT A)
Signal Direction Description
TVCC Input Target reference voltage. Needs to be con-
Figure 3-5: Port A Pinout
nected to the microprocessor’s operating volt­age (1.8V to 5V) and is used by the Tracelink to determine the correct voltage level to use on output signals. Required.
TMS/
SWD_DIO
GND Input Ground signal. Connect to the digital ground
TCK/
SWD_CLK
TDO Input Debug communication signal. Pull-up resistor
TDI Output Debug communication signal. Pull-up resistor
RESET I/O Microprocessor reset signal. This signal is
Tracelink User Manual 7
I/O Debug communication signal. Pull-up resistor
required. Required.
signal of the microprocessor. Required.
Output Debug communication signal. Pull-down resis-
tor required. Required.
recommended. Recommended.
required. Recommended.
driven low during initial debug mode entry. Pull­up resistor required. Required.
3.4.2 PORT B: Kinetis (Mini-20)
Table C-1. Kinetis Mini-20 Signals (PORT B)
Signal Direction Description
Figure 3-6: Port B Pinout
TVCC Input Target reference voltage. Needs to be con-
nected to the microprocessor’s operating voltage (1.8V to 5V) and is used by the Tracelink to determine the correct voltage level to use on output signals. Required.
TMS/SWD_DIO I/O Debug communication signal. Pull-up resistor
required. Required.
GND Input Ground signal. Connect to the digital ground
signal of the microprocessor. Required.
TCK/SWD_CLK Output Debug communication signal. Pull-down
resistor required. Required.
Tracelink User Manual 8
Table C-1. Kinetis Mini-20 Signals (PORT B)
Signal Direction Description
TDO Input Debug communication signal. Pull-up resistor
recommended. Recommended.
TDI Output Debug communication signal. Pull-up resistor
required. Recommended.
RESET I/O Microprocessor reset signal. This signal is
driven low during initial debug mode entry. Pull-up resistor required. Required.
TRACE_CLKOUT Input Trace clock input. Required for external
trace capture.
TRACE_D[3:0] Input Trace data input. Required for external
trace capture.
Tracelink User Manual 9
Loading...
+ 27 hidden pages