Freescale Semiconductor MCF51QE128RM manual 0x33, Xcsrsb, 0x37, 0x3B, Freescale Semiconductor 395

Models: MCF51QE128RM

1 424
Download 424 pages 63.71 Kb
Page 395
Image 395

Chapter 18 Version 1 ColdFire Debug (CF1_DEBUG)

 

 

 

 

 

DUMP_MEM.sz_WS

 

 

 

Read memory specified by debug address register with status,

 

Non-intrusive

then increment address

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0x33

 

XCSR_SB

Memory

 

 

 

 

 

 

 

 

 

data[7-0]

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

host

D

target

target

 

 

 

 

 

 

 

 

target

L

host

host

 

 

 

 

 

 

 

 

Y

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0x37

 

XCSR_SB

Memory

 

Memory

 

 

 

 

 

 

 

data[15-8]

 

data[7-0]

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

host

D

target

target

 

target

 

 

 

 

 

target

L

host

host

 

host

 

 

 

 

 

Y

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0x3B

 

XCSR_SB

Memory

 

Memory

 

Memory

Memory

 

 

 

 

data[31-24]

data23-16]

data[15-8]

data[7-0]

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

host

D

target

target

 

target

target

target

 

 

target

L

host

host

 

host

host

host

 

 

Y

 

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

FILL_MEM.sz

 

Write memory specified by debug address register, then

Non-intrusive

increment address

 

 

 

MCF51QE128 MCU Series Reference Manual, Rev. 3

Freescale Semiconductor

395

Get the latest version from freescale.com

Page 395
Image 395
Freescale Semiconductor MCF51QE128RM manual 0x33, Xcsrsb, 0x37, 0x3B, Freescale Semiconductor 395