MMCCMB2103UM/D
User’s Manual
31
Debugging Embedded Code
3.1.2 Picobug Sample Session
1.
This sample session begins with the Picobug prompt:
2.
To see the contents of all registers, enter the Register Display (rd) command without any
name value:
The system responds with a display such as this:
3.
To see the contents of a specific register, such as the epc register, enter the Register Display
(rd) command with the name value:
The system responds with a display such as this:
reset
Reset:
Resets the CPU and peripherals.
rd [name]
Register Display:
•
With optional name value, displays the value of that CPU register.
•
Without any name value, displays the values of all CPU registers.
rm name value
Register Modify:
Assigns the value parameter value to the name CPU register.
t
Trace (Step):
Single steps one instruction; identical to the
s
command.
s
Step (Trace):
Single steps one instruction; identical to the
t
command.
?
Help
Displays available commands, identical to the
he
command.
picobug>
picobug>
rd
pc 32313033
epc 8000401c
fpc 00000000
psr 80000000
epsr 80000000
fpsr 00000000
ss0-ss4 bad0beef
80010000
00000000
00000000
00000000
vbr 80805c00
r0-r7 bad0beef
00000000
80010000
00efff34
000000ff
d4037308
74099403
73097409
r8-r15 80800024
80010040
0000000f
80707003
0000002d
00000012
0000002d
800000b4
picobug>
rd epc
epc:
8000401c
Table 3-1 Picobug Commands (Continued)
Command
Explanation
F
re
e
sc
a
le
S
e
m
ic
o
n
d
u
c
to
r,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
c
.
..