Download feature - EE Times

Transcript
cover feature
built into silicon. Today, many debugging approaches rely on offline debugging based on trace buffers added to
the CPU to reduce intrusiveness
by the debug system. Leading
processor-core vendors offer onchip trace solutions.
However, existing debugging
and test tools are mainly focused
toward single nodes with one or
more CPUs on-board or on-chip
(SoC) by using auxiliary debug interfaces like JTAG or a simple
UART. The problem of these approaches is that they entirely neglect the distributed nature of many applications since to connect a
monitoring computer directly to each
node is impractical, especially if the
nodes are already embedded in their
place of installation (see Figure 1a).
Wouldn’t it be nice to precisely coordinate debug, test, trace, and replay
activities across the entire distributed
system without the use of any auxiliary
interface or special cabling? Moreover,
it would be helpful if only a single debugging master and monitoring com-
!
!
!
puter is attached to the network, used
to issue debugging, test, or monitoring
actions. Such an approach that greatly
Ethernet) and exchange data to jointly
perform their application tasks. No restrictions shall apply to the underlying
network technology, be it wireless or cable-bound, shared, or
switched. Today, such setups are
deployed in automotive applications, industrial, and building
automation, as well as machine
and plant control, to name a few.
As already mentioned, a
global notion of time is a key element for distributed debugging. Therefore the proposed solution for distributed debugging
implements a mechanism to synchronize the local clocks contained in the
network nodes. The clock synchronization mechanism can be implemented either in software or in hardware. The latter option, however,
provides a better accuracy. If, for example, the IEEE 1588 clock synchronization standard is applied to a
100 Mbit/s Ethernet network, the
clock synchronization mechanism can
be implemented in hardware right
above the physical layer, which allows
Wouldn’t it be nice to precisely
coordinate debug, test, trace, and
replay activities across the entire
distributed system without the
use of any auxiliary interface or
special cabling?
simplifies debugging and testing of
distributed systems is shown in
Figure 1b.
A NEW SOLUTION FOR
DISTRIBUTED DEBUGGING
In the following example, a distributed
system is assumed that contains a plurality of nodes, where every node is a
self-contained processing unit with peripherals or, in other words, an embedded system. The nodes are connected via a network (for example,
Comparison between a traditional approach to debug distributed systems (a) and the proposed new solution (b).
Shared or switched network
Shared or switched network
a)
b)
Node 1
Node 2
JTAG
debugger
JTAG
debugger
…
Node n
JTAG
debugger
HW
support
HW
support
Node 1
Node 2
…
HW
support
Node n
Monitoring
computer
Monitoring
computer 1
Monitoring
computer 2
Monitoring
computer n
Issues debug and
test commands
to Node 1
Issues debug and
test commands
to Node 2
Issues debug and
test commands
to Node n
Issues debug
and
test commands
to all nodes
without using
an auxiliary
interface
Figure 1
www.embedded.com | embedded systems design
| DECEMBER 2009
19