X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=tcl%2Ftarget%2Flpc2129.cfg;h=374a3957132344c39731b493bd2f826d8f63a4be;hb=9c3b4cfc5d47052df955d72e88fcb4d6a1e79a60;hp=5438fc3cd91536f5f99c44f842d1d3a866fdd186;hpb=0da0bfd40a0ba46a68a6b9db428700241d2700b1;p=openocd.git diff --git a/tcl/target/lpc2129.cfg b/tcl/target/lpc2129.cfg index 5438fc3cd9..374a395713 100644 --- a/tcl/target/lpc2129.cfg +++ b/tcl/target/lpc2129.cfg @@ -1,5 +1,4 @@ -#LPC-2129 CPU - +# NXP LPC2129 if { [info exists CHIPNAME] } { set _CHIPNAME $CHIPNAME @@ -16,26 +15,24 @@ if { [info exists ENDIAN] } { if { [info exists CPUTAPID ] } { set _CPUTAPID $CPUTAPID } else { - # force an error till we get a good number - set _CPUTAPID 0xffffffff + set _CPUTAPID 0xcf1f0f0f } - #use combined on interfaces or targets that can't set TRST/SRST separately reset_config trst_and_srst srst_pulls_trst # reset delays -jtag_nsrst_delay 100 +adapter_nsrst_delay 100 jtag_ntrst_delay 100 #jtag scan chain jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID - set _TARGETNAME $_CHIPNAME.cpu target create $_TARGETNAME arm7tdmi -endian $_ENDIAN -chain-position $_TARGETNAME -variant arm7tdmi-s_r4 -$_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x40000000 -work-area-size 0x4000 -work-area-backup 0 +$_TARGETNAME configure -work-area-phys 0x40000000 -work-area-size 0x4000 -work-area-backup 0 -#flash bank -flash bank lpc2000 0x0 0x40000 0 0 $_TARGETNAME lpc2000_v1 14765 calc_checksum +# flash bank lpc2000 0 0 [calc checksum] +set _FLASHNAME $_CHIPNAME.flash +flash bank $_FLASHNAME lpc2000 0x0 0x40000 0 0 $_TARGETNAME lpc2000_v1 14765 calc_checksum