Move TCL script files -- Step 2 of 2:
[fw/openocd] / tcl / target / sharp_lh79532.cfg
1 reset_config srst_only srst_pulls_trst
2
3 if { [info exists CHIPNAME] } { 
4    set  _CHIPNAME $CHIPNAME    
5 } else {         
6    set  _CHIPNAME lh79532
7 }
8
9 if { [info exists ENDIAN] } {   
10    set  _ENDIAN $ENDIAN    
11 } else {         
12    set  _ENDIAN little
13 }
14
15 if { [info exists CPUTAPID ] } {
16    set _CPUTAPID $CPUTAPID
17 } else {
18   # sharp changed the number!
19    set _CPUTAPID 0x00002061
20 }
21 jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
22
23 set _TARGETNAME [format "%s.cpu" $_CHIPNAME]
24 target create $_TARGETNAME arm7tdmi -endian $_ENDIAN -chain-position $_TARGETNAME  
25
26