Fixes write to flash

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3090 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2010-11-09 02:53:42 +00:00
parent 0acc48b498
commit 1aa9013499

View File

@ -42,8 +42,11 @@ if { [info exists CPUTAPID ] } {
adapter_nsrst_delay 200
jtag_ntrst_delay 200
#jtag newtap $_CHIPNAME cpu -irlen 4 -expected-id $_CPUTAPID
swj_newdap $_CHIPNAME cpu -irlen 4 -expected-id $_CPUTAPID
# LPC2000 & LPC1700 -> SRST causes TRST
reset_config trst_and_srst srst_pulls_trst
#swj_newdap $_CHIPNAME cpu -irlen 4 -expected-id $_CPUTAPID
jtag newtap $_CHIPNAME cpu -irlen 4 -expected-id $_CPUTAPID
set _TARGETNAME $_CHIPNAME.cpu
target create $_TARGETNAME cortex_m3 -chain-position $_TARGETNAME
@ -62,7 +65,7 @@ flash bank $_FLASHNAME lpc2000 0x0 0x40000 0 0 $_TARGETNAME \
# Run with *real slow* clock by default since the
# boot rom could have been playing with the PLL, so
# we have no idea what clock the target is running at.
jtag_khz 10
jtag_khz 100
$_TARGETNAME configure -event reset-init {
# Do not remap 0x0000-0x0020 to anything but the flash (i.e. select