summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-02-26 19:56:45 +0000
committerntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-02-26 19:56:45 +0000
commit0686e944f300e433d449eaa5c7bc576c1e65fd1a (patch)
treefae9399c4c740f54a7323a6dd2f105a5d30f06dd
parent3a4f43ab56e9b0d179406c7a952eebbad60e9c7f (diff)
downloadopenocd_libswd-0686e944f300e433d449eaa5c7bc576c1e65fd1a.tar.gz
openocd_libswd-0686e944f300e433d449eaa5c7bc576c1e65fd1a.tar.bz2
openocd_libswd-0686e944f300e433d449eaa5c7bc576c1e65fd1a.tar.xz
openocd_libswd-0686e944f300e433d449eaa5c7bc576c1e65fd1a.zip
- fix issue when target is already halted
git-svn-id: svn://svn.berlios.de/openocd/trunk@355 b42882b7-edfa-0310-969c-e2dbd0fdcd60
-rw-r--r--src/target/arm7_9_common.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/target/arm7_9_common.c b/src/target/arm7_9_common.c
index af0205d6..51f4c682 100644
--- a/src/target/arm7_9_common.c
+++ b/src/target/arm7_9_common.c
@@ -700,6 +700,7 @@ int arm7_9_poll(target_t *target)
DEBUG("DBGACK set, dbg_state->value: 0x%x", buf_get_u32(dbg_stat->value, 0, 32));
if (target->state == TARGET_UNKNOWN)
{
+ target->state = TARGET_RUNNING;
WARNING("DBGACK set while target was in unknown state. Reset or initialize target.");
}
if ((target->state == TARGET_RUNNING) || (target->state == TARGET_RESET))