FreeCalypso > hg > freecalypso-hwlab
comparison calypso-jtag/early-experiments/with-target.cfg @ 62:240221552ecf
calypso-jtag: files reshuffled for release
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 23 Jun 2019 03:12:30 +0000 |
parents | calypso-jtag/with-target.cfg@2092878ec699 |
children |
comparison
equal
deleted
inserted
replaced
61:3940292ad76f | 62:240221552ecf |
---|---|
1 # The Calypso target is connected to an unbuffered FT2232D adapter | |
2 # acting as the JTAG interface following Mother Mychaela's method, | |
3 # ADBUS7 is wired to the reset pin on TI's 14-pin connector. | |
4 # This OpenOCD config sets up the TAPs and the ARM7TDMI target | |
5 # in order to test OpenOCD's ability to halt with and without the | |
6 # "Calypso magic" that has supposedly been sniffed from TI's CCS | |
7 # by people who came before me. | |
8 | |
9 interface ftdi | |
10 ftdi_vid_pid 0x0403 0x7151 | |
11 | |
12 ftdi_layout_init 0x0088 0x008b | |
13 ftdi_layout_signal nSRST -data 0x0080 -oe 0x0080 | |
14 | |
15 transport select jtag | |
16 | |
17 adapter_khz 6000 | |
18 reset_config srst_only srst_push_pull | |
19 | |
20 if { [info exists CHIPNAME] } { | |
21 set _CHIPNAME $CHIPNAME | |
22 } else { | |
23 set _CHIPNAME calypso | |
24 } | |
25 | |
26 if { [info exists CPUTAPID] } { | |
27 set _CPUTAPID $CPUTAPID | |
28 } else { | |
29 set _CPUTAPID 0x3100e02f | |
30 } | |
31 | |
32 jtag newtap $_CHIPNAME dsp -irlen 8 | |
33 jtag newtap $_CHIPNAME arm -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID | |
34 | |
35 set _TARGETNAME $_CHIPNAME.arm | |
36 target create $_TARGETNAME arm7tdmi -endian little -chain-position $_TARGETNAME | |
37 | |
38 proc calypso_magic {} { | |
39 irscan calypso.arm 0x0b -endstate DRPAUSE | |
40 drscan calypso.arm 2 2 -endstate RUN/IDLE | |
41 } |