FreeCalypso > hg > freecalypso-hwlab
annotate calypso-jtag/early-experiments/with-target.cfg @ 176:fb2f6497ba53 default tip
doc/Linux-DTR-RTS-flaw: point to new location of this article
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 11 Dec 2023 19:37:20 +0000 |
parents | 240221552ecf |
children |
rev | line source |
---|---|
57
d68f862c8240
calypso-jtag/with-target.cfg: one more experiment
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 # The Calypso target is connected to an unbuffered FT2232D adapter |
d68f862c8240
calypso-jtag/with-target.cfg: one more experiment
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 # acting as the JTAG interface following Mother Mychaela's method, |
d68f862c8240
calypso-jtag/with-target.cfg: one more experiment
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
3 # ADBUS7 is wired to the reset pin on TI's 14-pin connector. |
d68f862c8240
calypso-jtag/with-target.cfg: one more experiment
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
4 # This OpenOCD config sets up the TAPs and the ARM7TDMI target |
d68f862c8240
calypso-jtag/with-target.cfg: one more experiment
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
5 # in order to test OpenOCD's ability to halt with and without the |
d68f862c8240
calypso-jtag/with-target.cfg: one more experiment
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
6 # "Calypso magic" that has supposedly been sniffed from TI's CCS |
d68f862c8240
calypso-jtag/with-target.cfg: one more experiment
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
7 # by people who came before me. |
d68f862c8240
calypso-jtag/with-target.cfg: one more experiment
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
8 |
d68f862c8240
calypso-jtag/with-target.cfg: one more experiment
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 interface ftdi |
d68f862c8240
calypso-jtag/with-target.cfg: one more experiment
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
10 ftdi_vid_pid 0x0403 0x7151 |
d68f862c8240
calypso-jtag/with-target.cfg: one more experiment
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
11 |
58
2092878ec699
calypso-jtag configs: leave FT2232x ADBUS[6:4] as inputs
Mychaela Falconia <falcon@freecalypso.org>
parents:
57
diff
changeset
|
12 ftdi_layout_init 0x0088 0x008b |
57
d68f862c8240
calypso-jtag/with-target.cfg: one more experiment
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
13 ftdi_layout_signal nSRST -data 0x0080 -oe 0x0080 |
d68f862c8240
calypso-jtag/with-target.cfg: one more experiment
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
14 |
d68f862c8240
calypso-jtag/with-target.cfg: one more experiment
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
15 transport select jtag |
d68f862c8240
calypso-jtag/with-target.cfg: one more experiment
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
16 |
d68f862c8240
calypso-jtag/with-target.cfg: one more experiment
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
17 adapter_khz 6000 |
d68f862c8240
calypso-jtag/with-target.cfg: one more experiment
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
18 reset_config srst_only srst_push_pull |
d68f862c8240
calypso-jtag/with-target.cfg: one more experiment
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
19 |
d68f862c8240
calypso-jtag/with-target.cfg: one more experiment
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
20 if { [info exists CHIPNAME] } { |
d68f862c8240
calypso-jtag/with-target.cfg: one more experiment
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
21 set _CHIPNAME $CHIPNAME |
d68f862c8240
calypso-jtag/with-target.cfg: one more experiment
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
22 } else { |
d68f862c8240
calypso-jtag/with-target.cfg: one more experiment
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
23 set _CHIPNAME calypso |
d68f862c8240
calypso-jtag/with-target.cfg: one more experiment
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
24 } |
d68f862c8240
calypso-jtag/with-target.cfg: one more experiment
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
25 |
d68f862c8240
calypso-jtag/with-target.cfg: one more experiment
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
26 if { [info exists CPUTAPID] } { |
d68f862c8240
calypso-jtag/with-target.cfg: one more experiment
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
27 set _CPUTAPID $CPUTAPID |
d68f862c8240
calypso-jtag/with-target.cfg: one more experiment
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
28 } else { |
d68f862c8240
calypso-jtag/with-target.cfg: one more experiment
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
29 set _CPUTAPID 0x3100e02f |
d68f862c8240
calypso-jtag/with-target.cfg: one more experiment
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
30 } |
d68f862c8240
calypso-jtag/with-target.cfg: one more experiment
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
31 |
d68f862c8240
calypso-jtag/with-target.cfg: one more experiment
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
32 jtag newtap $_CHIPNAME dsp -irlen 8 |
d68f862c8240
calypso-jtag/with-target.cfg: one more experiment
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
33 jtag newtap $_CHIPNAME arm -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID |
d68f862c8240
calypso-jtag/with-target.cfg: one more experiment
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
34 |
d68f862c8240
calypso-jtag/with-target.cfg: one more experiment
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
35 set _TARGETNAME $_CHIPNAME.arm |
d68f862c8240
calypso-jtag/with-target.cfg: one more experiment
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
36 target create $_TARGETNAME arm7tdmi -endian little -chain-position $_TARGETNAME |
d68f862c8240
calypso-jtag/with-target.cfg: one more experiment
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
37 |
d68f862c8240
calypso-jtag/with-target.cfg: one more experiment
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
38 proc calypso_magic {} { |
d68f862c8240
calypso-jtag/with-target.cfg: one more experiment
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
39 irscan calypso.arm 0x0b -endstate DRPAUSE |
d68f862c8240
calypso-jtag/with-target.cfg: one more experiment
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
40 drscan calypso.arm 2 2 -endstate RUN/IDLE |
d68f862c8240
calypso-jtag/with-target.cfg: one more experiment
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
41 } |