Commit Graph

547 Commits

Author SHA1 Message Date
Eric Weddington f72d42b80e * windows/Makefile.am: Correct makefile so loaddrv does not link
to Cygwin DLL.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@371 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-09-22 21:13:57 +00:00
Eric Weddington 08669937dc * doc/avrdude.texi: Minor corrections. Change description of -P
to reference platform dependencies.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@370 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-09-18 18:11:25 +00:00
Eric Weddington f0808da915 * stk500.c: If writing flash, skip empty pages in paged write.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@369 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-09-16 20:40:13 +00:00
Brian S. Dean fb9e9ca66a Add ATmega162 part definition.
Contributed by: Stephan Eisvogel <eisvogel@hawo.stw.uni-erlangen.de>


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@368 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-09-08 14:51:28 +00:00
Theodore A. Roth ddfd0b658c * NEWS: Add 'Current:' header.
* configure.ac (AC_INIT): Add cvs back to version since we're
back in dev cycle (post release).


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@367 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-09-06 18:17:58 +00:00
Theodore A. Roth d05271766a * NEWS: Update for 4.2.0 release. Add note about read/write of fuses
support for avr910.
* configure.ac (AC_INIT): Set version to 4.2.0.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@365 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-09-06 17:47:16 +00:00
Theodore A. Roth 92059f41a3 * avr.c (avr_read_byte): If pgm->read_byte method fails, retry with
avr_read_byte_default.
* avr.c (avr_write_byte): If pgm->write_byte method fails, retry with
avr_write_byte_default.
* avr910.c (avr910_cmd): Implement using universal command.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@364 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-09-05 16:40:55 +00:00
Theodore A. Roth ed14409bf9 * ChangeLog: Format cleanups. All indents should be a single tab and
lines should be less than 80 chars including 8 spaces for the tab.
Date should be YYYY-MM-DD not YYYY/MM/DD.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@363 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-09-05 16:25:00 +00:00
Theodore A. Roth ea652e7b78 * Makefile.am: Change AM_CPPFLAGS to avrdude_CPPFLAGS.
Define avrdude_CFLAGS.
* configure.ac: Set ENABLE_WARNINGS to "-Wall" if using gcc.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@362 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-09-05 04:23:27 +00:00
Brian S. Dean 3bd2da1766 Add an extended example of using the -U option to update the flash,
eeprom, efuse, hfuse, and lfuse on a single command line.  Much of the
output had to be ommitted from the example since the texi commands for
formatting the example don't allow page breaks within the example.  If
someone knows a better way to format it, please feel free to do so.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@361 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-09-04 01:01:40 +00:00
Eric Weddington d1eb58dbde * doc/avrdude.texi: Add note about privileges needed to load
the giveio driver for Windows.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@360 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-09-02 16:40:06 +00:00
Brian S. Dean ede8a48d52 Revert to honoring the return code from pgm->pgm_enable() within the
stk500 initialization routine.  However, allow one to use the -F
option to ignore a bad return code from that function.  I think this
still allows what Joerg intended, i.e., providing a way to still get
into terminal mode so that one can recover from setting bad STK500
values which may keep the chip from entering programming mode.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@359 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-08-31 15:40:59 +00:00
Brian S. Dean 6acb859507 Make a note about the new auto erase default and exceptions.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@358 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-08-29 23:23:25 +00:00
Brian S. Dean 698769dcca Document auto erase default for -U flash write requests.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@357 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-08-29 23:19:44 +00:00
Brian S. Dean 1188a0313b Perform an auto erase before programming if the flash memory is
anywhere specified to be written by any of the -U requests.

To remain backward compatible with previous versions, disable this
feature if any of the old-style memory specification operations are
specified (-i, -o).

Implement the -D option to explicitly disable the auto erase default.

Deprecate the old-style memory specification options (-f, -i, -I, -m,
and -o) in favor of the new -U option which allows one to operate on
multiple memories on a single command line.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@356 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-08-29 23:17:32 +00:00
Brian S. Dean ae39cd7c57 Add some forgotten entries.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@355 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-08-29 01:47:47 +00:00
Brian S. Dean 77bc532fd2 Declare size and vsize as 'int'. These represent the size of the AVR
memory read or written (or up to where continuous 0xff begins in the
case of flash memory).  An 'int' should be plenty big enough for that.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@354 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-08-29 00:14:22 +00:00
Brian S. Dean ce6e943739 Add entry about "immediate mode."
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@353 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-08-28 23:42:51 +00:00
Eric Weddington 9560dfe881 * avr910.c:
* fileio.c:
    * main.c:
    * stk500.c:
    More code cleanup to remove warnings.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@352 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-08-28 23:02:25 +00:00
Brian S. Dean 61c60d3b5b Make a note about -U option.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@351 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-08-28 18:41:43 +00:00
Brian S. Dean f2a77c44f0 Fix fuse bit setting example. This closes bug #4027 submitted by
(unknown).


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@350 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-08-28 14:00:07 +00:00
Brian S. Dean 3c507aee9e Fix placement of local variable - variables must be declared before
any statements within a block.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@349 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-08-28 13:52:52 +00:00
Theodore A. Roth 964a170f39 * main.c (update_progress_no_tty): Properly terminate progress. Also
fixes stk500 problem where number of bytes written is less than a page.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@348 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-08-28 05:37:57 +00:00
Theodore A. Roth d2e0c4eab3 * avrdude.spec.in: Fix broken rpmbuild on RedHat-9.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@347 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-08-28 04:43:50 +00:00
Eric Weddington c19d7efe7a * fileio.c:
* main.c:
    * ppiwin.c:
    * ser_posix.c:
    * stk500.c:
    Minor code cleanup to remove warnings.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@346 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-08-25 15:55:48 +00:00
Brian S. Dean e603e71c45 Fix example.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@345 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-08-24 20:53:25 +00:00
Brian S. Dean e8d5bce16f Document recent enhancements.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@344 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-08-24 18:40:06 +00:00
Brian S. Dean b8af1211d8 Update a few programmer entries (descriptions only).
Add the supported programmer list to the manual.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@343 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-08-24 18:31:08 +00:00
Brian S. Dean 96b8604351 Remove debugging printf.
Update manual to reflect the new -U option.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@342 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-08-24 18:05:46 +00:00
Brian S. Dean 0d61a7e3f7 Introduce a new option, -U, for performing memory operions. Its
argument is a 4 field string (fields seperated by colons) which
indicate what memory type to operate on, what operation to perform is
(read, write, or verify), the filename to read from, write to, or
verify against, and an optional file format field.  Multple -U options
can be specified to operate on more than one memory at a time with a
single invocation.  For example, to update both the flash and the
eeprom at the same time one can now specify the following:

	avrdude -p -e -U flash:w:main.hex:i -U eeprom:w:eeprom.hex:i


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@341 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-08-21 04:52:36 +00:00
Brian S. Dean b4a23dddc0 Timing related fixes for the Windows platform. Several folks have
reported that this patch fixes verify errors on the Windows platform
that are apparently timing related.  Submitted by: Alex Shepherd
<ashepherd@wave.co.nz>, who indicates that this patch was based on
code from the UISP project.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@340 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-08-20 00:16:27 +00:00
Theodore A. Roth ca01d072ab * avrdude.1: Document the -q option.
* doc/avrdude.texi: Document the -q option.
Fix some typos left over from pasting in man output.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@339 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-08-01 20:11:21 +00:00
Brian S. Dean f6a14f4c25 Add elapsed time information to the new progress bar.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@338 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-07-30 23:01:52 +00:00
Theodore A. Roth f3a6fc6ab0 * avr.c:
* avr.h:
* avr910.c:
* main.c:
* stk500.c:
New progress reporting implementation.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@337 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-07-29 22:08:21 +00:00
Joerg Wunsch 4facd0e3d9 Add support for displaying and changing the various STK500 operational
parameters.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@336 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-07-24 21:26:28 +00:00
Brian S. Dean 17422985b6 Remove carraige returns.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@335 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-07-23 23:44:13 +00:00
Brian S. Dean 6ff0c4a47e Add 'picoweb' programming cable programmer.
Contributed by Rune Christensen <rune.christensen@adslhome.dk>.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@334 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-07-22 01:29:19 +00:00
Brian S. Dean ede6981133 Add the 'sp12' (Steve Bolt's) programmer.
Submitted by Larry Barello <larryba@barello.net>.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@333 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-06-18 02:47:52 +00:00
Brian S. Dean 3e70d4566f Properly identify the "ALF" programmer.
Extend ATmega8 calibration memory to support all 4 calibration bytes.
Savannah bug #3835.  Submitted by Francisco T. A. Silva
<ftas@geodigitus.com.br>.

Add a few AVR910 programmer device codes.  Savannah bug #3569 - sorry
I can't tell who submitted this to give proper credit.

Add support for the ATtiny12.  Submitted by Pontifex <pontifex@isys.ca>


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@332 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-06-17 21:35:39 +00:00
Brian S. Dean 4446ed3a7d Optimize flash memory handling a little bit by ignoring 0xff data that
resides above the last non-0xff data value in the address space.  Only
do this for flash memory since writing a 0xff to flash is a no-op.
This has the affect of creating smaller output files when dumping
memory contents from flash if the program in flash does not consume
the whole memory space.  It also results in shorter programming times
when avrdude is asked to load a file into flash that has lots of 0xff
filled data past the last non-0xff data value.

I think this is basically where Alexey was going with his s-record
routine, but this should have a similar affect for all the I/O
routines.  The main difference is that Alexey's also optimized 0xff
from the beginning of the address space and was not limited to flash.

I think that these optimizations should be limited to the flash since
it is currently the only memory that treats 0xff as special.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@331 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-05-22 02:33:17 +00:00
Brian S. Dean e0026ff0fd Make the s-record output routine work like the raw and intel hex
output routines (don't optimize away 0xff data before and after non
0xff data).  Also, fix a bug where the data contents sometimes weren't
written out completely.

Initial bug reported by Tom Harris <TomH@optiscan.com>.  Fixes
provided by Alexey V.Levdikov <tsar@kemford.com>.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@330 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-05-22 00:46:59 +00:00
Theodore A. Roth 1fa0b23de1 * avr910.c (avr910_paged_write_flash): Add code to send the 'm'
command ("issue page write" cmd) for each page.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@329 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-05-14 05:14:32 +00:00
Theodore A. Roth 229481f5ac * avrdude.conf.in: Add pagel and bs2 entries for at90s1200 device.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@328 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-05-14 03:54:17 +00:00
Theodore A. Roth 0b1f5b8a0d * doc/TODO: Add note about avr910 device codes.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@327 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-05-13 21:41:36 +00:00
Eric Weddington 25d2b42f87 Change email address.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@326 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-05-13 18:10:55 +00:00
Brian S. Dean 4e10f943ff fileio.c : Remove superfluous assignment of 'fname'.
main.c : print out '<stdin>' and '<stdout>' instead of '-' when using
         stdio for I/O.

Thanks to Francisco T. A. Silva <ftas@geodigitus.com.br> for catching
this, and the error fixed by the previous commit as well.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@325 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-05-07 22:13:46 +00:00
Brian S. Dean 16d49775d0 Unbreak using stdin/stdout for file input / output.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@324 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-05-07 00:14:03 +00:00
Theodore A. Roth 29658b756a * configure.ac: Check for ncurses library (since it can be a
replacement for termcap.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@323 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-05-05 02:29:28 +00:00
Theodore A. Roth 39dbaf4903 * avrdude.conf.in: Add avr decodes for devices known in avr910
firmware version 2.3.
Add missing stk500 devocde for 2343.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@322 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-05-02 16:23:30 +00:00
Eric Weddington 9baed74e69 Fix for bug #3293. Set correct open mode for raw format for Windows.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@321 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-04-23 16:36:01 +00:00