Freescale Semiconductor P&E Tracelink User Manual Download Page 23

Tracelink User Manual

20

5.3

Internet Protocol

Once the network has been established, and the IP numbers have been assigned, 
data can be transacted over a network with one of several protocols. By far the most 
prevalent protocol is the Transmission Control Protocol (TCP), which runs on top of 
the Internet Protocol in what is collectively known as the TCP/IP protocol. The TCP/IP 
protocol was developed by the Department of Defense to connect different computers 
from different vendors by a “network of networks,” which has become what is known 
as the Internet today. 
The primary purpose of the TCP/IP protocol was to prevent a complete network 
outage in the case of a nuclear attack, by automatically rerouting data traffic through 
the functioning part of the network. As such, the TCP/IP mechanism guaranteed 
delivery of data packets by introducing a system of acknowledgements and sequence 
numbers for the data packets. This mechanism, while good for transacting large 
amounts of data (such as email or file transfers), is unsuitable in the real-time type 
environment in which the Tracelink operates. Because the Tracelink needs to transact 
data as quickly as possible to the target, it takes advantage of TCP/IP’s alternative, 
the UDP/IP protocol.
Unlike TCP/IP, the UDP/IP protocol is a connectionless, single-packet protocol that 
sends short data packets at the expense of not guaranteeing their delivery. This 
makes the UDP/IP protocol efficient in real-time applications such as broadcasting 
video over the Internet, where the occasional loss of a frame of data is not going to 
hamper the overall viewing experience. Left unmodified, the UDP/IP, with its lack of 
guarantees for packet delivery, would be unusable in an environment where the 
delivery of a single byte of data needs to be guaranteed. The Tracelink firmware adds 
mechanisms to the UDP/IP protocol, without affecting its underlying efficiency, to 
guarantee delivery of data packets.

5.4

Connecting The Tracelink Device

There are two methods for establishing a connection between a Tracelink and a PC 
with an Ethernet cable. The most basic method is to connect the Tracelink directly to a 
PC, via a cross-over Ethernet cable. However, the more common method is to place 
the Tracelink and the PC on the same network through a Hub.

5.4.1

Connecting the Tracelink to the PC over a network:

The Tracelink was intended for use on a network of multiple computers (and other 
Tracelinks). There are many possible network configurations, and to describe them all 
is beyond the scope of this document. However, most configurations are a 

Summary of Contents for P&E Tracelink

Page 1: ......

Page 2: ...ftware 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...

Page 3: ...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...

Page 4: ...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 statistic...

Page 5: ...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 powe...

Page 6: ...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 ski...

Page 7: ...r 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 Figure 3 1 Power J...

Page 8: ...reescale 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 num...

Page 9: ...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...

Page 10: ...ls 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...

Page 11: ...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 Pu...

Page 12: ...ired 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 ex...

Page 13: ...re V2 3 4 Signals PORT C Signal Direction Description BKPT Output Debug communication signal Pull up resistor required Required GND Input Ground signal Connect to the digital ground signal of the micr...

Page 14: ...V and is used by the Tracelink to determine the correct voltage level to use on output signals Required DSO Input Debug communication signal Pull up resistor recommended Required PST 3 0 PSTDDATA 7 4...

Page 15: ...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 TRST Output JTAG signal to reset debug logic Pull u...

Page 16: ...2 which can be accessed by flipping open the plastic case This jumper is NOT installed by default TMS SWD_DIO I O Debug communication signal Pull up resistor required Required TCK SWD_CLK Output Debug...

Page 17: ...ual 14 Figure 3 9 J2 Jumper There is additional configuration needed on the PC software to turn on the target voltage and to specify target voltage value 2V 3V or 5V Refer to the software documentatio...

Page 18: ...escale family and can range from a single bit to 32 bits and higher The trace data is always synchronized to the rising and or falling edges of the trace clock signal Note On many microprocessors the...

Page 19: ...pe of the application code where the bug is occurring For example a large loop which is used to perform delays may take up a large portion of the 128MB trace buffer but does not contribute useful prog...

Page 20: ...r next to the signal layer carrying the trace signals 4 4 4 Minimize crosstalk If the design has multiple signals running parallel to each other for long distances increase the spacing between them to...

Page 21: ...es in use today and how they pertain to the operation of the Tracelink Computers are of course connected to one another through intermediary devices in order to form networks There are several classes...

Page 22: ...s have been assigned to the individual computers An IP number is a unique string that consists of four numbers ranging between 0 and 255 separated by dots e g 192 168 1 2 Every computer that is on a n...

Page 23: ...advantage of TCP IP s alternative the UDP IP protocol Unlike TCP IP the UDP IP protocol is a connectionless single packet protocol that sends short data packets at the expense of not guaranteeing the...

Page 24: ...t 100Mb 10 100Mb half duplex or a full duplex connection The details of the underlying network architecture are beyond the scope of this document but it is sufficient to note that most modern network...

Page 25: ...the Tracelink device please see the following section 5 5 Tracelink IP Setup Utility User Interface ConfigureIP Before the Tracelink device transacts data on an Ethernet network it will need to be con...

Page 26: ...required step before changing the parameters on the selected device Once a device has been selected through the second drop down box and is opened for access its information will be displayed at the b...

Page 27: ...nk IP address 5 6 Using ConfigureIP exe To Configure The Tracelink Before the Tracelink is ready to communicate over an Ethernet network it will need to be configured with the relevant network paramet...

Page 28: ...Tracelink User Manual 25 Figure 5 2 Tracelink IP Setup Utility Initial Screen 2 Click Open to get a dialog box similar to the following Figure 5 3 Tracelink IP Setup Utility Continue Setup...

Page 29: ...Tracelink User Manual 26 3 The Tracelink now needs to be programmed with IP numbers for the network on which it will operate The Tracelink IP Number field must contain a unique IP number...

Page 30: ...Tracelink User Manual 27 6 USB CONFIGURATION Standard USB cables may be used for Tracelink USB port configuration The user may use network hubs as necessary...

Page 31: ...with all available updates installed is required Before following these steps the Tracelink should already be connected to the target board and both should be powered up Step 1 Project Creation To cr...

Page 32: ...as general purpose input output by default and you may need to add a few lines of code to initialize them for trace output Once the changes are made make sure to compile build the project Step 3 Confi...

Page 33: ...using one of the center values such as 2MB and increasing it as necessary Click OK to apply the settings Figure 7 3 CodeWarrior Set Trace Max Buffer Size Navigate to the Trace and Profile tab and che...

Page 34: ...oint or run user halt CodeWarrior will query the Tracelink for trace data This data is automatically downloaded and parsed by the CodeWarrior software analysis engine The results are displayed in the...

Page 35: ...Tracelink User Manual 32 Figure 7 5 CodeWarrior Display Trace Data...

Page 36: ...each feature multiple communications interfaces USB Ethernet and Serial stand alone programming functionality and many other advanced capabilities They work with Freescale s CodeWarrior as well as P E...

Page 37: ...or 8 2 Cyclone In Depth P E s Cyclones are extremely flexible tools designed for debugging testing and in circuit flash programming of Freescale microcontrollers The Cyclone connects your target to th...

Page 38: ...Cyclone programming hardware these Development Packages include in circuit debugging software flash programming software a Windows IDE and register file editor 8 2 2 Enhancements P E also offers add...

Page 39: ......

Reviews: