Trace Unit
20-18
ADSP-BF535 Blackfin Processor Hardware Reference
Trace Buffer Register (TBUF)
Figure 20-11
shows the Trace Buffer register (
TBUF
). The first read returns
the latest branch target address. The second read returns the latest branch
source address.
The Trace Unit does not record changes in program flow in:
• Emulator mode
• The reset service routine
• The exception or higher priority service routines (if
TBUOVF = 1
)
• In the exception service routine, the program flow discontinuities
may be read from
TBUF
and stored in memory by using the follow-
ing code.
While
TBUF
is being read, be sure to disable the trace buffer from
recording new discontinuities.
Code to Recreate the Execution Trace in Memory
Listing 20-1
provides code that can be used to recreate the entire execu-
tion trace in memory.
Figure 20-11. Trace Buffer Register
X
31 30
29 28
27 26
25 24
23 22
21 20
19
18 17 16
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
Reset = Undefined
X
X
15 14
13 12
11 10
9
8
7
6
5
4
3
2
1
0
X
X
X
X
X
X
X
X
X
X
X
X
Trace Buffer Register (TBUF)
TBUF[15:0]
X
TBUF[31:16]
Alias to all trace buffer entries
0xFFE0 6100
Содержание ADSP-BF535 Blackfin
Страница 80: ...Development Tools 1 26 ADSP BF535 Blackfin Processor Hardware Reference...
Страница 312: ...Working With Memory 6 86 ADSP BF535 Blackfin Processor Hardware Reference...
Страница 332: ...System Interfaces 7 20 ADSP BF535 Blackfin Processor Hardware Reference...
Страница 360: ...Dynamic Power Management Controller 8 28 ADSP BF535 Blackfin Processor Hardware Reference...
Страница 446: ...Beginning and Ending an SPI Transfer 10 40 ADSP BF535 Blackfin Processor Hardware Reference...
Страница 522: ...Timing Examples 11 76 ADSP BF535 Blackfin Processor Hardware Reference...
Страница 562: ...IrDA Support 12 40 ADSP BF535 Blackfin Processor Hardware Reference...
Страница 608: ...PCI I O Issues 13 46 ADSP BF535 Blackfin Processor Hardware Reference...
Страница 672: ...References 14 64 ADSP BF535 Blackfin Processor Hardware Reference...
Страница 810: ...SDRAM Controller SDC 18 86 ADSP BF535 Blackfin Processor Hardware Reference...
Страница 811: ...ADSP BF535 Blackfin Processor Hardware Reference 18 87 External Bus Interface Unit...
Страница 812: ...SDRAM Controller SDC 18 88 ADSP BF535 Blackfin Processor Hardware Reference...
Страница 860: ...DMA Bus Debug Registers 20 30 ADSP BF535 Blackfin Processor Hardware Reference...
Страница 908: ...SDRAM Controller External Bus Interface Unit B 36 ADSP BF535 Blackfin Processor Hardware Reference...