remove srst_pulls_trst from LPC2xxx target scripts
[fw/openocd] / tcl / target / lpc2294.cfg
1 if { [info exists CHIPNAME] } {
2    set  _CHIPNAME $CHIPNAME
3 } else {
4    set  _CHIPNAME lpc2294
5 }
6
7 if { [info exists CPUTAPID ] } {
8    set _CPUTAPID $CPUTAPID
9 } else {
10   # force an error till we get a good number
11    set _CPUTAPID 0xffffffff
12 }
13
14 adapter_nsrst_delay 200
15 jtag_ntrst_delay 200
16
17 reset_config trst_and_srst
18
19 #jtag scan chain
20 jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
21
22 set _TARGETNAME $_CHIPNAME.cpu
23 target create $_TARGETNAME arm7tdmi -chain-position $_TARGETNAME
24 $_TARGETNAME configure -work-area-phys 0x40000000 -work-area-size 0x4000 -work-area-backup 0
25
26 #flash configuration
27 # flash bank <name> lpc2000 <base> <size> 0 0 <target#> <variant> <clock> [calc checksum]
28 set _FLASHNAME $_CHIPNAME.flash
29 flash bank $_FLASHNAME lpc2000 0x0 0x40000 0 0 $_TARGETNAME lpc2000_v1 14765 calc_checksum