5c82307586Prepare everything for 6.0-RELEASE.
Joerg Wunsch
2013-09-17 20:54:48 +00:00
6a9c8bff92Give some more installation/building hints.
Joerg Wunsch
2013-09-17 20:50:30 +00:00
47911f8cc7Give some more installation/building hints.
Joerg Wunsch
2013-09-17 20:50:30 +00:00
e59b190654* jtag3.c (jtag3_initialize): Fix a buffer overflow by limiting the flash page cache size to at most "readsize". For Xmegas with a page size of 512 bytes, the maximum USB packet size was overflowed, and subsequently, a memmove copied beyond the end of the allocated buffer. * jtag3.c (jtag3_read_byte): Add the correct offset also for the various flash regions, so reading the apptable or boot regions yields the correct data.
Joerg Wunsch
2013-09-17 15:06:35 +00:00
8f6c6fc28f* jtag3.c (jtag3_initialize): Fix a buffer overflow by limiting the flash page cache size to at most "readsize". For Xmegas with a page size of 512 bytes, the maximum USB packet size was overflowed, and subsequently, a memmove copied beyond the end of the allocated buffer. * jtag3.c (jtag3_read_byte): Add the correct offset also for the various flash regions, so reading the apptable or boot regions yields the correct data.
Joerg Wunsch
2013-09-17 15:06:35 +00:00
c6e9e34e98Submitted by Joakim Lubeck: bug #40040: Support for ATtiny20 and ATtiny40 * avrdude.conf.in: Restructure the reduced-core tiny devices to use a common entry .reduced_core_tiny; add ATtiny20 and ATtiny40
Joerg Wunsch
2013-09-16 19:40:15 +00:00
eb3660e618Submitted by Joakim Lubeck: bug #40040: Support for ATtiny20 and ATtiny40 * avrdude.conf.in: Restructure the reduced-core tiny devices to use a common entry .reduced_core_tiny; add ATtiny20 and ATtiny40
Joerg Wunsch
2013-09-16 19:40:15 +00:00
50829615d9Few minor clarifications.
Joerg Wunsch
2013-09-16 19:23:21 +00:00
2f1a8a45cdFew minor clarifications.
Joerg Wunsch
2013-09-16 19:23:21 +00:00
956dc66196Mention the libelf/libelf-devel requirement for the ELF feature.
Joerg Wunsch
2013-09-16 15:05:44 +00:00
0094ab73d1Mention the libelf/libelf-devel requirement for the ELF feature.
Joerg Wunsch
2013-09-16 15:05:44 +00:00
c152ab3778In preparation for a release, move the new (partially incompatible with the previous version) features on top so they will become immediately apparent in the release notes.
Joerg Wunsch
2013-09-16 15:01:39 +00:00
2b08f873f8In preparation for a release, move the new (partially incompatible with the previous version) features on top so they will become immediately apparent in the release notes.
Joerg Wunsch
2013-09-16 15:01:39 +00:00
6a62e04886Fix a typo: s/ATxmega8E6/ATxmega8E5/
Joerg Wunsch
2013-09-16 07:19:32 +00:00
0ce272c9aeFix a typo: s/ATxmega8E6/ATxmega8E5/
Joerg Wunsch
2013-09-16 07:19:32 +00:00
029b154852Submitted by Joakim Lubeck: bug #40033: Support for the XMegaE5 family * avrdude.conf.in (ATxmega8E6, ATxmega16E5, ATxmega32E5): New entries.
Joerg Wunsch
2013-09-15 19:50:53 +00:00
73cff9708aSubmitted by Joakim Lubeck: bug #40033: Support for the XMegaE5 family * avrdude.conf.in (ATxmega8E6, ATxmega16E5, ATxmega32E5): New entries.
Joerg Wunsch
2013-09-15 19:50:53 +00:00
465877b074Fix some stray <TAB> characters.
Joerg Wunsch
2013-09-13 21:46:21 +00:00
307258a0e6Fix some stray <TAB> characters.
Joerg Wunsch
2013-09-13 21:46:21 +00:00
5dbde0ca20* stk500v2.c (stk500v2_set_sck_period): Revamp this to match the description/pseudo-code in appnote AVR068.
Joerg Wunsch
2013-09-13 21:32:00 +00:00
33c5f3798a* stk500v2.c (stk500v2_set_sck_period): Revamp this to match the description/pseudo-code in appnote AVR068.
Joerg Wunsch
2013-09-13 21:32:00 +00:00
dc1bacb7cbSubmitted by Stephen Roe: patch #7710: usb_libusb: Check VID/PID before opening device * usb_libusb.c (usbdev_open): Swap the sequence of verifying the VID:PID, and opening the device.
Joerg Wunsch
2013-09-13 19:56:07 +00:00
4b5ecec817Submitted by Stephen Roe: patch #7710: usb_libusb: Check VID/PID before opening device * usb_libusb.c (usbdev_open): Swap the sequence of verifying the VID:PID, and opening the device.
Joerg Wunsch
2013-09-13 19:56:07 +00:00
df18e6c882(part of patch #8176: butterfly.c (AVR109 protocol implementation) clean-up and bug-fixing)
Joerg Wunsch
2013-09-13 19:37:54 +00:00
4d6574dc51(part of patch #8176: butterfly.c (AVR109 protocol implementation) clean-up and bug-fixing)
Joerg Wunsch
2013-09-13 19:37:54 +00:00
e358e7079eSubmitted by HubertB: patch #7657 Add ATmega406 support for avrdude using DRAGON + JTAG * avrdude.conf.in (ATmega406): New entry.
Joerg Wunsch
2013-09-13 15:42:38 +00:00
a851c91afeSubmitted by HubertB: patch #7657 Add ATmega406 support for avrdude using DRAGON + JTAG * avrdude.conf.in (ATmega406): New entry.
Joerg Wunsch
2013-09-13 15:42:38 +00:00
60827c3e3eSubmitted by Marc de Hoop: patch #7606 ATtiny43u support * avrdude.conf.in (ATtiny43U): New entry.
Joerg Wunsch
2013-09-13 15:34:56 +00:00
d2a9e1da31Submitted by Marc de Hoop: patch #7606 ATtiny43u support * avrdude.conf.in (ATtiny43U): New entry.
Joerg Wunsch
2013-09-13 15:34:56 +00:00
e8333c598bpatch #5708 avrdude should make 10 synchronization attempts instead of just one * stk500.c (stk500_getsync): Loop 10 times trying to get in sync with the programmer.
Joerg Wunsch
2013-09-13 14:59:15 +00:00
bf7e5f7a63patch #5708 avrdude should make 10 synchronization attempts instead of just one * stk500.c (stk500_getsync): Loop 10 times trying to get in sync with the programmer.
Joerg Wunsch
2013-09-13 14:59:15 +00:00
0b5c79ab9aFix counting pages for the non-verify read case. Previously, yielded 0, resulting in a division by 0 in report_progress().
Joerg Wunsch
2013-09-13 12:48:13 +00:00
9de394d847Fix counting pages for the non-verify read case. Previously, yielded 0, resulting in a division by 0 in report_progress().
Joerg Wunsch
2013-09-13 12:48:13 +00:00
9697ebe2ecbug #35456 The progress bar for STK500V2 programmer is "wrong". * avr.c (avr_read, avr_write): Change the progress reporting for paged read/write from per-address to per-considered-page. This ought to give a realistic estimation about the time still to be spent.
Joerg Wunsch
2013-09-13 09:42:47 +00:00
99bfbc353ebug #35456 The progress bar for STK500V2 programmer is "wrong". * avr.c (avr_read, avr_write): Change the progress reporting for paged read/write from per-address to per-considered-page. This ought to give a realistic estimation about the time still to be spent.
Joerg Wunsch
2013-09-13 09:42:47 +00:00
5113b8051abug #34277: avrdude reads wrong byte order if using avr911 (aka butterfly) * butterfly.c (butterfly_read_byte_flash): Swap bytes received.
Joerg Wunsch
2013-09-13 06:54:53 +00:00
a7019a277cbug #34277: avrdude reads wrong byte order if using avr911 (aka butterfly) * butterfly.c (butterfly_read_byte_flash): Swap bytes received.
Joerg Wunsch
2013-09-13 06:54:53 +00:00
ef621bc443bug #37768 Poll usbtiny 100 times at init time to handle low-clock devices
Joerg Wunsch
2013-09-12 11:20:03 +00:00
80cec375d5bug #37768 Poll usbtiny 100 times at init time to handle low-clock devices
Joerg Wunsch
2013-09-12 11:20:03 +00:00
a72d7911e1bug #28344 chip_erase_delay too short for ATmega324P, 644, 644P, and 1284P * avrdude.conf: Bump the chip_erase_delay for all ATmega*4 devices to 55 ms. While the datasheet still claims 9 ms, all the XML files tell either 45 or 55 ms, depending on STK600 or not.
Joerg Wunsch
2013-09-11 16:27:50 +00:00
11512d89bebug #28344 chip_erase_delay too short for ATmega324P, 644, 644P, and 1284P * avrdude.conf: Bump the chip_erase_delay for all ATmega*4 devices to 55 ms. While the datasheet still claims 9 ms, all the XML files tell either 45 or 55 ms, depending on STK600 or not.
Joerg Wunsch
2013-09-11 16:27:50 +00:00
e814b615b2* fileio.c (fileio): Don't exit(1) if something goes wrong; return -1 instead. Don't refer to obsolete option -f to specify the file format.
Joerg Wunsch
2013-09-11 09:21:37 +00:00
5675681c4d* fileio.c (fileio): Don't exit(1) if something goes wrong; return -1 instead. Don't refer to obsolete option -f to specify the file format.
Joerg Wunsch
2013-09-11 09:21:37 +00:00
e5501feb43Submitted by Matthias Trute: bug #36901 flashing Atmega32U4 EEPROM produces garbage on chip * avrdude.conf.in (ATmega32U4): Fix EEPROM pagesize to 4, the datasheet is wrong here.
Joerg Wunsch
2013-09-10 15:58:40 +00:00
e1165d38d6Submitted by Matthias Trute: bug #36901 flashing Atmega32U4 EEPROM produces garbage on chip * avrdude.conf.in (ATmega32U4): Fix EEPROM pagesize to 4, the datasheet is wrong here.
Joerg Wunsch
2013-09-10 15:58:40 +00:00
1169e1320fCheck for ar and ranlib in the target tool namespace, rather than on the host.
Joerg Wunsch
2013-09-09 15:00:36 +00:00
0396362f6eCheck for ar and ranlib in the target tool namespace, rather than on the host.
Joerg Wunsch
2013-09-09 15:00:36 +00:00
c0d9de9b67Fix byte-wise EEPROM and flash writes on Xmega * jtagmkII_private.h (MTYPE_EEPROM_XMEGA): New memory type. * jtagmkII.c (jtagmkII_write_byte): For Xmega EEPROM, use memory type MTYPE_EEPROM_XMEGA; for flash writes, always write 2 bytes starting on an even address.
Joerg Wunsch
2013-09-08 19:57:58 +00:00
4628444db3Fix byte-wise EEPROM and flash writes on Xmega * jtagmkII_private.h (MTYPE_EEPROM_XMEGA): New memory type. * jtagmkII.c (jtagmkII_write_byte): For Xmega EEPROM, use memory type MTYPE_EEPROM_XMEGA; for flash writes, always write 2 bytes starting on an even address.
Joerg Wunsch
2013-09-08 19:57:58 +00:00
44069c7b69Implement and document the "verbose" terminal mode command.
Joerg Wunsch
2013-09-08 19:31:48 +00:00
3869f4a0b2Implement and document the "verbose" terminal mode command.
Joerg Wunsch
2013-09-08 19:31:48 +00:00
ee861c4492* jtag3.c (jtag3_write_byte): Do not attempt to start the paged algorithm for EEPROM when being connected through debugWIRE.
Joerg Wunsch
2013-09-07 20:40:29 +00:00
dd2f68190a* jtag3.c (jtag3_write_byte): Do not attempt to start the paged algorithm for EEPROM when being connected through debugWIRE.
Joerg Wunsch
2013-09-07 20:40:29 +00:00
c137e0ea86Extend the single-byte algorithm to all devices, both flash and EEPROM. (Flash cells must have been erased before though.) * jtag3.c (jtag3_initialize): OCDEN no longer needs to be considered; a session with "programming" purpose is sufficient * jtag3.c (jtag3_write_byte): Use the paged algorithm for all flash and EEPROM areas, not just Xmega.
Joerg Wunsch
2013-09-06 07:06:13 +00:00
f52f5e97ecExtend the single-byte algorithm to all devices, both flash and EEPROM. (Flash cells must have been erased before though.) * jtag3.c (jtag3_initialize): OCDEN no longer needs to be considered; a session with "programming" purpose is sufficient * jtag3.c (jtag3_write_byte): Use the paged algorithm for all flash and EEPROM areas, not just Xmega.
Joerg Wunsch
2013-09-06 07:06:13 +00:00
9e2a3a9070Fix single-byte EEPROM updates on Xmega: * jtag3_private.h (MTYPE_EEPROM_XMEGA): New define. * jtag3.c (jtag3_write_byte): When updating flash or EEPROM on Xmega devices, resort to jtag3_paged_write() after filling and modifying the page cache. * jtag3.c (jtag3_paged_write): use MTYPE_EEPROM_XMEGA where appropriate. * jtag3.c (jtag3_initialize): Open with debugging intent for Xmega devices, so single-byte EEPROM updates will work.
Joerg Wunsch
2013-09-05 21:18:01 +00:00
b6c29bb9f2Fix single-byte EEPROM updates on Xmega: * jtag3_private.h (MTYPE_EEPROM_XMEGA): New define. * jtag3.c (jtag3_write_byte): When updating flash or EEPROM on Xmega devices, resort to jtag3_paged_write() after filling and modifying the page cache. * jtag3.c (jtag3_paged_write): use MTYPE_EEPROM_XMEGA where appropriate. * jtag3.c (jtag3_initialize): Open with debugging intent for Xmega devices, so single-byte EEPROM updates will work.
Joerg Wunsch
2013-09-05 21:18:01 +00:00
e074890fc0Submitted by Matthias Neeracher: bug #38732: Support for ATtiny1634
Joerg Wunsch
2013-09-04 06:36:19 +00:00
9132f02a72Submitted by Matthias Neeracher: bug #38732: Support for ATtiny1634
Joerg Wunsch
2013-09-04 06:36:19 +00:00
715249e2d4Submitted by Brane Zdralo: patch #7769: Write flash fails for AVR910 programmers * avr910.c (avr910_paged_write): Fix flash addresses in 'A' command.
Joerg Wunsch
2013-09-03 21:43:24 +00:00
98fa26cc1bSubmitted by Brane Zdralo: patch #7769: Write flash fails for AVR910 programmers * avr910.c (avr910_paged_write): Fix flash addresses in 'A' command.
Joerg Wunsch
2013-09-03 21:43:24 +00:00
0f5af86c9fSubmitted by Fred (magister): bug #38951: AVR109 use byte offset instead of word offset patch #8045: AVR109 butterfly failing * butterfly.c (butterfly_paged_load, butterfly_paged_write): fix calculation of 'A' address when operating on flash memory. It must be given in terms of 16-bit words rather than bytes.
Joerg Wunsch
2013-09-03 21:24:16 +00:00
e80cc3c767Submitted by Fred (magister): bug #38951: AVR109 use byte offset instead of word offset patch #8045: AVR109 butterfly failing * butterfly.c (butterfly_paged_load, butterfly_paged_write): fix calculation of 'A' address when operating on flash memory. It must be given in terms of 16-bit words rather than bytes.
Joerg Wunsch
2013-09-03 21:24:16 +00:00
caa061e18c* avrftdi.c, avrftdi_private.h: added tx buffer size, and use smaller block sizes as larger sometimes hang
Rene Liebscher
2013-09-03 20:33:52 +00:00
ded0d45ee5* avrftdi.c, avrftdi_private.h: added tx buffer size, and use smaller block sizes as larger sometimes hang
Rene Liebscher
2013-09-03 20:33:52 +00:00
770d26689bbug #39691 Buffer overrun when reading EEPROM byte with JTAGICE3 * jtag3.c (jtag3_initialize): initialize the eeprom_pagesize private attribute so the page cache will actually be usable
Joerg Wunsch
2013-09-03 11:58:31 +00:00
f2a859946abug #39691 Buffer overrun when reading EEPROM byte with JTAGICE3 * jtag3.c (jtag3_initialize): initialize the eeprom_pagesize private attribute so the page cache will actually be usable
Joerg Wunsch
2013-09-03 11:58:31 +00:00
05a952b027bug #38580 Current svn head, xmega and fuses, all fuses tied to fuse0 * jtag3.c (jtag3_read_byte, jtag3_write_byte): Correctly apply the relevant part of mem->offset as the address to operate on.
Joerg Wunsch
2013-09-03 11:32:47 +00:00
2b73747187bug #38580 Current svn head, xmega and fuses, all fuses tied to fuse0 * jtag3.c (jtag3_read_byte, jtag3_write_byte): Correctly apply the relevant part of mem->offset as the address to operate on.
Joerg Wunsch
2013-09-03 11:32:47 +00:00
6c78b35b8fFix all "unused variable" warnings that were encountered.
Joerg Wunsch
2013-09-03 11:05:13 +00:00
e1337cde63Fix all "unused variable" warnings that were encountered.
Joerg Wunsch
2013-09-03 11:05:13 +00:00
e2a78468d0Submitted by Travis Griggs: bug #38307: Can't write usersig of an xmega256a3 * stk500v2.c (stk600_xprog_page_erase): allow erasing the usersig space.
Joerg Wunsch
2013-09-02 21:10:44 +00:00
e242f4acc1Submitted by Travis Griggs: bug #38307: Can't write usersig of an xmega256a3 * stk500v2.c (stk600_xprog_page_erase): allow erasing the usersig space.
Joerg Wunsch
2013-09-02 21:10:44 +00:00
f051a3a6e0Submitted by Robert Niemi: bug #35800: Compilation error on certain systems if parport is disabled * linux_ppdev.h: Conditionalize inclusion of <linux/parport.h> and <linux/ppdev.h> on HAVE_PARPORT
Joerg Wunsch
2013-09-02 20:53:12 +00:00
951ee532fdSubmitted by Robert Niemi: bug #35800: Compilation error on certain systems if parport is disabled * linux_ppdev.h: Conditionalize inclusion of <linux/parport.h> and <linux/ppdev.h> on HAVE_PARPORT
Joerg Wunsch
2013-09-02 20:53:12 +00:00
412a7be03ebug #39794: warnings when building avrdude 6.0rc1 under CentOS 6.4 * pickit.c (usb_open_device): Use %p rather than %X to print "handle" which is a pointer * jtag3.c (jtag3_initialize): Initialize "flashsize" to be sure it proceeds with a valid value.
Joerg Wunsch
2013-09-02 20:30:09 +00:00
ae18160bc1bug #39794: warnings when building avrdude 6.0rc1 under CentOS 6.4 * pickit.c (usb_open_device): Use %p rather than %X to print "handle" which is a pointer * jtag3.c (jtag3_initialize): Initialize "flashsize" to be sure it proceeds with a valid value.
Joerg Wunsch
2013-09-02 20:30:09 +00:00
db1cce8bf4bug #39794: warnings when building avrdude 6.0rc1 under CentOS 6.4 * buspirate.c: Turn the "cmd" argument of the various methods into a "const unsigned char *"; while doing this, declare all arrays being passed as arguments to be pointers rather than arrays, as the latter obfuscates the way arrays are being passed to a callee in C.
Joerg Wunsch
2013-09-02 20:22:53 +00:00
1e42dde472bug #39794: warnings when building avrdude 6.0rc1 under CentOS 6.4 * buspirate.c: Turn the "cmd" argument of the various methods into a "const unsigned char *"; while doing this, declare all arrays being passed as arguments to be pointers rather than arrays, as the latter obfuscates the way arrays are being passed to a callee in C.
Joerg Wunsch
2013-09-02 20:22:53 +00:00
51da59044ebug #38023: avrdude doesn't return an error code when attempting to upload an invalid Intel HEX file * fileio.c (ihex2b): Turn the "No end of file record found" warning into an error if no valid record was found at all.
Joerg Wunsch
2013-09-02 18:18:15 +00:00
80dcdfc9eabug #38023: avrdude doesn't return an error code when attempting to upload an invalid Intel HEX file * fileio.c (ihex2b): Turn the "No end of file record found" warning into an error if no valid record was found at all.
Joerg Wunsch
2013-09-02 18:18:15 +00:00
088ae8196aSubmitted by Claus-Justus Heine: bug #38713: Compilation of the documentation breaks with texinfo-5 * doc/avrdude.texi: Turn @itemx into @item, add @headitem to STK600 Routing/Socket card table
Joerg Wunsch
2013-09-02 17:56:01 +00:00
95cace0939Submitted by Claus-Justus Heine: bug #38713: Compilation of the documentation breaks with texinfo-5 * doc/avrdude.texi: Turn @itemx into @item, add @headitem to STK600 Routing/Socket card table
Joerg Wunsch
2013-09-02 17:56:01 +00:00
65aa87c714Add a missing pair of braces.
Joerg Wunsch
2013-09-02 09:57:09 +00:00
d6c362d31cAdd a missing pair of braces.
Joerg Wunsch
2013-09-02 09:57:09 +00:00
7750c81463Add -vvv trace code to the non-TPI functions in USBasp, too.
Joerg Wunsch
2013-09-02 06:43:06 +00:00
33ac0622faAdd -vvv trace code to the non-TPI functions in USBasp, too.
Joerg Wunsch
2013-09-02 06:43:06 +00:00
56fe49f22a* usbasp.c (usbasp_tpi_paged_load): Calculate correct buffer address. * usbasp.c (usbasp_tpi_paged_write): Calculate correct buffer address; don't issue a SECTION_ERASE command for each page (a CHIP_ERASE has been done before anyway); remove the code that attempted to handle partial page writes, as all writes are now done with a full page.
Joerg Wunsch
2013-09-01 20:54:56 +00:00
f747521b39* usbasp.c (usbasp_tpi_paged_load): Calculate correct buffer address. * usbasp.c (usbasp_tpi_paged_write): Calculate correct buffer address; don't issue a SECTION_ERASE command for each page (a CHIP_ERASE has been done before anyway); remove the code that attempted to handle partial page writes, as all writes are now done with a full page.
Joerg Wunsch
2013-09-01 20:54:56 +00:00
6483e65ab1Add more trace output, by now only to the TPI functions.
Joerg Wunsch
2013-09-01 20:48:17 +00:00
3ec648749dAdd more trace output, by now only to the TPI functions.
Joerg Wunsch
2013-09-01 20:48:17 +00:00