Trace Unit
20-16
ADSP-BF535 Blackfin Processor Hardware Reference
The number of valid entries in
TBUF
is held in the
TBUFCNT
field of the
TBUFSTAT
register. On every second read,
TBUFCNT
is decremented. Because
each entry corresponds to two pieces of data, a total of
2
TBUFCNT
reads
empties
TBUF
.
Discontinuities that are the same as either of the last two entries in
the trace buffer are not recorded.
Because reading the trace buffer is a destructive operation, it is rec-
ommended that
TBUF
be read in a non-interruptible section of
code.
Note if single-level compression has occurred, the LSB of the branch tar-
get address is set. If two-level compression has occurred, the LSB of the
branch source address is set.
Trace Buffer Control Register (TBUFCTL)
The Trace Unit is enabled by two control bits in the Trace Buffer Control
register (
TBUFCTL
) register. First, the Trace Unit must be activated by set-
ting the
TBUFPWR
bit. If
TBUFPWR=1
, then setting
TBUFEN
to 1 enables the
Trace Unit.
Figure 20-9
shows the Trace Buffer Control register (
TBUFCTL
). If
TBUFOVF = 1
, then the Trace Unit does not record discontinuities in the
exception, NMI, and reset routines.
Summary of Contents for ADSP-BF535 Blackfin
Page 80: ...Development Tools 1 26 ADSP BF535 Blackfin Processor Hardware Reference...
Page 312: ...Working With Memory 6 86 ADSP BF535 Blackfin Processor Hardware Reference...
Page 332: ...System Interfaces 7 20 ADSP BF535 Blackfin Processor Hardware Reference...
Page 360: ...Dynamic Power Management Controller 8 28 ADSP BF535 Blackfin Processor Hardware Reference...
Page 446: ...Beginning and Ending an SPI Transfer 10 40 ADSP BF535 Blackfin Processor Hardware Reference...
Page 522: ...Timing Examples 11 76 ADSP BF535 Blackfin Processor Hardware Reference...
Page 562: ...IrDA Support 12 40 ADSP BF535 Blackfin Processor Hardware Reference...
Page 608: ...PCI I O Issues 13 46 ADSP BF535 Blackfin Processor Hardware Reference...
Page 672: ...References 14 64 ADSP BF535 Blackfin Processor Hardware Reference...
Page 810: ...SDRAM Controller SDC 18 86 ADSP BF535 Blackfin Processor Hardware Reference...
Page 811: ...ADSP BF535 Blackfin Processor Hardware Reference 18 87 External Bus Interface Unit...
Page 812: ...SDRAM Controller SDC 18 88 ADSP BF535 Blackfin Processor Hardware Reference...
Page 860: ...DMA Bus Debug Registers 20 30 ADSP BF535 Blackfin Processor Hardware Reference...