bug #34277: avrdude reads wrong byte order if using avr911 (aka butterfly)

* butterfly.c (butterfly_read_byte_flash): Swap bytes received.



git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1219 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
joerg_wunsch 2013-09-13 06:54:53 +00:00
parent 61b3035c3d
commit a4196a12b5
3 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2013-09-13 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
bug #34277: avrdude reads wrong byte order if using avr911 (aka butterfly)
* butterfly.c (butterfly_read_byte_flash): Swap bytes received.
2013-09-12 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
bug #37768 Poll usbtiny 100 times at init time to handle low-clock devices

1
NEWS
View File

@ -95,6 +95,7 @@ Current:
- bug #38732: Support for ATtiny1634
- bug #36901 flashing Atmega32U4 EEPROM produces garbage on chip
- bug #28344 chip_erase_delay too short for ATmega324P, 644, 644P, and 1284P
- bug #34277: avrdude reads wrong byte order if using avr911 (aka butterfly)
* Keep track of input file contents

View File

@ -521,13 +521,13 @@ static int butterfly_read_byte_flash(PROGRAMMER * pgm, AVRPART * p, AVRMEM * m,
butterfly_recv(pgm, buf, sizeof(buf));
if ((addr & 0x01) == 0) {
*value = buf[1];
*value = buf[0];
cached = 1;
cvalue = buf[0];
cvalue = buf[1];
caddr = addr;
}
else {
*value = buf[0];
*value = buf[1];
}
}