]> git.sur5r.net Git - openocd/blob - src/tcl/target/netx500.cfg
Move TCL script files -- Step 1 of 2:
[openocd] / src / tcl / target / netx500.cfg
1 #Hilscher netX 500 CPU
2
3
4 if { [info exists CHIPNAME] } { 
5    set  _CHIPNAME $CHIPNAME    
6 } else {         
7    set  _CHIPNAME netx500
8 }
9
10 if { [info exists ENDIAN] } {   
11    set  _ENDIAN $ENDIAN    
12 } else {         
13    set  _ENDIAN little
14 }
15
16 if { [info exists CPUTAPID ] } {
17    set _CPUTAPID $CPUTAPID
18 } else {
19   # force an error till we get a good number
20    set _CPUTAPID 0xffffffff
21 }
22
23
24 #use combined on interfaces or targets that can't set TRST/SRST separately
25 reset_config trst_and_srst
26 #jtag scan chain
27 #
28 jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
29 jtag_nsrst_delay 100
30 jtag_ntrst_delay 100
31
32 set _TARGETNAME [format "%s.cpu" $_CHIPNAME]
33 target create $_TARGETNAME arm926ejs -endian $_ENDIAN -chain-position $_TARGETNAME -variant arm926ejs
34