281c4ddd47215faa486d7fcc01f08d8feade29f5
[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   # force an error till we get a good number
21    set _CPUTAPID 0x1181501d
22 }
23
24 #jtag speed
25 adapter_khz 4500
26
27 #has only srst
28 reset_config srst_only
29
30 #jtag scan chain
31 jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 1 -irmask 0x1 -expected-id $_CPUTAPID
32
33 #target configuration
34 set _TARGETNAME $_CHIPNAME.cpu
35 target create $_TARGETNAME dsp563xx -endian $_ENDIAN -chain-position $_TARGETNAME
36
37 #working area at base of ram
38 $_TARGETNAME configure -work-area-virt 0