annotate calypso-jtag/taps-only.cfg @ 56:d4357e6d6679

checking in some Calypso JTAG experiments
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 12 May 2019 04:11:30 +0000
parents
children 2092878ec699
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
56
d4357e6d6679 checking in some Calypso JTAG experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
1 # The Calypso target is connected to an unbuffered FT2232D adapter
d4357e6d6679 checking in some Calypso JTAG experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
2 # acting as the JTAG interface following Mother Mychaela's method,
d4357e6d6679 checking in some Calypso JTAG experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
3 # ADBUS7 is wired to the reset pin on TI's 14-pin connector.
d4357e6d6679 checking in some Calypso JTAG experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
4 # This OpenOCD config sets up the TAPs and nSRST control ability,
d4357e6d6679 checking in some Calypso JTAG experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
5 # but no ARM7 target yet.
d4357e6d6679 checking in some Calypso JTAG experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
6
d4357e6d6679 checking in some Calypso JTAG experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
7 interface ftdi
d4357e6d6679 checking in some Calypso JTAG experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
8 ftdi_vid_pid 0x0403 0x7151
d4357e6d6679 checking in some Calypso JTAG experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
9
d4357e6d6679 checking in some Calypso JTAG experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
10 ftdi_layout_init 0x0088 0x00fb
d4357e6d6679 checking in some Calypso JTAG experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
11 ftdi_layout_signal nSRST -data 0x0080 -oe 0x0080
d4357e6d6679 checking in some Calypso JTAG experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
12
d4357e6d6679 checking in some Calypso JTAG experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
13 transport select jtag
d4357e6d6679 checking in some Calypso JTAG experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
14
d4357e6d6679 checking in some Calypso JTAG experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
15 adapter_khz 6000
d4357e6d6679 checking in some Calypso JTAG experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
16 reset_config srst_only srst_push_pull
d4357e6d6679 checking in some Calypso JTAG experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
17
d4357e6d6679 checking in some Calypso JTAG experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
18 if { [info exists CHIPNAME] } {
d4357e6d6679 checking in some Calypso JTAG experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
19 set _CHIPNAME $CHIPNAME
d4357e6d6679 checking in some Calypso JTAG experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
20 } else {
d4357e6d6679 checking in some Calypso JTAG experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
21 set _CHIPNAME calypso
d4357e6d6679 checking in some Calypso JTAG experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
22 }
d4357e6d6679 checking in some Calypso JTAG experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
23
d4357e6d6679 checking in some Calypso JTAG experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
24 if { [info exists ENDIAN] } {
d4357e6d6679 checking in some Calypso JTAG experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
25 set _ENDIAN $ENDIAN
d4357e6d6679 checking in some Calypso JTAG experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
26 } else {
d4357e6d6679 checking in some Calypso JTAG experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
27 set _ENDIAN little
d4357e6d6679 checking in some Calypso JTAG experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
28 }
d4357e6d6679 checking in some Calypso JTAG experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
29
d4357e6d6679 checking in some Calypso JTAG experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
30 if { [info exists CPUTAPID] } {
d4357e6d6679 checking in some Calypso JTAG experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
31 set _CPUTAPID $CPUTAPID
d4357e6d6679 checking in some Calypso JTAG experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
32 } else {
d4357e6d6679 checking in some Calypso JTAG experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
33 set _CPUTAPID 0x3100e02f
d4357e6d6679 checking in some Calypso JTAG experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
34 }
d4357e6d6679 checking in some Calypso JTAG experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
35
d4357e6d6679 checking in some Calypso JTAG experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
36 jtag newtap $_CHIPNAME dsp -irlen 8
d4357e6d6679 checking in some Calypso JTAG experiments
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
37 jtag newtap $_CHIPNAME arm -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID