Submitted by Janos Sallai:

patch #6542: paged_load fails on the MIB510 programming board
* stk500.c: Add a workaround for the different signon sequence on
MIB510 programmers.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@791 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
Joerg Wunsch 2009-02-16 10:19:46 +00:00
parent ad71fba00c
commit ae566048c3
3 changed files with 21 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2009-02-16 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
Submitted by Janos Sallai:
patch #6542: paged_load fails on the MIB510 programming board
* stk500.c: Add a workaround for the different signon sequence on
MIB510 programmers.
2009-02-05 Joerg Wunsch <j.gnu@uriah.heep.sax.de> 2009-02-05 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
* avrdude.conf.in: Add the ATmega128RFA1. * avrdude.conf.in: Add the ATmega128RFA1.

2
NEWS
View File

@ -20,7 +20,7 @@ Current:
programmer, to allow overriding the device code sent to the programmer, to allow overriding the device code sent to the
programmer. programmer.
* Add support for the Crossbow MIB510 programmer (patch #6074). * Add support for the Crossbow MIB510 programmer (patch #6074, #6542).
* Add support to bootstrap with GNU autoconf 2.61, and automake 1.10, * Add support to bootstrap with GNU autoconf 2.61, and automake 1.10,
respectively. respectively.

View File

@ -971,7 +971,9 @@ static int stk500_paged_load(PROGRAMMER * pgm, AVRPART * p, AVRMEM * m,
if (stk500_recv(pgm, buf, 1) < 0) if (stk500_recv(pgm, buf, 1) < 0)
exit(1); exit(1);
if (buf[0] != Resp_STK_OK) {
if(strcmp(ldata(lfirst(pgm->id)), "mib510") == 0) {
if (buf[0] != Resp_STK_INSYNC) {
fprintf(stderr, fprintf(stderr,
"\n%s: stk500_paged_load(): (a) protocol error, " "\n%s: stk500_paged_load(): (a) protocol error, "
"expect=0x%02x, resp=0x%02x\n", "expect=0x%02x, resp=0x%02x\n",
@ -979,6 +981,16 @@ static int stk500_paged_load(PROGRAMMER * pgm, AVRPART * p, AVRMEM * m,
return -5; return -5;
} }
} }
else {
if (buf[0] != Resp_STK_OK) {
fprintf(stderr,
"\n%s: stk500_paged_load(): (a) protocol error, "
"expect=0x%02x, resp=0x%02x\n",
progname, Resp_STK_OK, buf[0]);
return -5;
}
}
}
return n_bytes; return n_bytes;
} }