Provide hooks to support a buffered programmer, pin 6 is now used to
enable a buffer that can be used to isolate the target system from the
parallel port pins. This is important when programming the target
in-system.
Totally change the way the pin definitions are defined. Actually
set/clear pins based on the way more intuitive pin number, instead of
PPI data register, bit number combination. A table of pin data is
used so that any hardware inversion done by the parallel port is
accounted for, what you set is actually what appears at the pin.
Retain the old method for handling Vcc, however, because the hold
method is much easier to use when setting / retrieving multiple pins
simultaneously.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@49 81a1dc3b-b13d-400b-aceb-764788c761c2
prompted.
avr.c avr.h fileio.c term.c :
Change the avrpart data structure so that the typedef AVRMEM is
used as an index into an array for the sizes of the memory types
and also for pointers to buffers that represent the chip data for
that memory type. This removes a lot of conditional code of the
form:
switch (memtype) {
case AVR_FLASH :
...
}
Also, re-code avr_read_byte() and avr_write_byte() to properly
handle the flash memory type without having to tell them whether
they should program the high byte or the low byte - figure that
out from the address itself. For flash memory type, these
routines now take the actual byte address instead of the word
address. This _greatly_ simplifies many otherwise simple
operations, such a reading or writing a range of memory, by not
having to worry about whether the address starts on an odd byte
or an even byte.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@45 81a1dc3b-b13d-400b-aceb-764788c761c2
only via main() so that the exitspecs are properly applied.
When reading input data from a file, remember how many bytes were read
and write and verify only that many bytes.
Don't complain when an input file size is smaller than the memory size
we are programming. This is normal.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@44 81a1dc3b-b13d-400b-aceb-764788c761c2
record type was causing non-zero record types to be calculated
incorrectly.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@43 81a1dc3b-b13d-400b-aceb-764788c761c2
main.c : drop the giant usage text now that we have a man page.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@42 81a1dc3b-b13d-400b-aceb-764788c761c2
commands.
Fix small bug keeping 1 character command lines from being added to
the history.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@40 81a1dc3b-b13d-400b-aceb-764788c761c2
arguments, it successively dumps the next chunk of data of the same
previously specified length.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@39 81a1dc3b-b13d-400b-aceb-764788c761c2
more modular pieces.
Also, accept command abbreviations as long as they are not ambiguous.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@38 81a1dc3b-b13d-400b-aceb-764788c761c2
program exit. Default to leaving the pins in the state they were when
we found them.
Contributed by: Joerg Wunsch
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@37 81a1dc3b-b13d-400b-aceb-764788c761c2
to get the history capabilities working yet, but even so, it does
better handling of the prompt and strips newlines for us, so it's
still a win.
Add a few new commands for terminal mode: help, sig, part, erase.
Display rudimentory help using the help command.
Add some function prototypes.
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@36 81a1dc3b-b13d-400b-aceb-764788c761c2
(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
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
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
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
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
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
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
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
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
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
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
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
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