![Texas Instruments SimpleLink MSP432P4 Series Technical Reference Manual Download Page 178](http://html1.mh-extra.com/html/texas-instruments/simplelink-msp432p4-series/simplelink-msp432p4-series_technical-reference-manual_1095579178.webp)
Functional Peripherals Registers
178
SLAU356I – March 2015 – Revised June 2019
Copyright © 2015–2019, Texas Instruments Incorporated
Cortex-M4F Peripherals
2.4.7.4
DEMCR Register (Offset = DFCh) [reset = 00000000h]
DEMCR is shown in
and described in
.
Debug Exception and Monitor Control Register. The purpose of the Debug Exception and Monitor Control
Register (DEMCR) is Vector catching and Debug monitor control. This register manages exception
behavior under debug. Vector catching is only available to halting debug. The upper halfword is for
monitor controls and the lower halfword is for halting exception support. This register is not reset on a
system reset. This register is reset by a POR reset. Bits [19:16] are always cleared on a core reset. The
debug monitor is enabled by software in the reset handler or later, or by the AHB-AP port. Vector catching
is semi-synchronous. When a matching event is seen, a Halt is requested. Because the processor can
only halt on an instruction boundary, it must wait until the next instruction boundary. As a result, it stops on
the first instruction of the exception handler. However, two special cases exist when a vector catch has
triggered: 1. If a fault is taken during a vector read or stack push error the halt occurs on the
corresponding fault handler for the vector error or stack push. 2. If a late arriving interrupt detected during
a vector read or stack push error it is not taken. That is, an implementation that supports the late arrival
optimization must suppress it in this case.
Figure 2-86. DEMCR Register
31
30
29
28
27
26
25
24
RESERVED
TRCENA
rw-(0)
rw-(0)
23
22
21
20
19
18
17
16
RESERVED
MON_REQ
MON_STEP
MON_PEND
MON_EN
rw-(0)
rw-(0)
rw-(0)
rw-(0)
rw-(0)
15
14
13
12
11
10
9
8
RESERVED
VC_HARDERR
VC_INTERR
VC_BUSERR
rw-(0)
rw-(0)
rw-(0)
rw-(0)
7
6
5
4
3
2
1
0
VC_STATERR
VC_CHKERR
VC_NOCPERR
VC_MMERR
RESERVED
VC_CORERES
ET
rw-(0)
rw-(0)
rw-(0)
rw-(0)
rw-(0)
rw-(0)
Table 2-96. DEMCR Register Field Descriptions
Bit
Field
Type
Reset
Description
31-25
RESERVED
R/W
0h
24
TRCENA
R/W
0h
This bit must be set to 1 to enable use of the trace and debug
blocks: Data Watchpoint and Trace (DWT), Instrumentation Trace
Macrocell (ITM), Embedded Trace Macrocell (ETM), Trace Port
Interface Unit (TPIU). This enables control of power usage unless
tracing is required. The application can enable this, for ITM use, or
use by a debugger. Note that if no debug or trace components are
present in the implementation then it is not possible to set TRCENA.
23-20
RESERVED
R/W
0h
19
MON_REQ
R/W
0h
This enables the monitor to identify how it wakes up. This bit clears
on a Core Reset.
0b (R/W) = woken up by debug exception.
1b (R/W) = woken up by MON_PEND
18
MON_STEP
R/W
0h
When MON_EN = 1, this steps the core. When MON_EN = 0, this bit
is ignored. This is the equivalent to C_STEP. Interrupts are only
stepped according to the priority of the monitor and settings of
PRIMASK, FAULTMASK, or BASEPRI.
17
MON_PEND
R/W
0h
Pend the monitor to activate when priority permits. This can wake up
the monitor through the AHB-AP port. It is the equivalent to C_HALT
for Monitor debug. This register does not reset on a system reset. It
is only reset by a POR reset. Software in the reset handler or later,
or by the DAP must enable the debug monitor.