| 1 | # Adapter configuration for Busblaster |
|---|
| 2 | interface ft2232 |
|---|
| 3 | ft2232_vid_pid 0x0403 0x6010 |
|---|
| 4 | ft2232_device_desc "USB <-> Serial Converter" |
|---|
| 5 | ft2232_layout jtagkey |
|---|
| 6 | ft2232_latency 2 |
|---|
| 7 | |
|---|
| 8 | if { [info exists CHIPNAME] } { |
|---|
| 9 | set _CHIPNAME $CHIPNAME |
|---|
| 10 | } else { |
|---|
| 11 | set _CHIPNAME calypso |
|---|
| 12 | } |
|---|
| 13 | |
|---|
| 14 | if { [info exists ENDIAN] } { |
|---|
| 15 | set _ENDIAN $ENDIAN |
|---|
| 16 | } else { |
|---|
| 17 | set _ENDIAN little |
|---|
| 18 | } |
|---|
| 19 | |
|---|
| 20 | if { [info exists CPUTAPID ] } { |
|---|
| 21 | set _CPUTAPID $CPUTAPID |
|---|
| 22 | } else { |
|---|
| 23 | set _CPUTAPID 0x3100e02f |
|---|
| 24 | } |
|---|
| 25 | |
|---|
| 26 | reset_config trst_and_srst |
|---|
| 27 | |
|---|
| 28 | adapter_khz 6000 |
|---|
| 29 | |
|---|
| 30 | jtag newtap $_CHIPNAME dsp -expected-id 0x00000000 -irlen 8 |
|---|
| 31 | jtag newtap $_CHIPNAME arm -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID |
|---|
| 32 | |
|---|
| 33 | # The target |
|---|
| 34 | set _TARGETNAME [format "%s.arm" $_CHIPNAME] |
|---|
| 35 | target create $_TARGETNAME arm7tdmi -endian little -chain-position $_TARGETNAME -variant arm7tdmi |
|---|
| 36 | |
|---|
| 37 | init |
|---|
| 38 | |
|---|
| 39 | # Execute the Calypso "Magic" (sniffed from TI CCS v3.3 with XDS510) |
|---|
| 40 | svf calypso_magic.svf |
|---|
| 41 | |
|---|
| 42 | halt |
|---|
| 43 | arm core_state arm |
|---|
| 44 | |
|---|
| 45 | #arm7_9 dcc_downloads enable |
|---|
| 46 | arm7_9 fast_memory_access enable |
|---|
| 47 | |
|---|