From f330e73b79ef548f6dad09c2caa262ce9a771d12 Mon Sep 17 00:00:00 2001 From: joerg_wunsch Date: Mon, 13 Nov 2006 21:14:28 +0000 Subject: [PATCH] Avoid sending a CMD_RESET when leaving programming mode, and CMD_GO when closing the connection. They cause the activity LED on the ICE to continue to flicker, and are not necessary anyway (the target starts to run by itself when leaving programmng mode). This is a partial fix for bug #18262: JTAGMKI/JTAG1 Reset Bug git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@683 81a1dc3b-b13d-400b-aceb-764788c761c2 --- ChangeLog | 14 ++++++++++++-- jtagmkI.c | 21 --------------------- 2 files changed, 12 insertions(+), 23 deletions(-) diff --git a/ChangeLog b/ChangeLog index 89b4c46b..bbb57d65 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,16 @@ +2006-11-13 Joerg Wunsch + + * jtagmkI.c: Avoid sending a CMD_RESET when leaving programming + mode, and CMD_GO when closing the connection. They cause the + activity LED on the ICE to continue to flicker, and are not + necessary anyway (the target starts to run by itself when leaving + programmng mode). + This is a partial fix for bug #18262: JTAGMKI/JTAG1 Reset Bug + 2006-11-12 Colin O'Flunn - * avrdude.conf.in: Add read command for lockbits for Tiny2313. - Applies patch #5538 + + * avrdude.conf.in: Add read command for lockbits for Tiny2313. + Applies patch #5538 2006-11-10 Joerg Wunsch diff --git a/jtagmkI.c b/jtagmkI.c index 7e976d58..46908c62 100644 --- a/jtagmkI.c +++ b/jtagmkI.c @@ -517,8 +517,6 @@ static int jtagmkI_program_disable(PROGRAMMER * pgm) if (verbose == 2) fprintf(stderr, "OK\n"); } - - (void)jtagmkI_reset(pgm); } prog_enabled = 0; @@ -699,25 +697,6 @@ static void jtagmkI_close(PROGRAMMER * pgm) fprintf(stderr, "%s: jtagmkI_close()\n", progname); if (pgm->fd != -1) { - buf[0] = CMD_GO; - if (verbose >= 2) - fprintf(stderr, "%s: jtagmkI_close(): Sending GO command: ", - progname); - jtagmkI_send(pgm, buf, 1); - jtagmkI_recv(pgm, resp, 1); - if (resp[0] != RESP_OK) { - if (verbose >= 2) - putc('\n', stderr); - fprintf(stderr, - "%s: jtagmkI_close(): " - "timeout/error communicating with programmer (resp %c)\n", - progname, resp[0]); - exit(1); - } else { - if (verbose == 2) - fprintf(stderr, "OK\n"); - } - serial_close(pgm->fd); }