From 33a7e91b0ebcf11e8872bde61bf147863a5d4a56 Mon Sep 17 00:00:00 2001 From: joerg_wunsch Date: Tue, 20 Mar 2012 14:21:33 +0000 Subject: [PATCH] * jtagmkII.c (jtagmkII_close): The GO command before signing off turned out to do more harm than good; on the Xmega, it caused exactly the opposite reaction, the CPU stopped. Even without it, after the RESET command, the target is running already. So, drop the GO. git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1070 81a1dc3b-b13d-400b-aceb-764788c761c2 --- ChangeLog | 7 +++++++ jtagmkII.c | 33 --------------------------------- 2 files changed, 7 insertions(+), 33 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1fc55d34..413652b4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2012-03-20 Joerg Wunsch + + * jtagmkII.c (jtagmkII_close): The GO command before signing off + turned out to do more harm than good; on the Xmega, it caused exactly + the opposite reaction, the CPU stopped. Even without it, after the + RESET command, the target is running already. So, drop the GO. + 2012-03-20 Joerg Wunsch * configure.ac: Print a configuration summary at the end of the diff --git a/jtagmkII.c b/jtagmkII.c index f3e54857..b4b66467 100644 --- a/jtagmkII.c +++ b/jtagmkII.c @@ -1685,39 +1685,6 @@ void jtagmkII_close(PROGRAMMER * pgm) if (verbose >= 2) fprintf(stderr, "%s: jtagmkII_close()\n", progname); - if (PDATA(pgm)->device_descriptor_length) { - /* When in JTAG mode, restart target. */ - buf[0] = CMND_GO; - if (verbose >= 2) - fprintf(stderr, "%s: jtagmkII_close(): Sending GO command: ", - progname); - jtagmkII_send(pgm, buf, 1); - - status = jtagmkII_recv(pgm, &resp); - if (status <= 0) { - if (verbose >= 2) - putc('\n', stderr); - fprintf(stderr, - "%s: jtagmkII_close(): " - "timeout/error communicating with programmer (status %d)\n", - progname, status); - } else { - if (verbose >= 3) { - putc('\n', stderr); - jtagmkII_prmsg(pgm, resp, status); - } else if (verbose == 2) - fprintf(stderr, "0x%02x (%d bytes msg)\n", resp[0], status); - c = resp[0]; - free(resp); - if (c != RSP_OK) { - fprintf(stderr, - "%s: jtagmkII_close(): " - "bad response to GO command: %s\n", - progname, jtagmkII_get_rc(c)); - } - } - } - buf[0] = CMND_SIGN_OFF; if (verbose >= 2) fprintf(stderr, "%s: jtagmkII_close(): Sending sign-off command: ",