STMicroelectronics STM32WL5 Series Reference Manual page 1339

Advanced arm-based 32-bit mcus with sub-ghz radio solution
Table of Contents

Advertisement

RM0453
A DWT comparator compares the value held in its DWT_COMPxR registers with one of the
following:
a data address
an instruction address
a data value
the cycle count value, for comparator 0 only.
For address matching, the comparator can use a mask, so it matches a range of addresses.
On a successful match, the comparator generates one of the following:
one or more DWT data trace packets, containing one or more of:
a watchpoint debug event, on either the PC value or the accessed data address
a CMPMATCH[N] event that signals the match outside the DWT unit
A watchpoint debug event either generates a DebugMonitor exception or causes the
processor to halt execution and enter Debug state.
For more details on how to use the DWT, refer to the Arm
Manual [5].
38.6.1
DWT control register (DWT_CTRLR)
Address offset: 0x000
Reset value: 0x4000 0000
31
30
29
NUMCOMP[3:0]
r
r
r
15
14
13
PCSA
Res.
Res.
Res.
MPLEN
Bits 31:28 NUMCOMP[3:0]: number of comparators implemented (read only)
0x4: Four comparators
Bit 27 NOTRCPKT: trace sampling and exception tracing support (read only)
0: Supported
Bit 26 NOEXTTRIG: external match signal, CMPMATCH support (read only)
0: Supported
Bit 25 NOCYCCNT: cycle counter support (read only)
0: Supported
Bit 24 NOPRFCNT: profiling counter support (read only)
0: Supported
the address of the instruction that caused a data access
an address offset, bits[15:0] of the data access address
the matched data value
28
27
26
25
NOTR
NOEXT
NOCY
CPKT
TRIG
CCNT
r
r
r
r
12
11
10
9
CYCTA
SYNCTAP[1:0]
P
A
rw
rw
rw
rw
24
23
22
NOPRF
CYCEV
FOLDE
Res.
CNT
TENA
VTENA
r
rw
8
7
6
POSTINIT[3:0]
rw
rw
rw
RM0453 Rev 5
Debug support (DBG)
®
v7-M Architecture Reference
21
20
19
18
SLEEP
LSUEV
EXCEV
EVTEN
TENA
TENA
A
rw
rw
rw
rw
5
4
3
2
POSTPRESET[3:0]
rw
rw
rw
rw
17
16
CPIEV
EXCTR
TENA
CENA
rw
rw
1
0
CYCC
NTENA
rw
rw
1339/1450
1435

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32WL5 Series and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Stm32wl55 seriesStm32wl54 series

Table of Contents