Go to file
Joerg Wunsch 95da7a137b bug #41561: AVRDUDE 6.0.1/USBasp doesn't write first bytes of
flash page
* usbasp.c (usbasp_spi_paged_write): Remove USBASP_BLOCKFLAG_LAST.
It is no longer needed, as we always write full pages now in paged
write mode.

This prevents each flash page from being written twice, where the
second attempt on older devices (ATmega64/128) signalled an immediate
"ready" condition when polling (likely a silicon bug) even though they
were still in progress.  This caused the USBasp firmware to proceed,
and fill the page buffer anew which eventually caused the data
corruption.



git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1343 81a1dc3b-b13d-400b-aceb-764788c761c2
2014-11-20 09:20:44 +00:00
doc patch #8504 buspirate: Also support "cpufreq" extended parameter in binary mode 2014-11-13 13:53:47 +00:00
tools Fix variable spelling. 2013-09-09 05:48:11 +00:00
windows Replace outdated FSF postal address by a reference to 2012-11-20 14:03:50 +00:00
.cvsignore So finally, also ignore the Makefile. 2006-08-23 15:02:07 +00:00
AUTHORS patch #7724 Add TPI support for Bus Pirate using bitbang mode 2013-01-30 21:15:39 +00:00
BUILD-FROM-SVN Submitted by Philip: 2011-08-16 10:37:09 +00:00
COPYING Replace outdated FSF postal address by a reference to 2012-11-20 14:03:50 +00:00
ChangeLog bug #41561: AVRDUDE 6.0.1/USBasp doesn't write first bytes of 2014-11-20 09:20:44 +00:00
ChangeLog-2001 Use my other e-mail. 2003-03-12 01:25:43 +00:00
ChangeLog-2002 Use my other e-mail. 2003-03-12 01:25:43 +00:00
ChangeLog-2003 * ChangeLog: Minor formatting cleanups. 2004-01-26 06:27:41 +00:00
ChangeLog-2004-2006 ChangeLog rotation. 2007-01-07 22:34:21 +00:00
ChangeLog-2007 ChangeLog rotation for 2007->2008 transition. 2008-01-26 07:59:07 +00:00
ChangeLog-2008 Annual changelog rotation. 2009-02-05 16:17:57 +00:00
ChangeLog-2009 Annual changelog rotation. 2010-01-08 10:41:27 +00:00
ChangeLog-2010 Delete unneeded svn:executable property. 2011-08-12 15:37:44 +00:00
ChangeLog-2011 bug #21663 AT90PWM efuse incorrect 2012-01-02 15:20:18 +00:00
ChangeLog-2012 Annual ChangeLog rotation time. 2013-01-02 10:12:41 +00:00
ChangeLog-2013 Annual changelog rotation. 2014-01-15 13:16:34 +00:00
Makefile.am Join the former "public" header files (avr.h avrpart.h pindefs.h 2014-05-19 10:01:59 +00:00
NEWS bug #41561: AVRDUDE 6.0.1/USBasp doesn't write first bytes of 2014-11-20 09:20:44 +00:00
README Give some more installation/building hints. 2013-09-17 20:50:30 +00:00
arduino.c added verbose level in avrdude_message() 2014-06-13 20:07:40 +00:00
arduino.h Replace outdated FSF postal address by a reference to 2012-11-20 14:03:50 +00:00
avr.c bug #40142 Floating point exception on Ubuntu 10.04 2014-11-14 10:22:52 +00:00
avr910.c added verbose level in avrdude_message() 2014-06-13 20:07:40 +00:00
avr910.h Join the former "public" header files (avr.h avrpart.h pindefs.h 2014-05-19 10:01:59 +00:00
avrdude.1 patch #8504 buspirate: Also support "cpufreq" extended parameter in binary mode 2014-11-13 13:53:47 +00:00
avrdude.conf.in patch #8529 2 more ftdi_syncbb devices 2014-11-14 10:51:41 +00:00
avrdude.h added verbose level in avrdude_message() 2014-06-13 20:07:40 +00:00
avrdude.spec.in Submitted by Galen Seitz: 2005-11-29 20:28:51 +00:00
avrftdi.c bug #42662 clang warnings under FreeBSD 10.x 2014-07-16 20:02:01 +00:00
avrftdi.h bug #42662 clang warnings under FreeBSD 10.x 2014-07-16 20:38:52 +00:00
avrftdi_private.h avrftdi_private.h: added missing msg level for avrdude_message in E/E_VOID macros 2014-06-17 20:27:37 +00:00
avrftdi_tpi.c Join the former "public" header files (avr.h avrpart.h pindefs.h 2014-05-19 10:01:59 +00:00
avrftdi_tpi.h Join the former "public" header files (avr.h avrpart.h pindefs.h 2014-05-19 10:01:59 +00:00
avrpart.c patch #8440 Print part id after signature 2014-08-18 21:43:08 +00:00
bitbang.c added verbose level in avrdude_message() 2014-06-13 20:07:40 +00:00
bitbang.h Replace all occurences of exit() in potential library code 2014-05-16 15:52:25 +00:00
bootstrap Make a first attempt to build a shared library (not to be installed by 2014-05-16 17:50:40 +00:00
buspirate.c patch #8504 buspirate: Also support "cpufreq" extended parameter in binary mode 2014-11-13 13:53:47 +00:00
buspirate.h patch #7724 Add TPI support for Bus Pirate using bitbang mode 2013-01-30 21:15:39 +00:00
butterfly.c added verbose level in avrdude_message() 2014-06-13 20:07:40 +00:00
butterfly.h Replace outdated FSF postal address by a reference to 2012-11-20 14:03:50 +00:00
config.c Removing exit calls from config parser 2014-06-17 20:08:28 +00:00
config.h Removing exit calls from config parser 2014-06-17 20:08:28 +00:00
config_gram.y bug #42662 clang warnings under FreeBSD 10.x 2014-07-16 20:02:01 +00:00
configure.ac Join the former "public" header files (avr.h avrpart.h pindefs.h 2014-05-19 10:01:59 +00:00
confwin.c Join the former "public" header files (avr.h avrpart.h pindefs.h 2014-05-19 10:01:59 +00:00
crc16.c Major code cleanup. 2007-01-24 22:43:46 +00:00
crc16.h Major code cleanup. 2007-01-24 22:43:46 +00:00
dfu.c bug #42662 clang warnings under FreeBSD 10.x 2014-07-16 20:02:01 +00:00
dfu.h * flip2.c (flip2_page_erase): Remove unimplemented function. 2014-01-17 14:00:01 +00:00
fileio.c bug #37441: lockbits in ATxmega + avrdude = problem 2014-10-15 20:01:12 +00:00
flip1.c added verbose level in avrdude_message() 2014-06-13 20:07:40 +00:00
flip1.h Join the former "public" header files (avr.h avrpart.h pindefs.h 2014-05-19 10:01:59 +00:00
flip2.c added verbose level in avrdude_message() 2014-06-13 20:07:40 +00:00
flip2.h Join the former "public" header files (avr.h avrpart.h pindefs.h 2014-05-19 10:01:59 +00:00
freebsd_ppi.h Replace outdated FSF postal address by a reference to 2012-11-20 14:03:50 +00:00
ft245r.c patch #8511 Fix reset on FT245R 2014-08-18 21:08:05 +00:00
ft245r.h Join the former "public" header files (avr.h avrpart.h pindefs.h 2014-05-19 10:01:59 +00:00
jtag3.c bug #37441: lockbits in ATxmega + avrdude = problem 2014-10-15 20:01:12 +00:00
jtag3.h Turn the usbpid parameter of the programmer into a list of PIDs. Make 2014-02-27 13:06:03 +00:00
jtag3_private.h Implement the Atmel EDBG/CMSIS-DAP driver protocol for JTAGICE3 2014-02-26 17:54:32 +00:00
jtagmkI.c added verbose level in avrdude_message() 2014-06-13 20:07:40 +00:00
jtagmkI.h Replace outdated FSF postal address by a reference to 2012-11-20 14:03:50 +00:00
jtagmkII.c bug #37441: lockbits in ATxmega + avrdude = problem 2014-10-15 20:01:12 +00:00
jtagmkII.h Replace outdated FSF postal address by a reference to 2012-11-20 14:03:50 +00:00
jtagmkII_private.h Fix byte-wise EEPROM and flash writes on Xmega 2013-09-08 19:57:58 +00:00
jtagmkI_private.h Replace outdated FSF postal address by a reference to 2012-11-20 14:03:50 +00:00
lexer.l Removing exit calls from config parser 2014-06-17 20:08:28 +00:00
libavrdude.h patch #8440 Print part id after signature 2014-08-18 21:43:08 +00:00
linux_ppdev.h * linux_ppdev.h: added missing msg level for avrdude_message in ppi_claim/ppi_release macros 2014-06-23 20:20:38 +00:00
linuxgpio.c added verbose level in avrdude_message() 2014-06-13 20:07:40 +00:00
linuxgpio.h patch #7165 Add support for bitbanging GPIO lines using the Linux sysf GPIO interface 2013-01-09 19:23:30 +00:00
lists.c Join the former "public" header files (avr.h avrpart.h pindefs.h 2014-05-19 10:01:59 +00:00
main.c patch #8440 Print part id after signature 2014-08-18 21:43:08 +00:00
my_ddk_hidsdi.h Replace outdated FSF postal address by a reference to 2012-11-20 14:03:50 +00:00
par.c added verbose level in avrdude_message() 2014-06-13 20:07:40 +00:00
par.h Replace outdated FSF postal address by a reference to 2012-11-20 14:03:50 +00:00
pgm.c Removing exit calls from config parser 2014-06-17 20:08:28 +00:00
pgm_type.c bug #42662 clang warnings under FreeBSD 10.x 2014-07-16 20:38:52 +00:00
pickit2.c bug #42662 clang warnings under FreeBSD 10.x 2014-07-16 20:02:01 +00:00
pickit2.h Join the former "public" header files (avr.h avrpart.h pindefs.h 2014-05-19 10:01:59 +00:00
pindefs.c added verbose level in avrdude_message() 2014-06-13 20:07:40 +00:00
ppi.c added verbose level in avrdude_message() 2014-06-13 20:07:40 +00:00
ppi.h Replace outdated FSF postal address by a reference to 2012-11-20 14:03:50 +00:00
ppiwin.c added verbose level in avrdude_message() 2014-06-13 20:07:40 +00:00
safemode.c bug #42662 clang warnings under FreeBSD 10.x 2014-07-16 20:02:01 +00:00
ser_avrdoper.c bug #42662 clang warnings under FreeBSD 10.x 2014-07-16 20:02:01 +00:00
ser_posix.c bug #42662 clang warnings under FreeBSD 10.x 2014-07-16 20:02:01 +00:00
ser_win32.c bug #42662 clang warnings under FreeBSD 10.x 2014-07-16 20:02:01 +00:00
serbb.h Replace outdated FSF postal address by a reference to 2012-11-20 14:03:50 +00:00
serbb_posix.c added verbose level in avrdude_message() 2014-06-13 20:07:40 +00:00
serbb_win32.c added verbose level in avrdude_message() 2014-06-13 20:07:40 +00:00
solaris_ecpp.h Replace outdated FSF postal address by a reference to 2012-11-20 14:03:50 +00:00
stk500.c added verbose level in avrdude_message() 2014-06-13 20:07:40 +00:00
stk500.h Replace outdated FSF postal address by a reference to 2012-11-20 14:03:50 +00:00
stk500_private.h Add support for displaying and changing the various STK500 operational 2003-07-24 21:26:28 +00:00
stk500generic.c added verbose level in avrdude_message() 2014-06-13 20:07:40 +00:00
stk500generic.h Replace outdated FSF postal address by a reference to 2012-11-20 14:03:50 +00:00
stk500v2.c bug #43626: Inconsistent timeouts in stk500v2 2014-11-19 17:23:14 +00:00
stk500v2.h * pgm_type.c: Add "jtagice3_isp" programmer hook 2012-12-03 15:52:38 +00:00
stk500v2_private.h Join the former "public" header files (avr.h avrpart.h pindefs.h 2014-05-19 10:01:59 +00:00
term.c added verbose level in avrdude_message() 2014-06-13 20:07:40 +00:00
term.h Join the former "public" header files (avr.h avrpart.h pindefs.h 2014-05-19 10:01:59 +00:00
tpi.h avr.c: Adds avr_tpi_program_enable 2013-05-06 12:49:26 +00:00
update.c added verbose level in avrdude_message() 2014-06-13 20:07:40 +00:00
usb_libusb.c bug #43268: usb_drain() call causes LUFA AVR-ISP MKII Code to Fail 2014-09-22 10:01:39 +00:00
usbasp.c bug #41561: AVRDUDE 6.0.1/USBasp doesn't write first bytes of 2014-11-20 09:20:44 +00:00
usbasp.h Join the former "public" header files (avr.h avrpart.h pindefs.h 2014-05-19 10:01:59 +00:00
usbdevs.h Add the new Atmel-ICE, in all of JTAG, PDI, dW, and ISP modes. 2014-02-28 14:36:38 +00:00
usbtiny.c added verbose level in avrdude_message() 2014-06-13 20:07:40 +00:00
usbtiny.h Join the former "public" header files (avr.h avrpart.h pindefs.h 2014-05-19 10:01:59 +00:00
wiring.c added verbose level in avrdude_message() 2014-06-13 20:07:40 +00:00
wiring.h Replace outdated FSF postal address by a reference to 2012-11-20 14:03:50 +00:00

README

See the documentation file for the details.

The latest version of AVRDUDE is always available here:

  http://savannah.nongnu.org/projects/avrdude


Important environment variables for ./configure:
================================================

CPPFLAGS: C preprocessor flags (*not* "C++")

This is the place to put additional (non-standard) -I options into.
For example, if your Windows system has LibUSB-Win32 installed into
\\WINDOWS\ProgramFiles\LibUSB-Win32, use

CPPFLAGS=-I/WINDOWS/ProgramFiles/LibUSB-Win32/include

to tell configure where to search for the header files.  (The use of
forward slashes rather than backslashes can often simplify things.
Note that the Windows system services internally treat both the same.
It's only cmd.exe which requires backslashes as the directory
separator.)

LDFLAGS: Linker options

This is the place to make additional library locations known to the
linker.  To continue the above example, use

LDFLAGS=-L/WINDOWS/ProgramFiles/LibUSB-Win32/lib/gcc

to make the linker search for "libusb.a" in that directory.


Linux users: make sure the header files are installed
=====================================================

While many Linux distributions install the libraries needed by AVRDUDE
(libusb, libelf) by default, they leave out the corresponding header
files.  Consequently, the configure script won't find them, so these
libraries could not be used.

Usually, the packages with the header files (and static libraries) are
derived from the regular package name by appending "-devel".  Thus,
make sure you have "libusb-devel" and "libelf-devel" installed before
running the configure script.  (Same goes for libftdi.)