mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-12-16 18:44:17 +00:00
* jtag3_private.h: Add two more error detail codes I stumbled
across during development * jtag3.c: (Dito.) * usb_libusb.c: Reduce timeouts from 100 to 10 s, still long enough, but not getting cold feet when something goes wrong. git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1116 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
9
jtag3.c
9
jtag3.c
@@ -263,6 +263,14 @@ static void jtag3_prmsg(PROGRAMMER * pgm, unsigned char * data, size_t len)
|
||||
case RSP3_FAIL_PDI:
|
||||
strcpy(reason, "PDI failure");
|
||||
break;
|
||||
|
||||
case RSP3_FAIL_UNSUPP_MEMORY:
|
||||
strcpy(reason, "unsupported memory type");
|
||||
break;
|
||||
|
||||
case RSP3_FAIL_WRONG_LENGTH:
|
||||
strcpy(reason, "wrong length in memory access");
|
||||
break;
|
||||
}
|
||||
fprintf(stderr, ", reason: %s\n", reason);
|
||||
}
|
||||
@@ -537,6 +545,7 @@ static int jtag3_command(PROGRAMMER *pgm, unsigned char *cmd, unsigned int cmdle
|
||||
fprintf(stderr,
|
||||
"%s: %s command: timeout/error communicating with programmer (status %d)\n",
|
||||
progname, descr, status);
|
||||
return -1;
|
||||
} else if (verbose >= 3) {
|
||||
putc('\n', stderr);
|
||||
jtag3_prmsg(pgm, *resp, status);
|
||||
|
||||
Reference in New Issue
Block a user