Commit Graph

419 Commits

Author SHA1 Message Date
Theodore A. Roth 03427b2d87 New file.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@189 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-02-12 17:58:04 +00:00
Theodore A. Roth 75f86c0eae Remove need for inttypes.h.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@188 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-02-12 17:47:47 +00:00
Theodore A. Roth 6060499dcb Define YY_NO_UNPUT to quell a compiler warning.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@187 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-02-12 17:46:24 +00:00
Theodore A. Roth cad73bb6a0 Remove YACC assignment.
Add '-b y' options to YACC invocation.
Remove leading '-' from 'include .depend'.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@186 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-02-12 17:24:43 +00:00
Joerg Wunsch 8e5d9c465f Declare the internally used static functions on top, to get rid of the
compiler warnings.

Reported by:	bison-generated parsers


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@185 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-02-12 09:08:10 +00:00
Theodore A. Roth 0de3a90f8f * linux_ppdev.h: New file.
* ppi.c: Include system dependant parallel port interface file.
(ppi_open): Add call to ppi_claim().
(ppi_close): Add call to ppi_release().
* ppi.h: Define ppi_claim() and ppi_release() as NOPs if not previously
    defined.
* stk500.c: Include inttypes header to quell compiler warning.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@184 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-02-11 23:50:31 +00:00
Joerg Wunsch e263727fb4 Fix some implicit declaration warnings.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@183 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-02-11 21:58:07 +00:00
Joerg Wunsch 4eb4b7c115 Move the C declarations to the top of the file. While [b]yacc doesn't
care, bison does, and this is normally the way it's meant to be
anyway.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@182 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-02-11 21:27:06 +00:00
Theodore A. Roth a1ba67732c Generate dependencies specific to the target system.
Explicitly use byacc.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@181 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-02-11 21:01:02 +00:00
Theodore A. Roth 499a6757e6 Remove reference to avr-gcc in depend rule (cut & paste error).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@180 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-02-11 19:03:03 +00:00
Brian S. Dean 7c8e1ae69f Test commit in new public repository. Before this time this repo
existed on a private system.  Commits made by 'bsd' on the old system
were made by Brian Dean (bdean on the current system).


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@179 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-02-09 13:36:48 +00:00
Brian S. Dean aa4521eb51 The last part of that last commit message should read:
All others - modify program description.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@178 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-02-08 04:20:39 +00:00
Brian S. Dean 4fef102d87 Makefile: include a target to automatically generate the dependency
list.

All others


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@177 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-02-08 04:17:25 +00:00
Brian S. Dean f4dcdc83c5 Update license to GPL, permission by Joerg Wunsch.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@176 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-02-06 22:11:20 +00:00
Brian S. Dean 7eebe26271 Add GPL.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@175 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-02-06 20:02:33 +00:00
Brian S. Dean 43a8b50010 Add GPL to the Makefile and config_gram.y.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@174 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-02-06 19:54:46 +00:00
Brian S. Dean 9af653d2cc Add stk500.h as a dependency for stk500.c. Remove carraige returns
from stk500.h - don't know how those got in there (pointed out by Ted
Roth).


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@173 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-02-06 19:17:10 +00:00
Brian S. Dean 46317badc6 Re-license using the GNU GPL. Thanks to Ted Roth for the patch.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@172 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-02-06 19:08:33 +00:00
Brian S. Dean 3ea96d00e8 Get rid of the verbose printing of individual file CVS version ids.
This was intended to be used for identifying code in the field for
incoming bug reports, but I've never really found it all that useful.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@171 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-02-06 05:45:06 +00:00
Brian S. Dean ede0fe31f4 Change the name from AVRPROG to AVRDUDE.
This change represents a name change only.  There is currently an
effort to port AVRPROG to other platforms including Linux and Windows.
Since Atmel's programmer binary that's included within their AVR
Studio software is named AVRPROG.EXE on the Windows OS, there is the
chance for confusion if we keep calling this program AVRPROG as well.
Up until now the name hasn't really been a problem since there was no
chance to confuse 'avrprog' on Unix with Atmel's AVRPROG because
Atmel's tools only run on Windows.  But with the Unix 'avrprog'
possibly being ported to Windows, I felt a name change was the best
way to avoid problems.

So - from this point forward, my FreeBSD Unix program formerly known
as AVRPROG will subsequently be known as AVRDUDE (AVR Downloader/UploaDEr).

This change also represents a time when the AVRDUDE sources move from
my own private repository to a public repository.  This will give
other developers a chance to port AVRDUDE to other platforms and
extend its functionality to support additional programming hardware,
etc.

So goodbye AVRPROG, welcome AVRDUDE!


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@170 81a1dc3b-b13d-400b-aceb-764788c761c2
2003-02-06 05:13:32 +00:00
Brian S. Dean bf1859ae1a minor cleanup
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@168 81a1dc3b-b13d-400b-aceb-764788c761c2
2002-12-12 03:59:28 +00:00
Brian S. Dean df4576d14d If the stk500 is being used, default to using the first serial port.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@167 81a1dc3b-b13d-400b-aceb-764788c761c2
2002-12-07 15:16:24 +00:00
Brian S. Dean 9443e6d12d Mention STK500 support.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@166 81a1dc3b-b13d-400b-aceb-764788c761c2
2002-12-03 03:54:32 +00:00
Brian S. Dean 145d2cbcee Remove unused code.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@165 81a1dc3b-b13d-400b-aceb-764788c761c2
2002-12-01 20:10:12 +00:00
Brian S. Dean 1b680ed11d Document changes since the previous version in the CHANGELOG.
Cleanup stk500.c a bit.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@164 81a1dc3b-b13d-400b-aceb-764788c761c2
2002-12-01 20:09:38 +00:00
Brian S. Dean a66b6785b3 Fix cut and paste braino.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@163 81a1dc3b-b13d-400b-aceb-764788c761c2
2002-12-01 15:10:23 +00:00
Brian S. Dean 94f22b15ee The STK500 can perform paged read/write operations even on standard
"non-paged" parts.  Take advantage of that and use the faster internal
routines of the STK500 for those parts as well.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@162 81a1dc3b-b13d-400b-aceb-764788c761c2
2002-12-01 15:05:56 +00:00
Brian S. Dean 8368f8317b Optimize reading and writing for the STK500 programmer if the part
supports paged reads and writes.  This greatly decreases the
program/verify time from about 4.5 minutes down to about 10 seconds in
a 12K program size test case.

Print out the hardware and firmware version for the STK500 if verbose
is enabled.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@161 81a1dc3b-b13d-400b-aceb-764788c761c2
2002-12-01 06:35:18 +00:00
Brian S. Dean ef2d595660 Add basic support for STK500.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@160 81a1dc3b-b13d-400b-aceb-764788c761c2
2002-12-01 04:30:01 +00:00
Brian S. Dean 71a439397a Seperate programmer operations out into a driver-like interface so
that programmers other than the direct parallel port connection can be
supported.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@159 81a1dc3b-b13d-400b-aceb-764788c761c2
2002-11-30 14:09:12 +00:00
Brian S. Dean 07c1849557 term.c - when in interactive terminal mode and dumping memory using
the 'dump <memtype>' command without any address information,
         and the end of memory is reached, wrap back around to zero on
         the next invocation.

CHANGELOG - describe changes

main.c - update version number


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@157 81a1dc3b-b13d-400b-aceb-764788c761c2
2002-11-23 00:52:15 +00:00
Brian S. Dean 6f8adf7abc When getting ready to initiate communications with the AVR device,
first pull /RESET low for a short period of time before enabling the
buffer chip.  This sequence allows the AVR to be reset before the
buffer is enabled to avoid a short period of time where the AVR may be
driving the programming lines at the same time the programmer tries
to.  Of course, if a buffer is being used, then the /RESET line from
the programmer needs to be directly connected to the AVR /RESET line
and not via the buffer chip.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@156 81a1dc3b-b13d-400b-aceb-764788c761c2
2002-11-23 00:47:29 +00:00
Brian S. Dean 2fa7a7c110 Update changelog.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@154 81a1dc3b-b13d-400b-aceb-764788c761c2
2002-11-06 02:23:27 +00:00
Brian S. Dean 648d06f7ed Fix -Y option. Reported by Joerg Wunsch.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@153 81a1dc3b-b13d-400b-aceb-764788c761c2
2002-11-06 02:19:57 +00:00
Brian S. Dean 98c0c7d4f4 Version update and CHANGELOG entry.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@151 81a1dc3b-b13d-400b-aceb-764788c761c2
2002-11-01 14:46:20 +00:00
Brian S. Dean 7b11e0829d Be backward compatible with the 2-byte rewrite cycle counter which
appeared in version 2.1.0, but was changed to a 4 byte counter in
version 2.1.1.  Reminded by Joerg Wunsch.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@150 81a1dc3b-b13d-400b-aceb-764788c761c2
2002-11-01 14:40:23 +00:00
Brian S. Dean c5a313abe3 Add '-V' (no verify) flag requested by Joerg Wunsch. Update the man
page.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@148 81a1dc3b-b13d-400b-aceb-764788c761c2
2002-10-29 01:59:02 +00:00
Brian S. Dean de9b1ec6c9 Update man page and changelog.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@147 81a1dc3b-b13d-400b-aceb-764788c761c2
2002-10-13 04:22:59 +00:00
Brian S. Dean 912ba29aef Update version number.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@146 81a1dc3b-b13d-400b-aceb-764788c761c2
2002-10-13 04:19:39 +00:00
Brian S. Dean 20d682437b Remove --pedantic and -g from the compiler options.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@145 81a1dc3b-b13d-400b-aceb-764788c761c2
2002-10-12 21:22:57 +00:00
Brian S. Dean dee4126fde Use a four byte value instead of a two byte value for the programming
cycle count stored at the end of EEPROM.  It seems as though Atmel was
greatly conservative in claiming a 1000 count reliability for the
FLASH.  I current have a part that has been reprogrammed 173330 times,
and counting.

Fix a compiler warning.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@144 81a1dc3b-b13d-400b-aceb-764788c761c2
2002-10-11 19:36:56 +00:00
Brian S. Dean cba33d4b0f Fix ATMega128 instruction encoding for reading the low and high fuse
bits.  Thanks to Joerg Wunsch for tripping over this.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@143 81a1dc3b-b13d-400b-aceb-764788c761c2
2002-10-11 19:32:12 +00:00
Brian S. Dean 5e3500045e Move erase-rewrite cycle increment to within the chip erase routine so
that it is tracked no matter where the erase was initiated: command
line mode or interactive mode, without code duplicaiton.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@141 81a1dc3b-b13d-400b-aceb-764788c761c2
2002-08-01 02:06:48 +00:00
Brian S. Dean 3c5d46bdd1 Recent updates.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@140 81a1dc3b-b13d-400b-aceb-764788c761c2
2002-08-01 01:06:54 +00:00
Brian S. Dean 85a69d3c06 Eliminate unused variables.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@139 81a1dc3b-b13d-400b-aceb-764788c761c2
2002-08-01 01:01:17 +00:00
Brian S. Dean c7a17e849a Implement a way of tracking how many erase-rewrite cycles a part has
undergone.  This utilizes the last two bytes of EEPROM to maintain a
counter that is incremented each time the part is erased.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@138 81a1dc3b-b13d-400b-aceb-764788c761c2
2002-08-01 01:00:03 +00:00
Brian S. Dean 777d96086a Fix a typo in a comment. Display the size of memory being written.
Display the correct memory name in an error message (previously
hardcoded).


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@137 81a1dc3b-b13d-400b-aceb-764788c761c2
2002-07-27 20:55:01 +00:00
Brian S. Dean dab67ba9c7 Add support for ATtiny15 - contributed by Asher Hoskins
<asher@crumbly.freeserve.co.uk>


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@135 81a1dc3b-b13d-400b-aceb-764788c761c2
2002-06-22 14:03:53 +00:00
Brian S. Dean 547be2d3ea Say what changed.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@133 81a1dc3b-b13d-400b-aceb-764788c761c2
2002-04-23 22:18:06 +00:00
Brian S. Dean 58f44a5a26 Backup the config file to a timestamped name to keep from possibly
overwriting user-modified configs.

Add read/write instructions for all memory types for ATMEGA103,
ATMEGA128, ATMEGA16, and ATMEGA8.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@132 81a1dc3b-b13d-400b-aceb-764788c761c2
2002-04-07 16:03:58 +00:00