Joerg Wunsch
83ff6d306d
bug #37441 : lockbits in ATxmega + avrdude = problem
...
* fileio.c: replace strmcp(..., "lock") by strncmp(..., "lock", 4)
where applicable
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1338 81a1dc3b-b13d-400b-aceb-764788c761c2
2014-10-15 20:01:12 +00:00
Joerg Wunsch
3d5beb40df
bug #42267 : jtag3isp fails to read lock and fuse bytes directly
...
after changing lock byte
* stk500v2.c (stk500isp_write_byte): As a workaround for broken
tool firmware, add 10 ms of delay before returning from any
single-byte write operation.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1337 81a1dc3b-b13d-400b-aceb-764788c761c2
2014-10-07 15:21:14 +00:00
Joerg Wunsch
b348d97620
* stk500v2.c: Use stk500isp_read_byte/stk500isp_write_byte for
...
every byte-wide access (rather than JTAGICE3 only). This finally
obsoletes the use of the prehistoric SPI_MULTI command where
AVRDUDE used to assemble all the low-level ISP stuff by itself.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1336 81a1dc3b-b13d-400b-aceb-764788c761c2
2014-10-06 22:15:29 +00:00
Joerg Wunsch
361e948a7a
bug #22248 : Read efuse error
...
* avrdude.conf.in (m168, m328, m48, m88, t1634, t26, t261, t461,
t861, t88): In efuse (or hfuse for t26) read operation, turn all
bits in byte 3 from "x" to "o" (output); this is a first step
towards fixing the symptoms mentioned in the bug, by unifying the
behaviour between different AVRs. Not touched are the historic
devices where the fuses are not documented to form a full byte
each (2333, 4433, 4434, 8535, m103, m161, m163).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1335 81a1dc3b-b13d-400b-aceb-764788c761c2
2014-10-06 13:35:14 +00:00
Joerg Wunsch
cdee435f8b
bug #43268 : usb_drain() call causes LUFA AVR-ISP MKII Code to Fail
...
* usb_libusb.c (usbdev_drain): Make this a dummy function only.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1334 81a1dc3b-b13d-400b-aceb-764788c761c2
2014-09-22 10:01:39 +00:00
Rene Liebscher
0136b7dd1b
patch #7694 Add support for the atmega32m1
...
* avrdude.conf.in: added ATmega32M1
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1333 81a1dc3b-b13d-400b-aceb-764788c761c2
2014-08-19 20:06:44 +00:00
Rene Liebscher
1ec0fb131e
patch #8440 Print part id after signature
...
When printing the part signature also print the part id.
* avrpart.c (locate_part_by_signature): New function.
* libavrdude.h (locate_part_by_signature): New function.
* main.c (main): Use the new function to find the part and print its id.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1332 81a1dc3b-b13d-400b-aceb-764788c761c2
2014-08-18 21:43:08 +00:00
Rene Liebscher
17bb2a10cd
patch #8511 Fix reset on FT245R
...
* ft245r.c: applied patch
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1331 81a1dc3b-b13d-400b-aceb-764788c761c2
2014-08-18 21:08:05 +00:00
Rene Liebscher
b3982b24f8
bug #43002 usbasp debug output typo
...
* usbasp.c: fixed typos
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1330 81a1dc3b-b13d-400b-aceb-764788c761c2
2014-08-18 20:40:32 +00:00
Joerg Wunsch
a226a8a922
bug #42662 clang warnings under FreeBSD 10.x
...
* avrftdi.h: Fix header guard macro name.
* pgm_type.c (programmers_types): Remove duplicate "const".
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1329 81a1dc3b-b13d-400b-aceb-764788c761c2
2014-07-16 20:38:52 +00:00
Rene Liebscher
8fd3870861
bug #42662 clang warnings under FreeBSD 10.x
...
* avrftdi.c: remove warnings
* buspirate.c: (Dito.)
* dfu.c: (Dito.)
* fileio.c: (Dito.)
* libavrdude.h: (Dito.)
* pickit2.c: (Dito.)
* safemode.c: (Dito.)
* ser_avrdoper.c: (Dito.)
* ser_posix.c: (Dito.)
* ser_win32.c: (Dito.)
* stk500v2.c: (Dito.)
* usb_libusb.c: (Dito.)
* usbasp.c: (Dito.)
* config_gram.y: fix problem when using parent part with usbpid lists
(existing list was extended not overwritten)
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1328 81a1dc3b-b13d-400b-aceb-764788c761c2
2014-07-16 20:02:01 +00:00
Axel Wachtler
8a387a198f
fixed bug from -r1305, patch #8463
...
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1327 81a1dc3b-b13d-400b-aceb-764788c761c2
2014-07-11 16:55:14 +00:00
Joerg Wunsch
960a7bc9d0
Add SVN properties to text file.
...
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1326 81a1dc3b-b13d-400b-aceb-764788c761c2
2014-06-24 15:26:14 +00:00
Rene Liebscher
ec361815fa
* linux_ppdev.h: added missing msg level for avrdude_message in ppi_claim/ppi_release macros
...
* avrftdi.c: added break at end of default
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1325 81a1dc3b-b13d-400b-aceb-764788c761c2
2014-06-23 20:20:38 +00:00
Rene Liebscher
eab60712a0
patch #8419 fix ftdi_syncbb hang with libftdi 1
...
* ft245r.c: set pthread cancel type to asynchronous, reorder ftdi_usb_close/deinit
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1324 81a1dc3b-b13d-400b-aceb-764788c761c2
2014-06-21 21:29:18 +00:00
Rene Liebscher
f57f89bfec
avrftdi_private.h: added missing msg level for avrdude_message in E/E_VOID macros
...
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1323 81a1dc3b-b13d-400b-aceb-764788c761c2
2014-06-17 20:27:37 +00:00
Rene Liebscher
2d2f71fb28
Removing exit calls from config parser
...
* config.h: cleanup, left only internally needed definitions
* config.c: removed exit calls, use yyerror and yywarning
* config_gram.y: (Dito.)
* lexer.l: (Dito.)
* libavrdude.h: removed internal definitions of config parser
* main.c: removed yyerror, it is now in config.c
* jtagmkII.c: added missing free in error case
* pgm.c: replaced exits by returns
* pickit2.c: add missing return
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1322 81a1dc3b-b13d-400b-aceb-764788c761c2
2014-06-17 20:08:28 +00:00
Axel Wachtler
c6788bd795
added verbose level in avrdude_message()
...
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1321 81a1dc3b-b13d-400b-aceb-764788c761c2
2014-06-13 20:07:40 +00:00
Rene Liebscher
471b504278
fix some more spelling errors
...
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1320 81a1dc3b-b13d-400b-aceb-764788c761c2
2014-06-11 08:45:14 +00:00
Rene Liebscher
4ddd784940
bug #42516 spelling-error-in-binary
...
* stk500v2.c, avrftdi.c, usbasp.c: fixed spelling errors
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1319 81a1dc3b-b13d-400b-aceb-764788c761c2
2014-06-11 07:17:54 +00:00
Rene Liebscher
14ffb37cfd
bug #42337 avrdude.conf updates for UM232H/CM232H
...
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1318 81a1dc3b-b13d-400b-aceb-764788c761c2
2014-06-01 20:18:27 +00:00
Rene Liebscher
29aab53b6f
add missing ) in linuxgpio.c
...
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1317 81a1dc3b-b13d-400b-aceb-764788c761c2
2014-05-27 19:50:28 +00:00
Joerg Wunsch
046d324d32
More libtool stuff to be ignored by SVN.
...
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1316 81a1dc3b-b13d-400b-aceb-764788c761c2
2014-05-19 13:09:52 +00:00
Joerg Wunsch
9d8f653f66
Add the "m4" directory to the list of files ignored by SVN.
...
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1315 81a1dc3b-b13d-400b-aceb-764788c761c2
2014-05-19 13:07:58 +00:00
Joerg Wunsch
d3149cee79
bug #41854 : avrdude 6.1 does not compile on systems without libUSB
...
Submitted by Didrik Madheden:
* flip1.c: Provide dummy functions for the #ifndef HAVE_LIBUSB case
* flip2.c: (Dito.)
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1314 81a1dc3b-b13d-400b-aceb-764788c761c2
2014-05-19 12:32:33 +00:00
Joerg Wunsch
8b3a4aab56
Yet another slip from previous commits.
...
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1313 81a1dc3b-b13d-400b-aceb-764788c761c2
2014-05-19 12:06:20 +00:00
Joerg Wunsch
94eed0dffe
Remove obsolete file (forgotten in previous commit).
...
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1312 81a1dc3b-b13d-400b-aceb-764788c761c2
2014-05-19 12:04:04 +00:00
Joerg Wunsch
d09bc2e1fb
Join the former "public" header files (avr.h avrpart.h pindefs.h
...
serial.h fileio.h safemode.h update.h pgm_type.h config.h confwin.h
lists.h) into a single header that can be included by anyone wanting
to link against the library.
Adapt everything to cope with this situation.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1311 81a1dc3b-b13d-400b-aceb-764788c761c2
2014-05-19 10:01:59 +00:00
Joerg Wunsch
d8089139d2
Cleanup unused include files.
...
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1310 81a1dc3b-b13d-400b-aceb-764788c761c2
2014-05-19 08:52:00 +00:00
Joerg Wunsch
491876339b
ppi_open() does not return a value
...
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1309 81a1dc3b-b13d-400b-aceb-764788c761c2
2014-05-19 08:48:30 +00:00
Joerg Wunsch
8a6f8b04bd
* linux_ppdev.h: Caught two more instances of exit()
...
* configure.ac: Add AC_CONFIG_MACRO_DIR as suggested by libtoolize
* Makefile.am: add -I m4 to ACLOCAL_AMFLAGS as suggested by libtoolize
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1308 81a1dc3b-b13d-400b-aceb-764788c761c2
2014-05-19 08:46:52 +00:00
Axel Wachtler
15a08ee93f
added Changelog entry for rev 1305/1306
...
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1307 81a1dc3b-b13d-400b-aceb-764788c761c2
2014-05-18 11:34:36 +00:00
Joerg Wunsch
3d4445ae87
Submitted by Georg von Zengen:
...
patch #8463 : typo in rev 1305
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1306 81a1dc3b-b13d-400b-aceb-764788c761c2
2014-05-18 10:58:40 +00:00
Axel Wachtler
eb5fcb581f
Exchange of fprintf(stderr, ...) with avrdude_message(...).
...
This change was made for the shared library, since library functions
should not write to std-streams directly. Instead avrdude_message()
has to be implemented by the library user. For the avrdude application
this function is implemented in main.c.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1305 81a1dc3b-b13d-400b-aceb-764788c761c2
2014-05-18 08:41:46 +00:00
Joerg Wunsch
52dd5cc7ac
Make a first attempt to build a shared library (not to be installed by
...
now).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1304 81a1dc3b-b13d-400b-aceb-764788c761c2
2014-05-16 17:50:40 +00:00
Joerg Wunsch
96647f1486
* dfu.c (dfu_open, dfu_init): Fix signature of the dummy functions
...
(in the !HAVE_LIBUSB case) to match prototypes.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1303 81a1dc3b-b13d-400b-aceb-764788c761c2
2014-05-16 16:02:29 +00:00
Joerg Wunsch
a13d8b1ecf
Fix syntax error (forgotten closing paren).
...
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1302 81a1dc3b-b13d-400b-aceb-764788c761c2
2014-05-16 16:01:08 +00:00
Joerg Wunsch
57903bdeb8
Replace all occurences of exit() in potential library code
...
by appropriate return values.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1301 81a1dc3b-b13d-400b-aceb-764788c761c2
2014-05-16 15:52:25 +00:00
Rene Liebscher
2eec999cdb
bug #42310 : New part description for AT90PWM216
...
* avrdude.conf.in: added pwm216 entry
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1300 81a1dc3b-b13d-400b-aceb-764788c761c2
2014-05-07 21:19:12 +00:00
Rene Liebscher
868416dbba
bug #42158 Linux GPIO - Source Typo
...
* pindefs.h: fixed typo
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1299 81a1dc3b-b13d-400b-aceb-764788c761c2
2014-05-07 20:53:34 +00:00
Rene Liebscher
487584b784
bug #42056 : double free or corruption triggered at exit
...
* pgm.c: copy usbpid list in pgm_dup
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1298 81a1dc3b-b13d-400b-aceb-764788c761c2
2014-04-14 21:41:43 +00:00
Joerg Wunsch
408184c43d
Add a warning to not modify the file manually.
...
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1297 81a1dc3b-b13d-400b-aceb-764788c761c2
2014-04-05 08:01:08 +00:00
Joerg Wunsch
584654b70e
Remove the note that users might edit the system-wide config file.
...
This file will be overwritten by the next installation, so it's not a
good idea to manually modify it. Using the -C +file option is a much
better way for user modifications.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1296 81a1dc3b-b13d-400b-aceb-764788c761c2
2014-04-05 07:58:58 +00:00
Joerg Wunsch
d69b85c974
Bump everything for post-6.1-release.
...
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1295 81a1dc3b-b13d-400b-aceb-764788c761c2
2014-03-12 23:15:46 +00:00
Joerg Wunsch
3e0b544560
Bump version to 6.1; prepare for release.
...
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1291 81a1dc3b-b13d-400b-aceb-764788c761c2
2014-03-12 22:34:08 +00:00
Joerg Wunsch
a341da1fec
* pgm.c (pgm_free): Cleanup police: destroy the p->usbpid
...
list when freeing the programmer struct.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1290 81a1dc3b-b13d-400b-aceb-764788c761c2
2014-03-12 21:20:32 +00:00
Joerg Wunsch
b9420a9831
bug #40782 : Verify errors for object size > 16 k on x32e5 due
...
to typo in avrdude.conf
* avrdude.conf.in (ATmega8E5, ATmega32E5): fix boot location
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1289 81a1dc3b-b13d-400b-aceb-764788c761c2
2014-03-12 21:08:05 +00:00
Joerg Wunsch
e4abb62ddb
Add the new Atmel-ICE, in all of JTAG, PDI, dW, and ISP modes.
...
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1288 81a1dc3b-b13d-400b-aceb-764788c761c2
2014-02-28 14:36:38 +00:00
Joerg Wunsch
e6410fc5db
Bump copyright year.
...
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1287 81a1dc3b-b13d-400b-aceb-764788c761c2
2014-02-28 14:26:24 +00:00
Joerg Wunsch
a1933951b4
In jtag3_recv, avoid memmov'ing more data than available
...
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1286 81a1dc3b-b13d-400b-aceb-764788c761c2
2014-02-28 14:24:48 +00:00