Specifications

202 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
Note: Unlike the MicroBlaze stub target, programs should be compiled in executable mode and
NOT in xmdstub mode while using the MDM target. Consequently, users need NOT specify a
XMDSTUB_PERIPHERAL for compiling the xmdstub
Example debug session with a MicroBlaze MDM target
This example demonstrates a simple debug session with a MicroBlaze MDM target. Basic
xmd-based commands are used after connecting to the MDM target using the “mbconnect”
command. At the end of the session, GDB (mb-gdb) is connected to xmd using the GDB
remote target. Refer to the GDB section of the est_guide for more information about about
connecting GDB to xmd.
$ xmd
Xilinx Microprocessor Debug (XMD) Engine
Xilinx EDK 6.2 Build EDK_Gm.9
Copyright (c) 1995-2002 Xilinx, Inc. All rights reserved.
XMD% mbconnect mdm
JTAG chain configuration
--------------------------------------------------
Device ID Code IR Length Part Name
1 05026093 8 XC18V04
2 0123e093 10 XC2VP4
Assuming, Device No: 2 contains the MicroBlaze system
Connected to the JTAG MicroBlaze Debug Module (MDM)
No of processors = 1
MicroBlaze Processor 1 Configuration :
-------------------------------------
Version............................2.00.a
No of PC Breakpoints...............4
No of Read Addr/Data Watchpoints...1
No of Write Addr/Data Watchpoints..1
Instruction Cache Support..........off
Data Cache Support.................off
Connected to MicroBlaze "mdm" target. id = 0
Starting GDB server for "mdm" target (id = 0) at TCP port no 1234
XMD% rrd
r0: 00000000 r8: 00000000 r16: 00000000 r24: 00000000
r1: 00000510 r9: 00000000 r17: 00000000 r25: 00000000
r2: 00000140 r10: 00000000 r18: 00000000 r26: 00000000
r3: a5a5a5a5 r11: 00000000 r19: 00000000 r27: 00000000
r4: 00000000 r12: 00000000 r20: 00000000 r28: 00000000
r5: 00000000 r13: 00000140 r21: 00000000 r29: 00000000
r6: 00000000 r14: 00000000 r22: 00000000 r30: 00000000
r7: 00000000 r15: 00000064 r23: 00000000 r31: 00000000
pc: 00000070 msr: 00000004
<--- Launching GDB from XMD% console --->
XMD% start mb-gdb microblaze_0/code/executable.elf
XMD%
<--- From GDB, a connection is made to XMD and debugging is done from
the GDB GUI --->
XMD: Accepted a new GDB connection from 127.0.0.1 on port 3791
XMD%
XMD: GDB Closed connection
XMD% stp