668de8fee9df3774871bf90a782f8f6c97b142ad
[fw/openocd] / tcl / target / hilscher_netx10.cfg
1 ################################################################################
2 # Author: Michael Trensch (MTrensch@googlemail.com)
3 ################################################################################
4
5 #Hilscher netX 10 CPU
6
7 if { [info exists CHIPNAME] } {
8    set _CHIPNAME $CHIPNAME
9 } else {
10    set _CHIPNAME netx10
11 }
12
13 if { [info exists ENDIAN] } {
14    set _ENDIAN $ENDIAN
15 } else {
16    set _ENDIAN little
17 }
18
19 if { [info exists CPUTAPID] } {
20    set _CPUTAPID $CPUTAPID
21 } else {
22    set _CPUTAPID 0x25966021
23 }
24
25 # jtag scan chain
26 jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
27
28 # that TAP is associated with a target
29 set _TARGETNAME $_CHIPNAME.cpu
30 target create $_TARGETNAME arm966e -endian $_ENDIAN -chain-position $_TARGETNAME