Debug Test Access Port
ARM DDI 0301H
Copyright © 2004-2009 ARM Limited. All rights reserved.
14-27
ID012310
Non-Confidential, Unrestricted Access
Note
If the sticky imprecise Data Aborts flag is set, an imprecise Data Abort has occurred and
the sequence restarts at step 1 after the cause of the abort is fixed and R0 is reloaded.
Host to target transfer
The DBGTAP debugger can use the following sequence for writing data to the processor
memory system. The sequence assumes that the ARM register R0 contains a pointer to the
address of memory where the write has to start:
1.
Scan_N into the IR.
2.
1 into the SCREG.
3.
INTEST into the IR.
4.
Scan out the contents of the DSCR. This clears the sticky precise Data Abort, sticky
imprecise Data Abort, and sticky Undefined flags.
5.
Scan_N into the IR.
6.
4 into the SCREG.
7.
EXTEST into the IR.
8.
Scan in the
STC p14,c5,[R0],#4
instruction into the ITR.
9.
Scan_N into the IR.
10.
5 into the SCREG.
11.
EXTEST into the IR.
12.
Scan in 34 bits, the least significant 32 holding the word to be sent. At the same time, 34
bits are scanned out. If the Ready flag is clear, repeat this step.
13.
Go through Run-Test/Idle state.
14.
Go to step 12 again for writing in more data.
15.
Scan in 34 bits. All the values are don’t care. At the same time, 34 bits are scanned out. If
the Ready flag is clear, repeat this step. The don’t care value is written into the rDTR,
Update-DR state, immediately after Ready is seen set, Capture-DR state. However, the
STC instruction is not re-issued because the DBGTAPSM does not go through
Run-Test/Idle.
16.
Scan_N into the IR.
17.
1 into the SCREG.
18.
INTEST into the IR.
19.
Scan out the contents of the DSCR. This clears the sticky precise Data Abort and sticky
imprecise Data Abort flags. If the sticky precise Data Abort is set, this means that during
the sequence one of the instructions caused a precise Data Abort. All the instructions that
follow are not executed. Register R0 points to the next word to be written, and after the
cause for the abort has been fixed, the sequences resumes at step 5.