Freescale Semiconductor MCF51QE128RM Answering Machine User Manual


 
Chapter 18 Version 1 ColdFire Debug (CF1_DEBUG)
MCF51QE128 MCU Series Reference Manual, Rev. 3
Freescale Semiconductor 395
Get the latest version from freescale.com
DUMP_MEM{_WS} is used with the READ_MEM{_WS} command to access large blocks of memory.
An initial READ_MEM{_WS} is executed to set-up the starting address of the block and to retrieve the
first result. If an initial READ_MEM{_WS} is not executed before the first DUMP_MEM{_WS}, an
illegal command response is returned. The DUMP_MEM{_WS} command retrieves subsequent
operands. The initial address is incremented by the operand size (1, 2, or 4) and saved in a temporary
register. Subsequent DUMP_MEM{_WS} commands use this address, perform the memory read,
increment it by the current operand size, and store the updated address in the temporary register. If the
with-status option is specified, the core status byte contained in XCSR[31–24] (XCSR_SB) is returned
before the read data. The XCSR status byte reflects the state after the memory read was performed.
NOTE
DUMP_MEM_{WS} does not check for a valid address; it is a valid
command only when preceded by NOP, READ_MEM_{WS}, or another
DUMP_MEM{_WS} command. Otherwise, an illegal command response
is returned. NOP can be used for inter-command padding without corrupting
the address pointer.
The size field (sz) is examined each time a DUMP_MEM{_WS} command is processed, allowing the
operand size to be dynamically altered. The examples show the DUMP_MEM.B{_WS},
DUMP_MEM.W{_WS} and DUMP_MEM.L{_WS} commands.
18.4.1.5.6 FILL_MEM.sz, FILL_MEM.sz_WS
DUMP_MEM.sz_WS
Read memory specified by debug address register with status,
then increment address
Non-intrusive
0x33
XCSR_SB
Memory
data[7-0]
host
target
D
L
Y
target
host
target
host
0x37 XCSR_SB
Memory
data[15-8]
Memory
data[7-0]
host
target
D
L
Y
target
host
target
host
target
host
0x3B XCSR_SB
Memory
data[31-24]
Memory
data23-16]
Memory
data[15-8]
Memory
data[7-0]
host
target
D
L
Y
target
host
target
host
target
host
target
host
target
host
FILL_MEM.sz
Write memory specified by debug address register, then
increment address
Non-intrusive