Freescale Semiconductor MCF51QE128RM manual BDM Command Code Field Descriptions, Crg Crn, Vbr

Models: MCF51QE128RM

1 424
Download 424 pages 63.71 Kb
Page 389
Image 389

Chapter 18 Version 1 ColdFire Debug (CF1_DEBUG)

 

 

 

 

 

 

 

 

 

Table 18-24. BDM Command Code Field Descriptions

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Field

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Description

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

5

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Read/Write.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0 Command is performing a write operation.

 

 

 

 

 

 

R/W

 

 

 

 

 

 

 

 

 

 

1 Command is performing a read operation.

 

 

 

 

 

 

 

 

 

 

 

 

3–0

Miscellaneous command. Defines the miscellaneous command to be performed.

MSCMD

0000

No operation

 

 

 

 

 

 

 

 

 

0001

Display the CPU’s program counter (PC) plus optional capture in the PST trace buffer

 

 

 

0010

Enable the BDM acknowledge communication mode

 

 

 

 

 

0011

Disable the BDM acknowledge communication mode

 

 

 

 

 

0100

Force a CPU halt (background)

 

 

 

 

 

 

 

 

 

1000

Resume CPU execution (go)

 

 

 

 

 

 

 

 

 

1101

Read/write of the debug XCSR most significant byte

 

 

 

 

 

1110

Read/write of the debug CSR2 most significant byte

 

 

 

 

 

1111

Read/write of the debug CSR3 most significant byte

 

 

 

 

 

 

 

 

3–2

Memory operand size. Defines the size of the memory reference.

 

 

SZ

00 8-bit byte

 

 

 

 

 

 

 

 

 

01 16-bit word

 

 

 

 

 

 

 

 

 

10 32-bit long

 

 

 

 

 

 

 

 

 

 

 

 

1–0

Memory command. Defines the type of the memory reference to be performed.

MCMD

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

00 Simple write if R/W

= 0; simple read if R/W = 1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

= 1

 

 

 

 

 

01 Write + status if R/W

= 0; read + status if R/W

 

 

 

 

 

 

 

 

 

 

 

 

= 1

 

 

 

 

 

 

 

 

 

 

 

10 Fill if R/W

= 0; dump if R/W

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

= 1

 

 

 

 

 

11 Fill + status if R/W

= 0; dump + status if R/W

 

 

 

 

 

 

 

 

7–6

Core register group. Defines the core register group to be referenced.

 

 

CRG

01 CPU’s general-purpose registers (An, Dn) or PST trace buffer

 

 

 

 

 

10 DBG’s control registers

 

 

 

 

 

 

 

 

 

11 CPU’s control registers (PC, SR, VBR, CPUCR,...)

 

 

 

 

 

 

 

 

4–0

Core register number. Defines the specific core register (its number) to be referenced. All other CRN values are

CRN

reserved.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

CRG

 

 

 

 

 

 

CRN

Register

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0x00–0x07

D0–7

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

01

 

 

 

 

 

 

0x08–0x0F

A0–7

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0x10–0x1B

PST Buffer 0–11

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

10

 

 

 

 

 

 

 

DRc[4:0] as described in Table 18-4

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0x00

OTHER_A7

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0x01

VBR

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

11

 

 

 

 

 

 

 

0x02

CPUCR

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0x0E

SR

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0x0F

PC

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

MCF51QE128 MCU Series Reference Manual, Rev. 3

Freescale Semiconductor

389

Get the latest version from freescale.com

Page 389
Image 389
Freescale Semiconductor MCF51QE128RM manual BDM Command Code Field Descriptions, Crg Crn, Vbr