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:
joerg_wunsch 2012-11-30 22:18:34 +00:00
parent 4e0801803f
commit de55b22e86
2 changed files with 5 additions and 0 deletions

View File

@ -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);
} }

View File

@ -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