summaryrefslogtreecommitdiff
path: root/src/target
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-08-05 10:50:10 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-08-05 10:50:10 +0000
commit20f505f695df9d9ba4c20780848336afec240a31 (patch)
treed1544041abd2761d215bf7c437e378697834ca78 /src/target
parent18293612537125c8864d4627c7c4b2b4ba7cc882 (diff)
downloadopenocd+libswd-20f505f695df9d9ba4c20780848336afec240a31.tar.gz
openocd+libswd-20f505f695df9d9ba4c20780848336afec240a31.tar.bz2
openocd+libswd-20f505f695df9d9ba4c20780848336afec240a31.tar.xz
openocd+libswd-20f505f695df9d9ba4c20780848336afec240a31.zip
halting srst_pulls_trst targets is now snappier and has explicit warning.
git-svn-id: svn://svn.berlios.de/openocd/trunk@889 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/target')
-rw-r--r--src/target/arm7_9_common.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/target/arm7_9_common.c b/src/target/arm7_9_common.c
index 547bf3c4..73ee8490 100644
--- a/src/target/arm7_9_common.c
+++ b/src/target/arm7_9_common.c
@@ -835,9 +835,21 @@ int arm7_9_deassert_reset(target_t *target)
if ((jtag_reset_config & RESET_SRST_PULLS_TRST)!=0)
{
+ LOG_WARNING("srst pulls trst - can not reset into halted mode. Issuing halt after reset.");
/* set up embedded ice registers again */
if ((retval=target->type->examine(target))!=ERROR_OK)
return retval;
+
+ if ((retval=target_poll(target))!=ERROR_OK)
+ {
+ return retval;
+ }
+
+ if ((retval=target_halt(target))!=ERROR_OK)
+ {
+ return retval;
+ }
+
}
return retval;
}