Specifications

210 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
X10138
JTAG
XMD
O
PB Bus
MicroBlaze
JTAG
Uart
xmdstub
Local Memory
JTAG
XMD
OPB Bus
MicroBlaze
UART
xmdstub
Local Memory
RS-232 (Serial Cable)
XMD
OPB Bus
MicroBlaze
Uartlite
xmdstub
Local Memory
MDM
opb_mdm
To debug a program by downloading on the remote hardware board, the program must be
compiled with -g -xl-mode-xmdstub options to mb-gcc.
Note: User Program outputs. If the program has any I/O functions like print() or putnum(), that write
output onto the UART or JTAG Uart, it will be printed on the console/terminal where the
xmd was
started. (Refer to the MicroBlaze Libraries chapter for libraries and I/O functions information).
Stub Target Requirements
To debug programs on the hardware board using XMD, the following requirements have
to be met.
x xmd uses a JTAG or serial connection to communicate with xmdstub on the board.
Hence a JTAG Uart or a Uart designated as XMDSTUB_PERIPHERAL in the mss file
is needed on the target MicroBlaze system.
Figure 13-6: MicroBlaze stub Target with JTAG UART and Uartlite