MTB_MASTER field descriptions (continued)
Field Description
NOTE: If the EN bit is set to 0 because the MTB_FLOW[WATERMARK] field is set, then it is not
automatically set to 1 if the TSTARTEN bit is 1 and the TSTART input is HIGH. In this case,
tracing can only be restarted if the MTB_FLOW[WATERMARK] or MTB_POSITION[POINTER]
value is changed by software.
30–10
Reserved
This field is reserved.
This read-only field is reserved and always has the value 0.
9
HALTREQ
Halt request bit
This bit is connected to the halt request signal of the trace logic, EDBGRQ. When HALTREQ is set to 1,
the EDBFGRQ is asserted if DBGEN (invasive debug enable, one of the debug authentication interface
signals) is also HIGH. The HALTREQ bit can be automatically set to 1 using the
MTB_FLOW[WATERMARK] field.
8
RAMPRIV
RAM privilege bit
If this bit is 0, then user or privileged AHB read and write accesses to the RAM are permitted. If this bit is
1, then only privileged AHB read and write accesses to the RAM are permitted and user accesses are
RAZ/WI. The HPROT[1] signal determines if an access is a user or privileged mode reference.
7
SFRWPRIV
Special Function Register Write Privilege bit
If this bit is 0, then user or privileged AHB read and write accesses to the MTB_RAM Special Function
Registers (programming model) are permitted. If this bit is 1, then only privileged write accesses are
permitted; user write accesses are ignored. The HPROT[1] signal determines if an access is user or
privileged. Note MTB_RAM SFR read access are not controlled by this bit and are always permitted.
6
TSTOPEN
Trace stop input enable
If this bit is 1 and the TSTOP signal is HIGH, then the EN bit is set to 0. If a trace packet is being written to
memory, the write is completed before tracing is stopped.
5
TSTARTEN
Trace start input enable
If this bit is 1 and the TSTART signal is HIGH, then the EN bit is set to 1. Tracing continues until a stop
condition occurs.
4–0
MASK
Mask
This value determines the maximum size of the trace buffer in RAM. It specifies the most-significant bit of
the MTB_POSITION[POINTER] field that can be updated by automatic increment. If the trace tries to
advance past this power of two, the MTB_POSITION[WRAP] bit is set to 1, the
MTB_POSITION[POINTER[MASK:0]] bits are set to zero, and the MTB_POSITION[POINTER[11:MASK
+1]] bits remain unchanged.
This field causes the trace packet information to be stored in a circular buffer of size 2^[MASK+4] bytes,
that can be positioned in memory at multiples of this size. Valid values of this field are zero to 11. Values
greater than the maximum have the same effect as the maximum.
Memory Map and Register Definition
KL25 Sub-Family Reference Manual, Rev. 3, September 2012
308 Freescale Semiconductor, Inc.