Chapter 18 Version 1 ColdFire Debug (CF1_DEBUG)

18.4.1.5BDM Command Set Summary

Table 18-25summarizes the BDM command set. Subsequent paragraphs contain detailed descriptions of each command. The nomenclature below is used in Table 18-25to describe the structure of the BDM commands.

Commands begin with an 8-bit hexadecimal command code in the host-to-target direction (most significant bit first)

/= separates parts of the command

d

=

delay 16 target BDC clock cycles

ad24

=

24-bit memory address in the host-to-target direction

rd8

=

8 bits of read data in the target-to-host direction

rd16

=

16

bits

of read data in the

target-to-host direction

rd32

=

32

bits

of read data in the

target-to-host direction

rd.sz

=

read data, size defined by sz, in the target-to-host direction

wd8

=

8 bits of write data in the

host-to-target direction

wd16

=

16

bits

of write data in the host-to-target direction

wd32

=

32

bits

of write data in the host-to-target direction

wd.sz

=

write data, size defined by

sz, in the host-to-target direction

ss

=

the contents of XCSR[31:24] in the target-to-host direction (STATUS)

sz

=

memory operand size (0b00 =

byte, 0b01 = word, 0b10 = long)

crn

=

core register number

 

WS

=

command

suffix signaling the operation is “with status”

Table 18-25. BDM Command Summary

Command

Command

ACK

Command

Description

Mnemonic

Classification

if Enb?1

Structure

 

 

 

 

 

 

SYNC

Always

N/A

N/A2

Request a timed reference pulse to

 

Available

 

 

determine the target BDC communication

 

 

 

 

speed

 

 

 

 

 

ACK_DISABLE

Always

No

0x03/d

Disable the communication handshake.

 

Available

 

 

This command does not issue an ACK

 

 

 

 

pulse.

 

 

 

 

 

ACK_ENABLE

Always

Yes

0x02/d

Enable the communication handshake.

 

Available

 

 

Issues an ACK pulse after the command is

 

 

 

 

executed.

 

 

 

 

 

BACKGROUND

Non-Intrusive

Yes

0x04/d

Halt the CPU if ENBDM is set. Otherwise,

 

 

 

 

ignore as illegal command.

 

 

 

 

 

DUMP_MEM.sz

Non-Intrusive

Yes

(0x32+4 x sz)/d/rd.sz

Dump (read) memory based on operand

 

 

 

 

size (sz). Used with READ_MEM to dump

 

 

 

 

large blocks of memory. An initial

 

 

 

 

READ_MEM is executed to set up the

 

 

 

 

starting address of the block and to retrieve

 

 

 

 

the first result. Subsequent DUMP_MEM

 

 

 

 

commands retrieve sequential operands.

 

 

 

 

 

MCF51QE128 MCU Series Reference Manual, Rev. 3

390

Freescale Semiconductor

Get the latest version from freescale.com

Page 390
Image 390
Freescale Semiconductor MCF51QE128RM manual BDM Command Set Summary, BDM Command Summary, Ackdisable, Ackenable