Debug Peripherals Registers
208
SLAU356I – March 2015 – Revised June 2019
Copyright © 2015–2019, Texas Instruments Incorporated
Cortex-M4F Peripherals
Table 2-122. FUNCTION1 Register Field Descriptions (continued)
Bit
Field
Type
Reset
Description
5
EMITRANGE
R/W
0h
Emit range field. Reserved to permit emitting offset when range
match occurs. Reset clears the EMITRANGE bit. PC sampling is not
supported when EMITRANGE is enabled. EMITRANGE only applies
for: FUNCTION = b0001, b0010, b0011, b1100, b1101, b1110, and
b1111.
4
RESERVED
R
0h
3-0
FUNCTION
R/W
0h
Function settings. Note 1: If the ETM is not fitted, then ETM trigger is
not possible. Note 2: Data value is only sampled for accesses that
do not fault (MPU or bus fault). The PC is sampled irrespective of
any faults. The PC is only sampled for the first address of a burst.
Note 3: FUNCTION is overridden for comparators given by
DATAVADDR0 and DATAVADDR1 in DWT_FUNCTION1if
DATAVMATCH is also set in DWT_FUNCTION1. The comparators
given by DATAVADDR0 and DATAVADDR1 can then only perform
address comparator matches for comparator 1 data matches. Note
4: If the data matching functionality is not included during
implementation it is not possible to set DATAVADDR0,
DATAVADDR1, or DATAVMATCH in DWT_FUNCTION1. This
means that the data matching functionality is not available in the
implementation. Test the availability of data matching by writing and
reading the DATAVMATCH bit in DWT_FUNCTION1. If it is not
settable then data matching is unavailable. Note 5: PC match is not
recommended for watchpoints because it stops after the instruction.
It mainly guards and triggers the ETM.
0b (R/W) = Disabled
1b (R/W) = EMITRANGE = 0, sample and emit PC through ITM.
EMITRANGE = 1, emit address offset through ITM
10b (R/W) = EMITRANGE = 0, emit data through ITM on read and
write. EMITRANGE = 1, emit data and address offset through ITM
on read or write.
11b (R/W) = EMITRANGE = 0, sample PC and data value through
ITM on read or write. EMITRANGE = 1, emit address offset and data
value through ITM on read or write.
100b (R/W) = Watchpoint on PC match.
101b (R/W) = Watchpoint on read.
110b (R/W) = Watchpoint on write.
111b (R/W) = Watchpoint on read or write.
1000b (R/W) = ETM trigger on PC match
1001b (R/W) = ETM trigger on read
1010b (R/W) = ETM trigger on write
1011b (R/W) = ETM trigger on read or write
1100b (R/W) = EMITRANGE = 0, sample data for read transfers.
EMITRANGE = 1, sample Daddr [15:0] for read transfers
1101b (R/W) = EMITRANGE = 0, sample data for write transfers.
EMITRANGE = 1, sample Daddr [15:0] for write transfers
1110b (R/W) = EMITRANGE = 0, sample PC + data for read
transfers. EMITRANGE = 1, sample Daddr [15:0] + data for read
transfers
1111b (R/W) = EMITRANGE = 0, sample PC + data for write
transfers. EMITRANGE = 1, sample Daddr [15:0] + data for write
transfers