Add a failure code for debugWIRE communication failures I
happened to run into. git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1118 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
parent
c5df7c5284
commit
1acbb2fb64
4
jtag3.c
4
jtag3.c
|
@ -271,6 +271,10 @@ static void jtag3_prmsg(PROGRAMMER * pgm, unsigned char * data, size_t len)
|
||||||
case RSP3_FAIL_WRONG_LENGTH:
|
case RSP3_FAIL_WRONG_LENGTH:
|
||||||
strcpy(reason, "wrong length in memory access");
|
strcpy(reason, "wrong length in memory access");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case RSP3_FAIL_DEBUGWIRE:
|
||||||
|
strcpy(reason, "debugWIRE communication failed");
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
fprintf(stderr, ", reason: %s\n", reason);
|
fprintf(stderr, ", reason: %s\n", reason);
|
||||||
}
|
}
|
||||||
|
|
|
@ -134,6 +134,7 @@
|
||||||
#define RSP3_STATUS_MASK 0xE0
|
#define RSP3_STATUS_MASK 0xE0
|
||||||
|
|
||||||
/* possible failure codes that could be appended to RSP3_FAILED: */
|
/* possible failure codes that could be appended to RSP3_FAILED: */
|
||||||
|
# define RSP3_FAIL_DEBUGWIRE 0x10
|
||||||
# define RSP3_FAIL_PDI 0x1B
|
# define RSP3_FAIL_PDI 0x1B
|
||||||
# define RSP3_FAIL_NO_ANSWER 0x20
|
# define RSP3_FAIL_NO_ANSWER 0x20
|
||||||
# define RSP3_FAIL_NO_TARGET_POWER 0x22
|
# define RSP3_FAIL_NO_TARGET_POWER 0x22
|
||||||
|
|
Loading…
Reference in New Issue