Datasheet

5-26 MCF5407 User’s Manual
Background Debug Mode (BDM)
5.5.2.2 Transmit Packet Format
The basic transmit packet, Figure 5-17, consists of 16 data bits and 1 control bit.
Table 5-20 describes transmit BDM packet elds.
5.5.3 BDM Command Set
Table 5-21 summarizes the BDM command set. Subsequent paragraphs contain detailed
descriptions of each command. Issuing a BDM command when the processor is accessing
debug module registers using the WDEBUG instruction causes undened behavior.
16 15 0
C D[15:0]
Figure 5-17. Transmit BDM Packet
Table 5-20. Transmit BDM Packet Field Description
Bits Name Description
16 C Control. This bit is reserved. Command and data transfers initiated by the development system
should clear C.
15–0 Data Contains the data to be sent from the development system to the debug module.
Table 5-21. BDM Command Summary
Command Mnemonic Description
CPU
State
1
Section
Command
(Hex)
Read A/D
register
RAREG/
RDREG
Read the selected address or data register and
return the results through the serial interface.
Halted 5.5.3.3.1 0x218 {A/D,
Reg[2:0]}
Write A/D
register
WAREG/
WDREG
Write the data operand to the specified address or
data register.
Halted 5.5.3.3.2 0x208 {A/D,
Reg[2:0]}
Read
memory
location
READ Read the data at the memory location specified by
the longword address.
Steal 5.5.3.3.3 0x1900—byte
0x1940—word
0x1980—lword
Write
memory
location
WRITE Write the operand data to the memory location
specified by the longword address.
Steal 5.5.3.3.4 0x1800—byte
0x1840—word
0x1880—lword
Dump
memory
block
DUMP Used with READ to dump large blocks of memory.
An initial
READ is executed to set up the starting
address of the block and to retrieve the first result.
A
DUMP command retrieves subsequent operands.
Steal 5.5.3.3.5 0x1D00—byte
0x1D40—word
0x1D80—lword
Fill memory
block
FILL Used with WRITE to fill large blocks of memory. An
initial
WRITE is executed to set up the starting
address of the block and to supply the first operand.
A
FILL command writes subsequent operands.
Steal 5.5.3.3.6 0x1C00—byte
0x1C40—word
0x1C80—lword
Resume
execution
GO The pipeline is flushed and refilled before resuming
instruction execution at the current PC.
Halted 5.5.3.3.7 0x0C00
No operation
NOP Perform no operation; may be used as a null
command.
Parallel 5.5.3.3.8 0x0000