PrusaSlicer-NonPlainar/xs/src/avrdude
Vojtech Kral 60a0375ff9 Firmware updater: Fix a race condition
avrdude: Handle OOM with configurable handler
2018-08-24 11:21:29 +02:00
..
atmel-docs avrdude base 2018-05-21 18:55:03 +02:00
doc avrdude base 2018-05-21 18:55:03 +02:00
tools avrdude base 2018-05-21 18:55:03 +02:00
windows avrdude: Compilation on Windows/MSVC 2018-05-21 18:58:22 +02:00
ac_cfg.h avrdude: Compilation on Windows/MSVC 2018-05-21 18:58:22 +02:00
ac_cfg.h.in avrdude base 2018-05-21 18:55:03 +02:00
arduino.c avrdude: Line noise prevention on MK3 xflash boot 2018-06-20 17:31:29 +02:00
arduino.h avrdude base 2018-05-21 18:55:03 +02:00
AUTHORS avrdude base 2018-05-21 18:55:03 +02:00
avr910.c avrdude: Compilation on Windows/MSVC 2018-05-21 18:58:22 +02:00
avr910.h avrdude base 2018-05-21 18:55:03 +02:00
avr.c Firmware updater: rework cancelling 2018-05-21 18:58:22 +02:00
avrdude-slic3r.cpp Firmware updater: Fix a race condition 2018-08-24 11:21:29 +02:00
avrdude-slic3r.hpp Firmware updater: Fix a race condition 2018-08-24 11:21:29 +02:00
avrdude.1 avrdude base 2018-05-21 18:55:03 +02:00
avrdude.conf avrdude base 2018-05-21 18:55:03 +02:00
avrdude.conf.in avrdude base 2018-05-21 18:55:03 +02:00
avrdude.conf.tmp avrdude base 2018-05-21 18:55:03 +02:00
avrdude.h Firmware updater: Fix a race condition 2018-08-24 11:21:29 +02:00
avrdude.spec.in avrdude base 2018-05-21 18:55:03 +02:00
avrftdi_private.h avrdude base 2018-05-21 18:55:03 +02:00
avrftdi_tpi.c avrdude base 2018-05-21 18:55:03 +02:00
avrftdi_tpi.h avrdude base 2018-05-21 18:55:03 +02:00
avrftdi.c avrdude base 2018-05-21 18:55:03 +02:00
avrftdi.h avrdude base 2018-05-21 18:55:03 +02:00
avrpart.c Firmware updater: Fix a race condition 2018-08-24 11:21:29 +02:00
bitbang.c avrdude base 2018-05-21 18:55:03 +02:00
bitbang.h avrdude base 2018-05-21 18:55:03 +02:00
bootstrap avrdude base 2018-05-21 18:55:03 +02:00
BUILD-FROM-SVN avrdude base 2018-05-21 18:55:03 +02:00
buspirate.c Firmware updater: Fix a race condition 2018-08-24 11:21:29 +02:00
buspirate.h avrdude base 2018-05-21 18:55:03 +02:00
butterfly.c Firmware updater: Fix a race condition 2018-08-24 11:21:29 +02:00
butterfly.h avrdude base 2018-05-21 18:55:03 +02:00
ChangeLog avrdude base 2018-05-21 18:55:03 +02:00
ChangeLog-2001 avrdude base 2018-05-21 18:55:03 +02:00
ChangeLog-2002 avrdude base 2018-05-21 18:55:03 +02:00
ChangeLog-2003 avrdude base 2018-05-21 18:55:03 +02:00
ChangeLog-2004-2006 avrdude base 2018-05-21 18:55:03 +02:00
ChangeLog-2007 avrdude base 2018-05-21 18:55:03 +02:00
ChangeLog-2008 avrdude base 2018-05-21 18:55:03 +02:00
ChangeLog-2009 avrdude base 2018-05-21 18:55:03 +02:00
ChangeLog-2010 avrdude base 2018-05-21 18:55:03 +02:00
ChangeLog-2011 avrdude base 2018-05-21 18:55:03 +02:00
ChangeLog-2012 avrdude base 2018-05-21 18:55:03 +02:00
ChangeLog-2013 avrdude base 2018-05-21 18:55:03 +02:00
ChangeLog-2014 avrdude base 2018-05-21 18:55:03 +02:00
ChangeLog-2015 avrdude base 2018-05-21 18:55:03 +02:00
CMakeLists.txt avrdude: Standalone binary 2018-07-27 13:27:52 +02:00
config_gram.c avrdude base 2018-05-21 18:55:03 +02:00
config_gram.h avrdude base 2018-05-21 18:55:03 +02:00
config_gram.y avrdude base 2018-05-21 18:55:03 +02:00
config.c avrdude base 2018-05-21 18:55:03 +02:00
config.h avrdude base 2018-05-21 18:55:03 +02:00
configure.ac avrdude base 2018-05-21 18:55:03 +02:00
confwin.c avrdude base 2018-05-21 18:55:03 +02:00
COPYING avrdude base 2018-05-21 18:55:03 +02:00
crc16.c avrdude base 2018-05-21 18:55:03 +02:00
crc16.h avrdude base 2018-05-21 18:55:03 +02:00
dfu.c avrdude base 2018-05-21 18:55:03 +02:00
dfu.h avrdude base 2018-05-21 18:55:03 +02:00
fileio.c avrdude: use sections instead of offsets 2018-07-27 13:27:52 +02:00
flip1.c avrdude base 2018-05-21 18:55:03 +02:00
flip1.h avrdude base 2018-05-21 18:55:03 +02:00
flip2.c avrdude base 2018-05-21 18:55:03 +02:00
flip2.h avrdude base 2018-05-21 18:55:03 +02:00
freebsd_ppi.h avrdude base 2018-05-21 18:55:03 +02:00
ft245r.c avrdude base 2018-05-21 18:55:03 +02:00
ft245r.h avrdude base 2018-05-21 18:55:03 +02:00
jtag3_private.h avrdude base 2018-05-21 18:55:03 +02:00
jtag3.c avrdude base 2018-05-21 18:55:03 +02:00
jtag3.h avrdude base 2018-05-21 18:55:03 +02:00
jtagmkI_private.h avrdude base 2018-05-21 18:55:03 +02:00
jtagmkI.c avrdude base 2018-05-21 18:55:03 +02:00
jtagmkI.h avrdude base 2018-05-21 18:55:03 +02:00
jtagmkII_private.h avrdude base 2018-05-21 18:55:03 +02:00
jtagmkII.c avrdude base 2018-05-21 18:55:03 +02:00
jtagmkII.h avrdude base 2018-05-21 18:55:03 +02:00
lexer.c Firmware updater: Fix a race condition 2018-08-24 11:21:29 +02:00
lexer.l avrdude base 2018-05-21 18:55:03 +02:00
libavrdude.h avrdude: use sections instead of offsets 2018-07-27 13:27:52 +02:00
linux_ppdev.h avrdude base 2018-05-21 18:55:03 +02:00
linuxgpio.c avrdude base 2018-05-21 18:55:03 +02:00
linuxgpio.h avrdude base 2018-05-21 18:55:03 +02:00
lists.c avrdude base 2018-05-21 18:55:03 +02:00
main-standalone.c avrdude: Standalone binary 2018-07-27 13:27:52 +02:00
main.c Firmware updater: Fix a race condition 2018-08-24 11:21:29 +02:00
Makefile.am avrdude base 2018-05-21 18:55:03 +02:00
Makefile.standalone avrdude: Standalone binary 2018-07-27 13:27:52 +02:00
my_ddk_hidsdi.h avrdude base 2018-05-21 18:55:03 +02:00
NEWS avrdude base 2018-05-21 18:55:03 +02:00
par.c avrdude base 2018-05-21 18:55:03 +02:00
par.h avrdude base 2018-05-21 18:55:03 +02:00
pgm_type.c avrdude: Compilation on Windows/MSVC 2018-05-21 18:58:22 +02:00
pgm.c Firmware updater: Fix a race condition 2018-08-24 11:21:29 +02:00
pickit2.c avrdude base 2018-05-21 18:55:03 +02:00
pickit2.h avrdude base 2018-05-21 18:55:03 +02:00
pindefs.c avrdude base 2018-05-21 18:55:03 +02:00
ppi.c avrdude base 2018-05-21 18:55:03 +02:00
ppi.h avrdude base 2018-05-21 18:55:03 +02:00
ppiwin.c avrdude: Compilation on Windows/MSVC 2018-05-21 18:58:22 +02:00
README avrdude base 2018-05-21 18:55:03 +02:00
safemode.c avrdude base 2018-05-21 18:55:03 +02:00
ser_avrdoper.c avrdude base 2018-05-21 18:55:03 +02:00
ser_posix.c FirmwareDialog: Fix progress display 2018-06-19 18:46:37 +02:00
ser_win32.c Firmware updater: Fix a race condition 2018-08-24 11:21:29 +02:00
serbb_posix.c avrdude base 2018-05-21 18:55:03 +02:00
serbb_win32.c avrdude: Compilation on Windows/MSVC 2018-05-21 18:58:22 +02:00
serbb.h avrdude base 2018-05-21 18:55:03 +02:00
solaris_ecpp.h avrdude base 2018-05-21 18:55:03 +02:00
stk500_private.h avrdude base 2018-05-21 18:55:03 +02:00
stk500.c Firwmare updater for the Einsy external flash memory, 2018-06-19 18:46:37 +02:00
stk500.h avrdude base 2018-05-21 18:55:03 +02:00
stk500generic.c avrdude base 2018-05-21 18:55:03 +02:00
stk500generic.h avrdude base 2018-05-21 18:55:03 +02:00
stk500v2_private.h avrdude base 2018-05-21 18:55:03 +02:00
stk500v2.c Firmware updater: Fix a race condition 2018-08-24 11:21:29 +02:00
stk500v2.h avrdude base 2018-05-21 18:55:03 +02:00
term.c avrdude base 2018-05-21 18:55:03 +02:00
term.h avrdude base 2018-05-21 18:55:03 +02:00
tpi.h avrdude base 2018-05-21 18:55:03 +02:00
update.c Firmware updater: Fix a race condition 2018-08-24 11:21:29 +02:00
usb_hidapi.c avrdude base 2018-05-21 18:55:03 +02:00
usb_libusb.c avrdude base 2018-05-21 18:55:03 +02:00
usbasp.c avrdude base 2018-05-21 18:55:03 +02:00
usbasp.h avrdude base 2018-05-21 18:55:03 +02:00
usbdevs.h avrdude base 2018-05-21 18:55:03 +02:00
usbtiny.c avrdude base 2018-05-21 18:55:03 +02:00
usbtiny.h avrdude base 2018-05-21 18:55:03 +02:00
wiring.c Firmware updater: Fix a race condition 2018-08-24 11:21:29 +02:00
wiring.h avrdude base 2018-05-21 18:55:03 +02:00

THIS IS A PRUSA3D BRANCH, WORKING AROUND A SPECIFIC PROBLEM 
IN THE EARLY I3 MK2 USB COMMUNICATION CHIPS.

Some of the early Prusa3D i3 MK2 printers were shipped with a buggy
USB communication controller firmware. This fork of avrdude contains
a workaround inside the stk500v2 protocol implementation. 

The workaround depends on a specific behavior of the Arduino AVR 2560
bootloader, which is installed on the i3 MK2 printers:

https://github.com/arduino/Arduino-stk500v2-bootloader

The avrdude binary modified by Prusa3D could replace the avrdude bianary
of arduino to program the RAMBo board. In that case the modified binary
is identified by a "-prusa3d" suffix to the version information.

-------------------------------------------------------------------

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.)