cfg: Fix Kinetis kwikstik/kx config
[openocd.git] / tcl / target / dsp56321.cfg
blob6f3222373f36e04368fd721b367521d753f5305a
1 # Script for freescale DSP56321
4 if { [info exists CHIPNAME] } { 
5    set _CHIPNAME $CHIPNAME
6 } else {
7    set _CHIPNAME dsp56321
10 if { [info exists ENDIAN] } {   
11    set _ENDIAN $ENDIAN
12 } else {
13   # this defaults to a big endian
14    set _ENDIAN big
17 if { [info exists CPUTAPID] } {
18    set _CPUTAPID $CPUTAPID
19 } else {
20    set _CPUTAPID 0x1181501d
23 #jtag speed
24 adapter_khz 4500
26 #has only srst
27 reset_config srst_only
29 #jtag scan chain
30 jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 1 -irmask 0x1 -expected-id $_CPUTAPID
32 #target configuration
33 set _TARGETNAME $_CHIPNAME.cpu
34 target create $_TARGETNAME dsp563xx -endian $_ENDIAN -chain-position $_TARGETNAME
36 #working area at base of ram
37 $_TARGETNAME configure -work-area-virt 0