Specifications
188 www.xilinx.com Embedded System Tools Guide (EDK 6.2i)
1-800-255-7778 UG111 (v1.4) January 30, 2004
Chapter 13: Xilinx Microprocessor Debugger (XMD)
R
PowerPC Target
xmd can connect to one or more hardware PowerPC targets over a JTAG connection to a 
board containing a Virtex-II Pro device.
PowerPC Target options
Use the ppcconnect command to connect to the PowerPC target and start a remote GDB 
server. Once xmd is connected to the PowerPC target, powerpc-eabi-gdb can connect to 
the processor target through xmd and debugging can proceed. Refer to the GDB 
documentation in the est_guide for more information about connecting GDB to xmd using 
GDB’s Remote TCP target. When no option is specified, xmd will detect the JTAG cable, 
chain and the PowerPC processors automatically. Users can override it using 
the following 
options.
ppcconnect [-cable <JTAG cable options>] [-configdevice <JTAG chain 
options>] [-debugdevice <PPC405 options>]
JTAG cable options
x type <cable type>
Valid cable types are: xilinx_parallel3, xilinx_parallel4, 
xilinx_svffile
dow [-data] filename [addr] Download the given ELF or data file (with -data option) 
onto the current target’s memory. If no address is provided 
along with ELF file, the download address is determined 
from the ELF file by reading its headers. If an address is 
provided with the ELF file (only for MicroBlaze targets), it 
is treated as PIC code (Position Independent Code) and 
downloaded at the specified address and Register R20 is set 
to the start address according to the PIC code semantics. 
Note that NO Bounds checking is done by xmd, except 
preventing writes into xmdstub area (address 0x0 to 0x400) 
for the MicroBlaze Stub target.
stats Display execution statistics for the MicroBlaze simulator 
target
disconnect target id Disconnect from the current Processor target, close the 
corresponding GDB server and revert to the previous 
Processor target if any.
targets <target id> List information about all current targets or change the 
current target
profile [-o <GMON output file>] Write Profile output file, which can be interpreted by mb-
gprof or powerpc-eabi-gprof to generate profiling 
information. .. describes Profiling using EDK.
ver Toggle ON/OFF verbose mode. In verbose mode XMD 
prints debug information.
help List all commands
command [options] Description










