2012-03-29 Joerg Wunsch bug #30451: Accessing some Xmega memory sections gives not supported error * stk500v2.c: Handle all Xmega memory sections (except "prodsig" which is not documented in AVR079) * fileio.c: Treat the "boot", "application", and "apptable" regions (which are actually subregions of "flash") all as being flash, i.e. suppress trailing 0xFF bytes when reading them * avr.c: (Dito.) 2012-03-20 Joerg Wunsch * jtagmkII.c (jtagmkII_close): The GO command before signing off turned out to be not required for normal megaAVR devices, and to cause the exact opposite (i.e. the target stopping) on Xmega devices being programmed to JTAG. However, programming Xmega devcies through PDI *does* need the GO command. 2012-03-20 Joerg Wunsch * configure.ac: Print a configuration summary at the end of the configure run 2012-02-11 Rene Liebscher patch #7718: Merge global data of avrftdi in a private data structure * avrftdi.[ch]: moved global data into private data structure, moved private defines from header file into source file 2012-02-06 Rene Liebscher patch #7720 Bug in EEPROM write * avrftdi.c: fixed wrong buffer address initialization in paged_write * fileio.c: added #include 2012-02-05 Rene Liebscher bug #30559 Ft232 bit-bang support * ft245r.c: cancel reader thread before exiting program 2012-02-04 Rene Liebscher patch #7717 avrftdi_flash_write is broken * avrftdi.c: fixed wrong buffer address initialization in paged_write bug #35296 Extraneous newlines in output. * main.c: fixed output of newlines at 100% progress 2012-02-03 Rene Liebscher patch #7715 FT4232H support * avrdude.conf.in: added programmer 4232h 2012-02-03 Rene Liebscher patch #7687: Autogenerating programmers and parts lists for docs (generating the programmers lists) * doc/avrdude.texi: Add include of generated table of programmers * doc/Makefile.am: Add generating of table of programmers in programmers.texi 2012-02-03 Rene Liebscher bug #34768 Proposition: Change the name of the AVR32 devices * avrdude.conf.in: renamed ucr2 to uc3a0512 * avrpart.c: added cast to avoid compiler warning 2012-02-03 Joerg Wunsch * fileio.c (fileio_elf): Fix a copy'n-paste-o. 2012-02-03 Joerg Wunsch * par.c (par_desc): Move to end of file, outside the #if HAVE_PARPORT 2012-02-02 Joerg Wunsch Implement ELF file reading (finally). Requires libelf(3) to be present on the host system. * configure.ac (HAVE_LIBELF): Add logic to detect presence of libelf(3) * Makefile.am (avrdude_LDADD): Add @LIBELF@ * fileio.h (FILEFMT): add FMT_ELF * fileio.c: Implement ELF file reader. * update.c (parse_op): add 'e' format specifier * avrdude.1: Document the ELF file reading capability * doc/avrdude.texi: (Dito.) 2012-02-01 Rene Liebscher bug #30559 Ft232 bit-bang support * ft245r.[ch]: new programmer type implementation * configure.ac: add pthread as link library * avrdude.conf.in: added some new programmers * Makefile.am: added new source files to compile * pindefs.h: change PIN_MASK, PIN_INVERSE to highest bit of unsigned int * pgm.[ch]: added generic function to print pin assignments (taken from par.c) * par.c: moved pin assigment print function to pgm.c 2012-02-01 Joerg Wunsch * lexer.l: Sort keyword tokens into alphabetic order. 2012-01-31 Rene Liebscher * config_gram.y, lexer.l: removed unused ID/TKN_ID definitions * config.[hc]: removed unused function id(), use value.type to select values 2012-01-31 Rene Liebscher patch #7437 modifications to Bus Pirate module patch #7686 Updating buspirate ascii mode to current firmware, use AUX as clock generator, and setting of serial receive timeout * buspirate.c: added paged_write, changed binary mode setup/detection, added clock output on AUX pin * avrdude.1: updated documentation * doc/avrdude.texi: updated documentation 2012-01-31 Rene Liebscher Parser does not need to know all programmer types now, new programmers will update only the table in pgm_type.c. * config_gram.y, lexer.l: removed programmer type keywords, use now locate_programmer_type() function * pgm_type.[ch]: added new files for table of programmer types * main.c: allow list of programmer types by -c ?type * avrdude.conf.in: changed all type keywords to quoted strings * doc/avrdude.texi: changed description of type definition, list of valid types is now included from generated file * doc/Makefile.am: generate list of programmer types for doc * all programmers [hc]: add xxx_desc string for description of programmer 2012-01-30 Rene Liebscher * configure.ac: fixed detection of yylex_destroy availability by checking the version number of flex; bump required autoconf version to 2.60 (for AC_PROG_SED) 2012-01-30 Joerg Wunsch * lexer.l: Replace the old, now-defunct #define YY_NO_UNPUT by the new %option nounput. This gets rid of a compiler warning. 2012-01-30 Joerg Wunsch Add a connection_type attribute to each programmer, rather than trying to hard-code the default port name in main.c. * pgm.h: Add conntype to struct pgm. * lexer.l: Extend grammar for connection_type. * config_gram.y: (Dito.) * config.h: Add DEFAULT_USB, for symmetry with default_parallel and default_serial. * main.c: Replace old default portname hack by avrdude.conf-based knowledge. * usbtiny.c: Drop an old hack that's no longer necessary. * avrdude.conf.in: Add connection_type to each programmer definition. 2012-01-27 Rene Liebscher * avrdude.conf.in: used parent parts for some other parts, added abstract .xmega part as parent for xmegas * main.c: hide parts starting with '.' from parts list 2012-01-22 Rene Liebscher patch #7688: Implement parent programmers feature * avrdude.conf.in: updated documentation comment and some programmers have now parents * config_gram.y: initpgm will now called at first use of programmer in main. parser sets only the function pointer in the pgm structure. Pin and pin lists definitions can now be empty to remove the parents setting. * doc/avrdude.texi: updated documentation * main.c: added call to pgm->initpgm after locate_programmer * pgm.[hc]: added field initpgm in structure, added function pgm_dup 2012-01-21 Rene Liebscher bug #21797: AT90PWM316: New part description * avrdude.conf.in: added pwm316 with parent pwm3b but 16KB flash 2012-01-20 Joerg Wunsch * configure.ac: Check for presence of lusb_usb.h as an alternative to usb.h; libusb-win32 switched to this name in version 1.2.5.0. * avrftdi.c: Decide whether to include , or . * ser_avrdoper.c: (Dito.) * usbasp.c: (Dito.) * usb_libusb.c: (Dito.) * usbtiny.c: (Dito.) 2012-01-19 Rene Liebscher * avr.c: Unsigned variable was used for return code of paged_write/load functions. So a negative return code led never to a fallback to byte functions. 2012-01-17 Rene Liebscher bug #34302: Feature request : device configuration with parent classes * config_gram.y: if memory section is overwritten old entry is removed (not in original patch) * config_gram.y: if programmer or part is defined twice, a warning is output and the first instance is removed General cleanup and free functions, so valgrind does not report any lost blocks at program end. * avrpart.[hc]: added avr_free_(opcode|mem|part) functions * pgm.[hc]: added pgm_free function * update.[hc]: added free_update functions * config.[hc]: added cleanup_config function, use yylex_destroy to reset the lexer after usage. (So it can be reused.) * main.c: add cleanup_main function which is called by atexit() (This frees all lists so that at program exit only really lost memory is reported by valgrind.) * usbasp.c: added libusb_free_device_list() and libusb_exit() calls to avoid lost memory * buspirate.c: moved memory allocation from initpgm to setup and added free in teardown * configure.ac: add definition of HAVE_YYLEX_DESTROY if $LEX is flex. * Makefile.am: added . in front of SUBDIRS to build avrdude before trying to use it for creating the part list for the docs. 2012-01-17 Rene Liebscher * usbasp.c: USB vid/pid/vendor/product from config file are used, for id "usbasp" nibobee and old usbasp are tried as they were currently implemented within usbasp * avrdude.conf.in: added usb params to "usbasp", added new entry "nibobee" with params which were hardcoded in usbasp.c, and added an entry "usbasb-clone" which only checks vid/pid. 2012-01-10 Rene Liebscher bug #35261 avrftdi uses wrong interface in avrftdi_paged_(write|load) * avrftdi.c: Fixed interface and implementation of avrftdi_paged_(write|load) patch #7672 adding support for O-Link (FTDI based JTAG) as programmer * avrdude.conf.in: added o-link entry 2012-01-10 Rene Liebscher patch #7699 Read additional config files * main.c: Added reading of additional config files * avrdude.1: updated man page * doc/avrdude.texi: updated documentation 2012-01-10 Joerg Wunsch Submitted by Bob Frazier: bug #35208: avrdude 5.11 on freebsd 8.2-STABLE does not reset Arduino Uno properly * arduino.c (arduino_open): Bump the timeout between pulling the DTR and RTS lines low and high. 2012-01-08 Rene Liebscher Fixed following findings reported by cppcheck * avr910.c:625 (error) Possible null pointer dereference: cmd - otherwise it is redundant to check if cmd is null at line 624 * avr910.c:626 (error) Possible null pointer dereference: cmd - otherwise it is redundant to check if cmd is null at line 624 * avr910.c:168 (information) The scope of the variable 'devtype_1st' can be reduced * avr910.c:169 (information) The scope of the variable 'dev_supported' can be reduced * avrftdi.c:647 (error) Using sizeof for array given as function argument returns the size of pointer. * stk500v2.c:3347 (error) Memory leak: b * stk500v2.c:3452 (error) Memory leak: b * usbasp.c:554 (error) Using sizeof for array given as function argument returns the size of pointer. * usbasp.c:485 (information) The scope of the variable 'dly' can be reduced 2012-01-03 Joerg Wunsch Reported by Jason Kotzin: * usbasp.c (usbasp_spi_paged_load, usbasp_spi_paged_write): Fix buffer address calculation. 2012-01-03 Rene Liebscher patch #7629 add support for atmega48p * avrdude.conf.in: Added m48p with parent m48 + different signature * avrdude.conf.in: made part parents (m88p = m88 + different signature, m168p = m168 + different signature) 2012-01-02 Rene Liebscher bug #21663 AT90PWM efuse incorrect bug #30438 efuse bits written as 0 on at90pwmxx parts * avrdude.conf.in: (pwm2, pwm2b, pwm3, pwm3b) : Write eight bits * avrdude.conf.in: made part parents (pwm3 = pwm2, pwm3b = pwm2b, pwm2b = pwm2 + different signature) * ChangeLog-2011: New file, rotate ChangeLog for new year.