Specifications

Embedded System Tools Guide (EDK 6.2i) www.xilinx.com 203
UG111 (v1.4) January 30, 2004 1-800-255-7778
MicroBlaze MDM Target
R
BREAKPOINT at
114: F1440003 sbi r10, r4, 3
XMD% dis 0x114 10
114: F1440003 sbi r10, r4, 3
118: E0E30004 lbui r7, r3, 4
11C: E1030005 lbui r8, r3, 5
120: F0E40004 sbi r7, r4, 4
124: F1040005 sbi r8, r4, 5
128: B800FFCC bri -52
12C: B6110000 rtsd r17, 0
130: 80000000 Or r0, r0, r0
134: B62E0000 rtid r14, 0
138: 80000000 Or r0, r0, r0
XMD% dow microblaze_0/code/executable.elf
XMD% con
Processor started. Type "stop" to stop processor
RUNNING> stop <--- From this “RUNNING>” prompt, the debugging commands
“stop”, “xuart”, “xrreg 0 32” and some other basic Tcl commands can be
executed.
XMD%
Processor stopped at PC: 0x0000010c
XXMD% con
Processor started. Type "stop" to stop processor
RUNNING> format "PC = 0x%08x" [xrreg 0 32]
PC = 0x000000f4 <--- With the MDM, the current PC of MicroBlaze can be
read while the program is running
RUNNING> format "PC = 0x%08x" [xrreg 0 32]
PC = 0x00000110 <--- Note: the PC is constantly changing, as the
program is running
RUNNING> format "PC = 0x%08x" [xrreg 0 32]
PC = 0x00000118 <--- Note: “format” is a basic Tcl command like printf
RUNNING> format "PC = 0x%08x" [xrreg 0 32]
PC = 0x00000118
XMD% rrd
r0: 00000000 r8: 00000065 r16: 00000000 r24: 00000000
r1: 00000548 r9: 0000006c r17: 00000000 r25: 00000000
r2: 00000190 r10: 0000006c r18: 00000000 r26: 00000000
r3: 0000014c r11: 00000000 r19: 00000000 r27: 00000000
r4: 00000500 r12: 00000000 r20: 00000000 r28: 00000000
r5: 24242424 r13: 00000190 r21: 00000000 r29: 00000000
r6: 0000c204 r14: 00000000 r22: 00000000 r30: 00000000
r7: 00000068 r15: 0000005c r23: 00000000 r31: 00000000
pc: 0000010c msr: 00000000
XMD% bps 0x100
Setting breakpoint at 0x00000100
XMD% bps 0x11c hw
Setting breakpoint at 0x0000011c
XMD% bpl
SW BP: addr = 0x00000100, instr = 0xe1230002 <-- Software Breakpoint
HW BP: BP_ID 0 : addr = 0x0000011c <--- Hardware Breakpoint
XMD% con
Processor started. Type "stop" to stop processor
RUNNING>
Processor stopped at PC: 0x00000100
XMD% con
Processor started. Type "stop" to stop processor
RUNNING>
Processor stopped at PC: 0x0000011c