Version 1 ColdFire Debug (CF1_DEBUG)
MCF51CN128 Reference Manual
,
Rev. 6
20-8
Freescale Semiconductor
DRc[4:0]: 0x00 (CSR)
Access: Supervisor write-only
BDM read/write
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
R
BSTAT
FOF
TRG
HALT BKPT
HRL
0
BKD
0
IPW
W
Reset
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
R
0
TRC
0
DDC
UHE
BTB
0
NPL
IPI
SSM
0
0
FID
DDH
W
Reset
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Figure 20-3. Configuration/Status Register (CSR)
Table 20-5. CSR Field Descriptions
Field
Description
31–28
BSTAT
Breakpoint status. Provides read-only status (from the BDM port only) information concerning hardware
breakpoints. BSTAT is cleared by a TDR write, by a CSR read when a level-2 breakpoint is triggered, or a level-1
breakpoint is triggered and the level-2 breakpoint is disabled.
The PSTB value that follows the PSTB entry of 0x1B is 0x20 + (2
×
BSTAT).
0000 No breakpoints enabled
0001 Waiting for level-1 breakpoint
0010 Level-1 breakpoint triggered
0101 Waiting for level-2 breakpoint
0110 Level-2 breakpoint triggered
27
FOF
Fault-on-fault. Indicates a catastrophic halt occurred and forced entry into BDM. FOF is cleared by reset or when
CSR is read (from the BDM port only).
26
TRG
Hardware breakpoint trigger. Indicates a hardware breakpoint halted the processor core and forced entry into
BDM. Reset, the debug GO command, or reading CSR (from the BDM port only) clears TRG.
25
HALT
Processor halt. Indicates the processor executed a HALT and forced entry into BDM. Reset, the debug
GO
command, or reading CSR (from the BDM port only) clears HALT.
24
BKPT
Breakpoint assert. Indicates when either:
• The BKPT input was asserted,
• BDM BACKGROUND command received, or
• The PSTB halt on full condition, CSR2[PSTBH], sets.
This forces the processor into a BDM halt. Reset, the debug
GO
command, or reading CSR (from the BDM port
only) clears BKPT.
23–20
HRL
Hardware revision level. Indicates, from the BDM port only, the level of debug module functionality. An emulator
can use this information to identify the level of functionality supported.
0000 Revision A
0001 Revision B
0010 Revision C
0011 Revision D
1001 Revision B+ (The value used for this device)
1011 Revision D+
19
Reserved, must be cleared.