target/adi_v5_swd: move setting of do_reconnect one level up
[openocd.git] / tcl / target / dsp56321.cfg
blobfac0ccc44b26f97d9f282eb8e8171f57be67e57b
1 # SPDX-License-Identifier: GPL-2.0-or-later
3 # Script for freescale DSP56321
6 if { [info exists CHIPNAME] } {
7    set _CHIPNAME $CHIPNAME
8 } else {
9    set _CHIPNAME dsp56321
12 if { [info exists ENDIAN] } {
13    set _ENDIAN $ENDIAN
14 } else {
15   # this defaults to a big endian
16    set _ENDIAN big
19 if { [info exists CPUTAPID] } {
20    set _CPUTAPID $CPUTAPID
21 } else {
22    set _CPUTAPID 0x1181501d
25 #jtag speed
26 adapter speed 4500
28 #has only srst
29 reset_config srst_only
31 #jtag scan chain
32 jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 1 -irmask 0x1 -expected-id $_CPUTAPID
34 #target configuration
35 set _TARGETNAME $_CHIPNAME.cpu
36 target create $_TARGETNAME dsp563xx -endian $_ENDIAN -chain-position $_TARGETNAME
38 #working area at base of ram
39 $_TARGETNAME configure -work-area-virt 0