summaryrefslogtreecommitdiff
path: root/tcl
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-09-04 11:03:26 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-09-04 11:03:26 +0000
commit0b11e4dbb4e2d40452bff47bef6a6522453b4a96 (patch)
treeed2687ac7cdc5e39ac50640950a32ea236bfcedf /tcl
parentb13dbc80e0272735673fa8a0c82c7fc984a9385c (diff)
downloadopenocd+libswd-0b11e4dbb4e2d40452bff47bef6a6522453b4a96.tar.gz
openocd+libswd-0b11e4dbb4e2d40452bff47bef6a6522453b4a96.tar.bz2
openocd+libswd-0b11e4dbb4e2d40452bff47bef6a6522453b4a96.tar.xz
openocd+libswd-0b11e4dbb4e2d40452bff47bef6a6522453b4a96.zip
use "armv4_5 core_state arm" instead of soft_reset_halt, fewer side effects
git-svn-id: svn://svn.berlios.de/openocd/trunk@2672 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'tcl')
-rw-r--r--tcl/target/lpc1768.cfg3
-rw-r--r--tcl/target/lpc2148.cfg4
-rw-r--r--tcl/target/lpc2378.cfg2
3 files changed, 5 insertions, 4 deletions
diff --git a/tcl/target/lpc1768.cfg b/tcl/target/lpc1768.cfg
index 7afcf712..fbf7117c 100644
--- a/tcl/target/lpc1768.cfg
+++ b/tcl/target/lpc1768.cfg
@@ -34,7 +34,8 @@ target create $_TARGETNAME cortex_m3 -endian $_ENDIAN -chain-position $_TARGETNA
$_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x10000000 -work-area-size 0x8000 -work-area-backup 0
$_TARGETNAME configure -event reset-init {
- soft_reset_halt
+ # Force target into ARM state
+ armv4_5 core_state arm
#do not remap 0x0000-0x0020 to anything but the flash
# mwb 0xE01FC040 0x01
mwb 0xE000ED08 0x00
diff --git a/tcl/target/lpc2148.cfg b/tcl/target/lpc2148.cfg
index 0410d366..fd939d99 100644
--- a/tcl/target/lpc2148.cfg
+++ b/tcl/target/lpc2148.cfg
@@ -38,8 +38,8 @@ target create $_TARGETNAME arm7tdmi -endian $_ENDIAN -chain-position $_TARGETNAM
$_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x40000000 -work-area-size 0x4000 -work-area-backup 0
$_TARGETNAME configure -event reset-init {
- # Force target into ARM state.
- soft_reset_halt
+ # Force target into ARM state
+ armv4_5 core_state arm
# Do not remap 0x0000-0x0020 to anything but the flash (i.e. select
# "User Flash Mode" where interrupt vectors are _not_ remapped,
diff --git a/tcl/target/lpc2378.cfg b/tcl/target/lpc2378.cfg
index 270cd4d1..d34ffae6 100644
--- a/tcl/target/lpc2378.cfg
+++ b/tcl/target/lpc2378.cfg
@@ -35,7 +35,7 @@ $_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x40000000 -work-area-s
$_TARGETNAME configure -event reset-init {
# Force target into ARM state
- soft_reset_halt
+ armv4_5 core_state arm
#do not remap 0x0000-0x0020 to anything but the flash
mwb 0xE01FC040 0x01
}