Commit Graph

1450 Commits

Author SHA1 Message Date
Brian S. Dean bb4a4a889d Add the AVR3 progammer.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@110 81a1dc3b-b13d-400b-aceb-764788c761c2
2001-12-29 21:47:05 +00:00
Brian S. Dean 10b8034ba9 Fix VCC assertion.
Make the BUFF pin a mask like VCC to allow multiple pins to be
asserted at the same time (STK200 has two buffer enable lines).

Add the STK200 programmer.

Fix EEPROM address line selection for several parts.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@109 81a1dc3b-b13d-400b-aceb-764788c761c2
2001-12-29 21:37:20 +00:00
Brian S. Dean 06dd7455b0 fix spelling error
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@107 81a1dc3b-b13d-400b-aceb-764788c761c2
2001-12-15 22:17:46 +00:00
Brian S. Dean bbb20e219c Change "WARNING" to "NOTE" when overwriting the avrprog.conf file.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@106 81a1dc3b-b13d-400b-aceb-764788c761c2
2001-11-24 01:48:59 +00:00
Brian S. Dean 17f82c7f62 Add my e-mail address.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@105 81a1dc3b-b13d-400b-aceb-764788c761c2
2001-11-24 01:47:10 +00:00
Brian S. Dean 27ea11ae30 Add comments about instruction formats. Correct an instruction
specification (cut&paste error).


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@104 81a1dc3b-b13d-400b-aceb-764788c761c2
2001-11-24 01:44:06 +00:00
Brian S. Dean e95114a18d In interactive mode, reset the address and length if we start dumping
a memory type different than the previous one.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@103 81a1dc3b-b13d-400b-aceb-764788c761c2
2001-11-21 18:54:11 +00:00
Brian S. Dean b50ce8fabd Allow instruction data to be specified more flexibly, which can be
used to make the instruction input more readable in the config file.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@102 81a1dc3b-b13d-400b-aceb-764788c761c2
2001-11-21 05:50:59 +00:00
Brian S. Dean 5df3b4188b Bump version number.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@101 81a1dc3b-b13d-400b-aceb-764788c761c2
2001-11-21 02:47:59 +00:00
Brian S. Dean fb233af934 This is a jajor re-write of the programming algorithms. The Atmel
serial programming instructions are not very orthoganal, i.e., the
"read fuse bits" instruction on an ATMega103 is an entirely different
opcode and data format from the _same_ instruction for an ATMega163!
Thus, it becomes impossible to have a single instruction encoding
(varying the data) across the chip lines.

This set of changes allows and requires instruction encodings to be
defined on a per-part basis within the configuration file.  Hopefully
I've defined the encoding scheme in a general enough way so it is
useful in describing the instruction formats for yet-to-be invented
Atmel chips.  I've tried hard to make it match very closely with the
specification in Atmel's data sheets for their parts.  It's a little
more verbose than what I initially hoped for, but I've tried to keep
it as concise as I could, while still remaining reasonably flexible.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@100 81a1dc3b-b13d-400b-aceb-764788c761c2
2001-11-21 02:46:55 +00:00
Brian S. Dean f1af5d3981 Add support for ATMega163.
Add support for reading/writing ATMega163 lock and fuse bits.
Unfortunately, in looking at the specs for other ATMega parts, they
use entirely different instruction formats for these commands.  Thus,
these routines won't work for the ATMega103, for example.

Add support for sending raw command bytes via the interactive terminal
interface.  This allows one to execute any programming instruction on
the target device, whether or not avrprog supports it explicitly or
not.  Thus, one can use this feature to program fuse / lock bits, or
access any other feature of a current or future device that avrprog
does not know how to do.

Add in comments, an experimental instruction format in the
configuration file.  If this works out, it would allow supporting new
parts and non-orthoganal instructions across existing parts without
making avrprog code changes.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@99 81a1dc3b-b13d-400b-aceb-764788c761c2
2001-11-19 17:44:24 +00:00
Brian S. Dean 76fb1330af Add ATMEGA163 part.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@98 81a1dc3b-b13d-400b-aceb-764788c761c2
2001-11-17 20:48:17 +00:00
Brian S. Dean 92835eb7a3 output formatting
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@97 81a1dc3b-b13d-400b-aceb-764788c761c2
2001-11-11 01:58:21 +00:00
Brian S. Dean cad52aae90 Get ppi.h from /usr/include, not /sys.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@96 81a1dc3b-b13d-400b-aceb-764788c761c2
2001-11-05 01:41:08 +00:00
Brian S. Dean b9e5d16c95 Correct version string.
Update read/write status more frequently.
Prefix ATMega parts with an 'm'.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@95 81a1dc3b-b13d-400b-aceb-764788c761c2
2001-10-31 02:18:08 +00:00
Brian S. Dean 5f93c94fbf Change ording for memory display.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@93 81a1dc3b-b13d-400b-aceb-764788c761c2
2001-10-16 23:46:59 +00:00
Brian S. Dean 4aece9605f comment
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@92 81a1dc3b-b13d-400b-aceb-764788c761c2
2001-10-16 23:34:07 +00:00
Brian S. Dean 90d4f82fc9 Fix (again, hopefully) page addressing for the ATMega parts.
Rename the poorly chosen name "bank" to "page" for page addressing.
Atmel calls it "page" in their documentation.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@91 81a1dc3b-b13d-400b-aceb-764788c761c2
2001-10-16 23:32:30 +00:00
Brian S. Dean b1b4ac48d4 Fix an (non)exit.
Silence a couple of compiler warnings.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@89 81a1dc3b-b13d-400b-aceb-764788c761c2
2001-10-16 02:50:27 +00:00
Brian S. Dean c934f8cc7a Fix ATMega flash addressing. Add an ATMEGA16 part. Perform sanity
checking on the memory parameters for parts that do bank addressing.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@88 81a1dc3b-b13d-400b-aceb-764788c761c2
2001-10-16 02:47:55 +00:00
Brian S. Dean 4ccecfdbe6 Add copyright.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@86 81a1dc3b-b13d-400b-aceb-764788c761c2
2001-10-15 02:49:10 +00:00
Brian S. Dean 1c9d418848 Add copyrights.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@85 81a1dc3b-b13d-400b-aceb-764788c761c2
2001-10-15 02:46:59 +00:00
Brian S. Dean daf920d35b Attempt to install avrprog.conf.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@83 81a1dc3b-b13d-400b-aceb-764788c761c2
2001-10-15 00:28:23 +00:00
Brian S. Dean 136651146f Correct dt006 pinout.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@82 81a1dc3b-b13d-400b-aceb-764788c761c2
2001-10-15 00:16:12 +00:00
Brian S. Dean 4298d679ab Try and detect an old-style config file and print an appropriate error
message and a suggestion for correcting it.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@81 81a1dc3b-b13d-400b-aceb-764788c761c2
2001-10-15 00:11:56 +00:00
Brian S. Dean 8350520e26 Update the man page.
Miscellaneous minor cleanups.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@80 81a1dc3b-b13d-400b-aceb-764788c761c2
2001-10-15 00:00:09 +00:00
Brian S. Dean 3d8f8bcd45 Use lex/yacc for parsing the config file. Re-work the config file
format using a more human-readable format.

Read part descriptions from the config file now instead of hard-coding
them.

Update usage().

Cleanup unused code.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@79 81a1dc3b-b13d-400b-aceb-764788c761c2
2001-10-14 23:17:26 +00:00
Brian S. Dean 3bae0d8d14 First cut at supporting the ATmega 103 which uses bank addressing and
has a 128K flash.

Due to the bank addressing required, interactive update of the flash
is not supported, though the eeprom can be updated interactively.
Both memories can be programmed via non-interactive mode.

Intel Hex Record type '04' is now generated as required for outputing
memory contents that go beyond 64K.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@78 81a1dc3b-b13d-400b-aceb-764788c761c2
2001-10-14 02:53:21 +00:00
Brian S. Dean f73b0f9eba Style fixes.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@77 81a1dc3b-b13d-400b-aceb-764788c761c2
2001-10-13 03:13:13 +00:00
Brian S. Dean 42a81370c7 Commit changes in preparation for support the ATMega line.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@76 81a1dc3b-b13d-400b-aceb-764788c761c2
2001-10-13 03:12:52 +00:00
Brian S. Dean 0e18e555ed Don't override CFLAGS.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@74 81a1dc3b-b13d-400b-aceb-764788c761c2
2001-10-01 16:58:03 +00:00
Brian S. Dean c4cb11e9c8 Correct default pin assignment.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@73 81a1dc3b-b13d-400b-aceb-764788c761c2
2001-10-01 14:16:41 +00:00
Brian S. Dean 88b4c8c41f Remove debugging code - it served its purpose.
Update copyrights.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@72 81a1dc3b-b13d-400b-aceb-764788c761c2
2001-10-01 14:04:46 +00:00
Brian S. Dean 88dafc434d Be sure to read the exit specs after the pin configuration has been
assigned, otherwise, we may apply the exit specs to the wrong pins.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@71 81a1dc3b-b13d-400b-aceb-764788c761c2
2001-09-21 03:27:20 +00:00
Brian S. Dean 1b99818a03 debugging
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@70 81a1dc3b-b13d-400b-aceb-764788c761c2
2001-09-21 02:57:58 +00:00
Brian S. Dean 3cdf00c76c Prefix pin config entries in the config file with a "c:". Later, I
might make part descriptions read in this way and we can use a
different letter for those (p).  This will make the parsing easier to
distinguish between the entry types.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@69 81a1dc3b-b13d-400b-aceb-764788c761c2
2001-09-20 03:19:31 +00:00
Brian S. Dean 0b7551c3df Initialize pin configuration description.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@68 81a1dc3b-b13d-400b-aceb-764788c761c2
2001-09-20 00:43:08 +00:00
Brian S. Dean 9003ed1183 Make the pin definitions configurable based on entries in a config
file.  This makes supporting other programmers much easier.

Rename AVRprog.pdf to avrprog.pdf.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@67 81a1dc3b-b13d-400b-aceb-764788c761c2
2001-09-19 17:04:25 +00:00
Brian S. Dean 2c603dd52c Remove this image file from the repository.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@66 81a1dc3b-b13d-400b-aceb-764788c761c2
2001-04-29 14:23:20 +00:00
Brian S. Dean fdab1bd5e6 Remove this image, use AVRprog.pdf as the preferred schematic for the
programmer.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@65 81a1dc3b-b13d-400b-aceb-764788c761c2
2001-04-26 00:51:06 +00:00
Brian S. Dean 995c6154a8 Add a schematic provided by Joerg Wunch and also update the manual
page (also updated by Joerg) to reference the schematic.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@63 81a1dc3b-b13d-400b-aceb-764788c761c2
2001-04-25 22:35:14 +00:00
Brian S. Dean e026cf022b Automate dependency generation.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@62 81a1dc3b-b13d-400b-aceb-764788c761c2
2001-02-25 17:39:58 +00:00
Brian S. Dean f17016a7b8 Turn off ready led when finished programming.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@61 81a1dc3b-b13d-400b-aceb-764788c761c2
2001-02-08 01:42:09 +00:00
Brian S. Dean 272c5ac849 update version
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@60 81a1dc3b-b13d-400b-aceb-764788c761c2
2001-02-08 01:22:18 +00:00
Brian S. Dean ae3abef4a0 Correct a few comments.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@59 81a1dc3b-b13d-400b-aceb-764788c761c2
2001-02-08 01:08:30 +00:00
Brian S. Dean fe0f2dca65 Makefile : update dependencies
avr.c : correct status led updates

term.c : update status leds on write, make the address and length
         arguments for dump optional.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@58 81a1dc3b-b13d-400b-aceb-764788c761c2
2001-02-08 01:05:05 +00:00
Brian S. Dean aed00dfd26 Version 1.1
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@57 81a1dc3b-b13d-400b-aceb-764788c761c2
2001-01-26 21:18:40 +00:00
Brian S. Dean 7a09e06e17 Hmmm ... cvs co -D <timestamp> does not work. Change the revision
timestamp to a full date/time value.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@56 81a1dc3b-b13d-400b-aceb-764788c761c2
2001-01-26 20:45:05 +00:00
Brian S. Dean 26223415e6 Add a -V option to display the version information about each
component module.  This is intended for support purposes, so that I
can tell unambiguously what version a binary out in the field is.

Additionally, display a revision timestamp along with the version
number.  This also is intended for aiding in support and is the Unix
time of the latest component module.  Having this, should allow me to
do a "cvs co -D timestamp avrprog" and get exactly the source of the
version that is being reported.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@55 81a1dc3b-b13d-400b-aceb-764788c761c2
2001-01-26 20:34:08 +00:00
Brian S. Dean 34faf25814 Return the maximum address (+1) written as opposed to the actual number of
bytes written.  The presence of an Intel Hex address record can cause
these two number to be different; but the callers of this routine need
the former.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@54 81a1dc3b-b13d-400b-aceb-764788c761c2
2001-01-26 17:47:33 +00:00