Chapter 18 Version 1 ColdFire Debug (CF1_DEBUG)

Table 18-25. BDM Command Summary (continued)

Command

Command

ACK

Command

Description

Mnemonic

Classification

if Enb?1

Structure

 

 

 

 

 

 

DUMP_MEM.sz_WS

Non-Intrusive

No

(0x33+4 x sz)/d/ss/rd.sz

Dump (read) memory based on operand

 

 

 

 

size (sz) and report status. Used with

 

 

 

 

READ_MEM{_WS} to dump 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.

 

 

 

 

Subsequent DUMP_MEM{_WS}

 

 

 

 

commands retrieve sequential operands.

 

 

 

 

 

FILL_MEM.sz

Non-Intrusive

Yes

(0x12+4 x sz)/wd.sz/d

Fill (write) memory based on operand size

 

 

 

 

(sz). Used with WRITE_MEM to fill large

 

 

 

 

blocks of memory. An initial WRITE_MEM

 

 

 

 

is executed to set up the starting address of

 

 

 

 

the block and to write the first operand.

 

 

 

 

Subsequent FILL_MEM commands write

 

 

 

 

sequential operands.

 

 

 

 

 

FILL_MEM.sz_WS

Non-Intrusive

No

(0x13+4 x sz)/wd.sz/d/ss

Fill (write) memory based on operand size

 

 

 

 

(sz) and report status. Used with

 

 

 

 

WRITE_MEM{_WS} to fill large blocks of

 

 

 

 

memory. An initial WRITE_MEM{_WS} is

 

 

 

 

executed to set up the starting address of

 

 

 

 

the block and to write the first operand.

 

 

 

 

Subsequent FILL_MEM{_WS} commands

 

 

 

 

write sequential operands.

 

 

 

 

 

GO

Non-Intrusive

Yes

0x08/d

Resume the CPU’s execution3

NOP

Non-Intrusive

Yes

0x00/d

No operation

 

 

 

 

 

READ_CREG

Active

Yes

(0xE0+CRN)/d/rd32

Read one of the CPU’s control registers

 

Background

 

 

 

 

 

 

 

 

READ_DREG

Non-Intrusive

Yes

(0xA0+CRN)/d/rd32

Read one of the debug module’s control

 

 

 

 

registers

 

 

 

 

 

READ_MEM.sz

Non-Intrusive

Yes

(0x30+4 x sz)/ad24/d/rd.sz

Read the appropriately-sized (sz) memory

 

 

 

 

value from the location specified by the

 

 

 

 

24-bit address

 

 

 

 

 

READ_MEM.sz_WS

Non-Intrusive

No

(0x31+4 x sz)/ad24/d/ss/rd.sz

Read the appropriately-sized (sz) memory

 

 

 

 

value from the location specified by the

 

 

 

 

24-bit address and report status

 

 

 

 

 

READ_PSTB

Non-Intrusive

Yes

(0x50+CRN)/d/rd32

Read the requested longword location from

 

 

 

 

the PST trace buffer

 

 

 

 

 

READ_Rn

Active

Yes

(0x60+CRN)/d/rd32

Read the requested general-purpose

 

Background

 

 

register (An, Dn) from the CPU

 

 

 

 

 

READ_XCSR_BYTE

Always

No

0x2D/rd8

Read the most significant byte of the debug

 

Available

 

 

module’s XCSR

 

 

 

 

 

READ_CSR2_BYTE

Always

No

0x2E/rd8

Read the most significant byte of the debug

 

Available

 

 

module’s CSR2

 

 

 

 

 

READ_CSR3_BYTE

Always

No

0x2F/rd8

Read the most significant byte of the debug

 

Available

 

 

module’s CSR3

 

 

 

 

 

 

MCF51QE128 MCU Series Reference Manual, Rev. 3

 

 

Freescale Semiconductor

391

 

Get the latest version from freescale.com

Page 391
Image 391
Freescale Semiconductor MCF51QE128RM manual Readcreg, Readdreg, Readpstb