Commit Graph

1486 Commits

Author SHA1 Message Date
Joerg Wunsch 3f77955a47 bug #40870: config nitpick: ATtiny25/45/85 have 1 calibration byte not 2
* avrdude.conf.in (ATtiny25, ATtiny45, ATtiny85): Fix size of
"calibration" memory area



git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1346 81a1dc3b-b13d-400b-aceb-764788c761c2
2014-11-23 21:10:32 +00:00
Joerg Wunsch 25829f2c5e bug #43137: Writing and reading incorrect pages when using jtagicemkI
* jtagmkI.c (jtagmkI_paged_write, jtagmkI_paged_load): correctly
calculate the size of a partial (non-pagesize) buffer



git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1345 81a1dc3b-b13d-400b-aceb-764788c761c2
2014-11-23 20:57:17 +00:00
Joerg Wunsch 979f010e70 bug #43078: AVRDUDE crashes after sucessfully reading/writing eeprom
* jtag3.c (jtag3_edbg_recv_frame): Return correct length as
reported in the response packet, rather than full 512 byte which
are always reported by the CMSIS-DAP layer.  Miscalculations
based on the wrongly reported length caused heap corruption
elsewhere, so this is presumably also a fix for bug #43078.




git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1344 81a1dc3b-b13d-400b-aceb-764788c761c2
2014-11-23 20:46:53 +00:00
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
Joerg Wunsch d1af80102d bug #43626: Inconsistent timeouts in stk500v2
* stk500v2.c (stk500v2_recv): Add a reference to the bug report
but don't change anything, lest to break it somehow



git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1342 81a1dc3b-b13d-400b-aceb-764788c761c2
2014-11-19 17:23:14 +00:00
Rene Liebscher 701db74e34 patch #8529 2 more ftdi_syncbb devices
* avrdude.conf.in: added 2 new programmers 

git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1341 81a1dc3b-b13d-400b-aceb-764788c761c2
2014-11-14 10:51:41 +00:00
Rene Liebscher 5f8a599ce5 bug #40142 Floating point exception on Ubuntu 10.04
* avr.c: avoid division by zero in report_progress(), eg. when 
  writing an empty eeprom file were total becomes 0

git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1340 81a1dc3b-b13d-400b-aceb-764788c761c2
2014-11-14 10:22:52 +00:00
Rene Liebscher 58f509cb54 patch #8504 buspirate: Also support "cpufreq" extended parameter in binary mode
* buspirate.c: applied patch + switch off at disable (even when
a reset follows) + some general whitespace/tab cleanup

git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1339 81a1dc3b-b13d-400b-aceb-764788c761c2
2014-11-13 13:53:47 +00:00
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