David Brownell <david-b@pacbell.net>:
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Tue, 16 Jun 2009 12:17:26 +0000 (12:17 +0000)
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Tue, 16 Jun 2009 12:17:26 +0000 (12:17 +0000)
Fix a bug preventing ICEpick "enable that TAP" code from working:
the "runtest" command wrongly finished with a JTAG reset, discarding
the work the TAP enable handler just finished!  Instead, JTAG should
stay in RUN/IDLE state.

git-svn-id: svn://svn.berlios.de/openocd/trunk@2252 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/jtag/tcl.c

index ec74a9e17bd29ecc40a4d6e559ba0975ba2b8854..fc2671e2bc0af02c3cf2fad4f327c68061f2a03d 100644 (file)
@@ -1130,7 +1130,7 @@ static int handle_runtest_command(struct command_context_s *cmd_ctx,
        if (ERROR_OK != retval)
                return retval;
 
-       jtag_add_runtest(num_clocks, jtag_get_end_state());
+       jtag_add_runtest(num_clocks, TAP_IDLE);
        jtag_execute_queue();
 
        return ERROR_OK;