Datasheet
A-14 MCF5407 User’s Manual
Revision C Debug
Command complete status (0x0FFFF) is returned when register write is complete.
A.8.3 Debug Programming Model
In addition to existing BDM commands that provide access to the processor’s registers and
the memory subsystem, the debug module contains a number of registers to support the
required functionality. These registers are treated as 32-bit quantities, regardless of the
number of bits in the implementation. The debug control registers (DRc) are addressed
using a 5-bit value as part of two new BDM commands (
WDREG and RDREG). These values
are shown in Table A-11.
These registers are also accessible from the processor’s supervisor programming model
through the execution of the WDEBUG instruction. Thus, the breakpoint hardware within
the debug module can be accessed by the external development system using the serial
interface or by the operating system running on the processor core. It is the software’s
responsibility to guarantee that all accesses to these resources are serialized and are
logically consistent. The hardware provides a locking mechanism in the CSR to allow the
external development system to disable any attempted writes by the processor to the
breakpoint registers (setting IPW).
The following sections describe the newly added breakpoint registers in Debug C.
A.8.3.1 Address Breakpoint 1 Registers (ABLR1, ABHR1)
The 32-bit address breakpoint 1 registers define an upper (ABHR1) and a lower (ABLR1)
boundary for a region in the operand logical address space of the processor that can be used
as part of the trigger. The ABLR1 and ABHR1 values are compared with the ColdFire CPU
core address signals, as defined by the setting of the trigger definition register (TDR) and
the extended trigger definition register (XTDR).
A.8.3.2 Address Attribute Breakpoint Register 1 (AATR1)
The address attribute breakpoint register 1 (AATR1) defines the address attributes and a
mask associated with ABLR1 and ABHR1 to be matched in the trigger. The AATR1 value
is compared with the ColdFire CPU core address attribute signals, as defined by the setting
of the TDR and XTDR. The format of the AATR1 is the same as the AATR register. For
more details about these registers see Section 5.4.1, “Address Attribute Trigger Registers
(AATR, AATR1)”.
A.8.3.3 Program Counter Breakpoint Registers 1–3 (PBR1–PBR3)
Each of the program counter (PC) breakpoint registers (PBR, PBR1–PBR3) defines an
instruction address that can be used as part of the trigger. PBRn registers are compared with
the processor’s program counter register when the appropriate valid bit is asserted and TDR
is configured appropriately. For more details about these registers see Section 5.4.6,
“Program Counter Breakpoint/Mask Registers (PBR, PBR1, PBR2, PBR3, PBMR)”.
