78ecb3bd2473ff23924e75b14eb268ed63f0fc51
[fw/openocd] / tcl / target / dsp56321.cfg
1 # Script for freescale DSP56321
2 #
3
4 if { [info exists CHIPNAME] } {
5    set _CHIPNAME $CHIPNAME
6 } else {
7    set _CHIPNAME dsp56321
8 }
9
10 if { [info exists ENDIAN] } {
11    set _ENDIAN $ENDIAN
12 } else {
13   # this defaults to a big endian
14    set _ENDIAN big
15 }
16
17 if { [info exists CPUTAPID] } {
18    set _CPUTAPID $CPUTAPID
19 } else {
20    set _CPUTAPID 0x1181501d
21 }
22
23 #jtag speed
24 adapter speed 4500
25
26 #has only srst
27 reset_config srst_only
28
29 #jtag scan chain
30 jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 1 -irmask 0x1 -expected-id $_CPUTAPID
31
32 #target configuration
33 set _TARGETNAME $_CHIPNAME.cpu
34 target create $_TARGETNAME dsp563xx -endian $_ENDIAN -chain-position $_TARGETNAME
35
36 #working area at base of ram
37 $_TARGETNAME configure -work-area-virt 0