summaryrefslogtreecommitdiff
path: root/src/target
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-03-11 21:18:44 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-03-11 21:18:44 +0000
commitb9162dcc8e68413966c8493556e471fbdcb88a1f (patch)
tree9d2e9f59d75363053cbb0a39ea59e2658f5c2404 /src/target
parentd1fe9bacbb6a233493dff6c7a829350d21bcc738 (diff)
downloadopenocd_libswd-b9162dcc8e68413966c8493556e471fbdcb88a1f.tar.gz
openocd_libswd-b9162dcc8e68413966c8493556e471fbdcb88a1f.tar.bz2
openocd_libswd-b9162dcc8e68413966c8493556e471fbdcb88a1f.tar.xz
openocd_libswd-b9162dcc8e68413966c8493556e471fbdcb88a1f.zip
With the recent changes the TRST needs to happen for every reset.
git-svn-id: svn://svn.berlios.de/openocd/trunk@498 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/target')
-rw-r--r--src/target/xscale.c21
1 files changed, 9 insertions, 12 deletions
diff --git a/src/target/xscale.c b/src/target/xscale.c
index 921af812..c93f1ff2 100644
--- a/src/target/xscale.c
+++ b/src/target/xscale.c
@@ -1585,6 +1585,15 @@ int xscale_assert_reset(target_t *target)
DEBUG("target->state: %s", target_state_strings[target->state]);
+ /* TRST every time. We want to be able to support daemon_startup attach */
+ jtag_add_reset(1, 0);
+ jtag_add_sleep(5000);
+ jtag_add_reset(0, 0);
+ jtag_add_sleep(5000);
+ jtag_execute_queue();
+
+
+
/* select DCSR instruction (set endstate to R-T-I to ensure we don't
* end up in T-L-R, which would reset JTAG
*/
@@ -3021,18 +3030,6 @@ void xscale_build_reg_cache(target_t *target)
int xscale_init_target(struct command_context_s *cmd_ctx, struct target_s *target)
{
- if (startup_mode != DAEMON_RESET)
- {
- ERROR("XScale target requires a reset");
- ERROR("Reset target to enable debug");
- }
-
- /* assert TRST once during startup */
- jtag_add_reset(1, 0);
- jtag_add_sleep(5000);
- jtag_add_reset(0, 0);
- jtag_execute_queue();
-
return ERROR_OK;
}