|
From: oharboe at B. <oh...@ma...> - 2009-06-11 08:19:41
|
Author: oharboe
Date: 2009-06-11 08:19:37 +0200 (Thu, 11 Jun 2009)
New Revision: 2183
Modified:
trunk/src/target/target.c
Log:
disable polling continuous polling during reset
Modified: trunk/src/target/target.c
===================================================================
--- trunk/src/target/target.c 2009-06-10 22:22:49 UTC (rev 2182)
+++ trunk/src/target/target.c 2009-06-11 06:19:37 UTC (rev 2183)
@@ -434,9 +434,18 @@
return ERROR_FAIL;
}
+ /* disable polling during reset to make reset event scripts
+ * more predictable, i.e. dr/irscan & pathmove in events will
+ * not have JTAG operations injected into the middle of a sequence.
+ */
+ int save_poll = target_continous_poll;
+ target_continous_poll = 0;
+
sprintf( buf, "ocd_process_reset %s", n->name );
retval = Jim_Eval( interp, buf );
+ target_continous_poll = save_poll;
+
if(retval != JIM_OK) {
Jim_PrintErrorMessage(interp);
return ERROR_FAIL;
|