Commit Graph

283 Commits

Author SHA1 Message Date
Brian S. Dean f5aea67633 Change -c (interactive command mode) to the more intuitive -t
(terminal mode).

Make binary format the default for output.

Update the parts table with corrections for old values and add some
new values.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@35 81a1dc3b-b13d-400b-aceb-764788c761c2
2001-01-18 02:35:41 +00:00
Brian S. Dean 898d3ef213 Automatically verify on-chip data with what we just programmed.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@34 81a1dc3b-b13d-400b-aceb-764788c761c2
2001-01-15 04:18:39 +00:00
Brian S. Dean 15af3fdede Prepare the Makefile for integration into the FreeBSD ports tree.
Fix a few "may be used uninitialized" bugs found by -Wall.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@33 81a1dc3b-b13d-400b-aceb-764788c761c2
2001-01-15 02:28:46 +00:00
Brian S. Dean 47dd9bfd18 Free a buffer.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@32 81a1dc3b-b13d-400b-aceb-764788c761c2
2001-01-14 21:43:14 +00:00
Brian S. Dean 96b7d82eb2 Use a smarter programming algorithm - read the existing data byte
first and only write the new one if it is different.

Add -n option which is a test mode in which the chip is not actually
updated.  This option does not affect writes in interactive mode.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@31 81a1dc3b-b13d-400b-aceb-764788c761c2
2001-01-14 21:32:36 +00:00
Brian S. Dean 96fbb1b2de Add the "dump" and "write" interactive commands.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@30 81a1dc3b-b13d-400b-aceb-764788c761c2
2001-01-14 21:11:18 +00:00
Brian S. Dean 87cc83070f Correctly produce and handle "end of record" for intel hex files.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@29 81a1dc3b-b13d-400b-aceb-764788c761c2
2001-01-14 01:55:08 +00:00
Brian S. Dean f6016de46c Re-enable writing to the chip. I should probably should make this a
command-line selectable option so that I don't keep forgetting and
committing it with it disabled.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@28 81a1dc3b-b13d-400b-aceb-764788c761c2
2001-01-13 22:11:26 +00:00
Brian S. Dean a0adf5cd4f Add a newline before exiting due to command line errors. Perform a
bit more option compatibility testing between -c, -i, and -o.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@27 81a1dc3b-b13d-400b-aceb-764788c761c2
2001-01-13 21:58:46 +00:00
Brian S. Dean 1729c5ab2f Add input file format auto-detection support.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@26 81a1dc3b-b13d-400b-aceb-764788c761c2
2001-01-13 21:48:10 +00:00
Brian S. Dean c2916f0d76 Say what the defaults are.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@25 81a1dc3b-b13d-400b-aceb-764788c761c2
2001-01-13 21:04:44 +00:00
Brian S. Dean 75042b07ee New files.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@24 81a1dc3b-b13d-400b-aceb-764788c761c2
2001-01-13 20:51:04 +00:00
Brian S. Dean d6de99f17e Correct usage text.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@23 81a1dc3b-b13d-400b-aceb-764788c761c2
2001-01-13 20:50:03 +00:00
Brian S. Dean 7981bad682 Parameterize a few additional items per chip. Print out all per-chip
parameters on startup.  Use the per-chip parameters in the code
instead of hard-coded values for the 2313.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@22 81a1dc3b-b13d-400b-aceb-764788c761c2
2001-01-13 20:46:25 +00:00
Brian S. Dean e28189e50c Fix filename assignment error.
Clean up debugging code a little, utilize fileio() instead of making
direct calls to b2ihex().


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@21 81a1dc3b-b13d-400b-aceb-764788c761c2
2001-01-13 20:12:08 +00:00
Brian S. Dean 8d38ffbd4a A lot of general code cleanup.
Re-work command line options to be more intuitive.

Support Intel Hex input and output file formats.  Provide hooks to
support Motorola S-Record as well.

Add a few more part-specific parameters to the avrpart structure.

Only write the flash or eeprom if the data to be written is not 0xff.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@20 81a1dc3b-b13d-400b-aceb-764788c761c2
2001-01-13 20:00:17 +00:00
Brian S. Dean 801242dba7 Update a comment.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@19 81a1dc3b-b13d-400b-aceb-764788c761c2
2000-12-31 18:45:53 +00:00
Brian S. Dean a7b078354a Provide the ability to tie additionally tie pins 6-9 of the parallel
port to Vcc in order to supply more current.

Fix a typo on the size of the S1200's Flash.

Bring RESET low when programming is completed.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@18 81a1dc3b-b13d-400b-aceb-764788c761c2
2000-12-31 18:42:42 +00:00
Brian S. Dean 9e65914d36 Correct pin connection comments. Elaborate a bit on Vcc connection.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@17 81a1dc3b-b13d-400b-aceb-764788c761c2
2000-12-31 02:35:34 +00:00
Brian S. Dean 019b9583c0 Update after receiving some good feedback from Joerg Wunsch. We
should now be able to program AT90S1200's.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@16 81a1dc3b-b13d-400b-aceb-764788c761c2
2000-12-31 02:24:50 +00:00
Brian S. Dean accb2e63b2 Don't limit eeprom addresses.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@15 81a1dc3b-b13d-400b-aceb-764788c761c2
2000-12-30 16:45:50 +00:00
Brian S. Dean bb4c63cdcc Add support for the 8515. Make the addition for other devices easier.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@14 81a1dc3b-b13d-400b-aceb-764788c761c2
2000-12-20 02:26:31 +00:00
Brian S. Dean 07a4b587b7 Clear all bits except AVR_RESET when finished reading or programming
the Atmel device.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@13 81a1dc3b-b13d-400b-aceb-764788c761c2
2000-08-27 16:45:17 +00:00
Brian S. Dean fcec1e3543 update announcement message
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@12 81a1dc3b-b13d-400b-aceb-764788c761c2
2000-08-07 02:00:39 +00:00
Brian S. Dean f468d4f4cc Update announcement message.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@11 81a1dc3b-b13d-400b-aceb-764788c761c2
2000-08-07 01:59:32 +00:00
Brian S. Dean 486e0fd2af Return the correct return code from 'main()'.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@10 81a1dc3b-b13d-400b-aceb-764788c761c2
2000-08-07 01:50:37 +00:00
Brian S. Dean dae1a56af6 Add ppi_pulse() function and fix ppi_toggle() to actully toggle
instead of pulse.

Make all abnormal returns after the parallel port has been opened go
through a single exit point at the bottom of 'main()'.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@9 81a1dc3b-b13d-400b-aceb-764788c761c2
2000-08-07 01:48:53 +00:00
Brian S. Dean dedd92130c Makefile: add --pedantic compiler option
avrprog.c:

	Add lots of comments, move getop() variable declarations to
	the top of the program.

	Add a typedef name to the AVR memory type and use it for
	function declarations.

	Add a usleep() delay in the sense loop to avoid becoming a cpu
	hog.

	Print out a version string so that folks know what version of
	the software they are running.

	Be sure and close the parallel device and the i/o file when
	terminating abnormally.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@8 81a1dc3b-b13d-400b-aceb-764788c761c2
2000-08-06 19:47:03 +00:00
Brian S. Dean 945ceb7ab9 Print out version information when invoked.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@7 81a1dc3b-b13d-400b-aceb-764788c761c2
2000-08-06 18:51:32 +00:00
Brian S. Dean 886b7d0839 Makefile: Add an install target.
avrprog.c:

  Add license.

  Document the header a bit better.

  Add capability to read out and display the device signature bytes.

  Add capability to power the device from the parallel port.

  Eliminate debug print facility.

  Provide 'avr_cmd()' function.

  When memory locations don't program, generate a newline so that the
  information is not overwritten and lost.

  Don't print out the message about needing to specify a file if the
  user is not requesting an operation that requires the file.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@6 81a1dc3b-b13d-400b-aceb-764788c761c2
2000-08-06 03:53:06 +00:00
Brian S. Dean a46085d055 Pring usage when no arguments are supplied.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@5 81a1dc3b-b13d-400b-aceb-764788c761c2
2000-08-05 05:14:17 +00:00
Brian S. Dean 6c5355c8ce This commit was generated by cvs2svn to compensate for changes in r2,
which included commits to RCS files with non-trunk default branches.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@3 81a1dc3b-b13d-400b-aceb-764788c761c2
2000-08-05 05:12:50 +00:00
Joerg Wunsch 92a1c4bb52 New repository initialized by cvs2svn.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@1 81a1dc3b-b13d-400b-aceb-764788c761c2
2000-08-05 05:12:50 +00:00