Unreverse the argument order for CMD_CHIP_ERASE_HVSP; Atmel says
AVR068 is right, and stk500.exe is wrong. (This reverts rev 1.19) git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@611 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
parent
501918258b
commit
88691dc964
|
@ -1,3 +1,9 @@
|
||||||
|
2006-08-17 Joerg Wunsch <j@uriah.heep.sax.de>
|
||||||
|
|
||||||
|
* stk500v2.c: unreverse the argument order for
|
||||||
|
CMD_CHIP_ERASE_HVSP; Atmel says AVR068 is right, and
|
||||||
|
stk500.exe is wrong.
|
||||||
|
|
||||||
2006-08-17 Joerg Wunsch <j@uriah.heep.sax.de>
|
2006-08-17 Joerg Wunsch <j@uriah.heep.sax.de>
|
||||||
|
|
||||||
Submitted by Neil Davey:
|
Submitted by Neil Davey:
|
||||||
|
|
|
@ -459,12 +459,8 @@ static int stk500hv_chip_erase(PROGRAMMER * pgm, AVRPART * p, enum hvmode mode)
|
||||||
buf[2] = p->chiperasepolltimeout;
|
buf[2] = p->chiperasepolltimeout;
|
||||||
} else {
|
} else {
|
||||||
buf[0] = CMD_CHIP_ERASE_HVSP;
|
buf[0] = CMD_CHIP_ERASE_HVSP;
|
||||||
/*
|
buf[1] = p->chiperasepolltimeout;
|
||||||
* AVR068 has them the other way around, but that's the sequence
|
buf[2] = p->chiperasetime;
|
||||||
* Atmel's stk500.exe is issuing.
|
|
||||||
*/
|
|
||||||
buf[1] = p->chiperasetime;
|
|
||||||
buf[2] = p->chiperasepolltimeout;
|
|
||||||
}
|
}
|
||||||
result = stk500v2_command(pgm, buf, 3, sizeof(buf));
|
result = stk500v2_command(pgm, buf, 3, sizeof(buf));
|
||||||
usleep(p->chip_erase_delay);
|
usleep(p->chip_erase_delay);
|
||||||
|
|
Loading…
Reference in New Issue