Version 1 ColdFire Debug (CF1_DEBUG)
MCF51CN128 Reference Manual
,
Rev. 6
20-46
Freescale Semiconductor
The examples show the READ_MEM.B{_WS}, READ_MEM.W{_WS} and READ_MEM.L{_WS}
commands.
20.4.1.5.12
READ_PSTB
Read 32 bits of captured PST/DDATA values from the trace buffer at the specified address. The PST trace
buffer contains 64 six-bit entries, packed consecutively into 12 longword locations. See
for
an illustration of how the buffer entries are packed.
20.4.1.5.13
READ_Rn
If the processor is halted, this command reads the selected CPU general-purpose register (An, Dn) and
returns the 32-bit result. See
for the CRN details when CRG is 01.
If the processor is not halted, this command is rejected as an illegal operation and no operation is
performed.
20.4.1.5.14
READ_XCSR_BYTE
Read the special status byte of XCSR (XCSR[31–24]). This command can be executed in any mode.
Read PST trace buffer at the specified address
Non-intrusive
0x40+CRN
PSTB data
[31-24]
PSTB data
[23-16]
PSTB data
[15-8]
PSTB data
[7-0]
host
→
target
D
L
Y
target
→
host
target
→
host
target
→
host
target
→
host
Read general-purpose CPU register
Active Background
0x60+CRN
Rn data
[31–24]
Rn data
[23–16]
Rn data
[15–8]
Rn data
[7–0]
host
→
target
D
L
Y
target
→
host
target
→
host
target
→
host
target
→
host
Read XCSR Status Byte
Always Available
0x2D
XCSR
[31–24]
host
→
target
target
→
host