📄 changelog-2001
字号:
only guess as whether this is toggling them on and off correctly. Also, enable and disable the optional 74367 buffer. * avr.h, main.c, ppi.c, ppi.h, avr.c: Rearrange the pinout for the programmer to be a little more logical. 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.2001-01-22 Brian S. Dean <bsd@bsdhome.com> * Makefile: Don't gzip the man page. * avrdude.1: .Nm macro fix. Submitted by Joerg. * main.c: Cosmetic, don't output a preceding linefeed for usage(). * Makefile, avr.c, avr.h, fileio.c, term.c: Makefile : use gzip -f for man page installation so that we don't get 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.2001-01-20 Brian S. Dean <bsd@bsdhome.com> * avr.c, avr.h, fileio.c, fileio.h, main.c: Return error codes instead of exiting, thus making sure that we exit 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. * fileio.c: Correct checksum calculation; failure to account for the value of the record type was causing non-zero record types to be calculated incorrectly. * Makefile, main.c: Makefile : install the man page main.c : drop the giant usage text now that we have a man page. * avrdude.1: Add initial man page graciously contributed by Joerg Wunsch. Thanks Joerg!2001-01-19 Brian S. Dean <bsd@bsdhome.com> * term.c: Accept abbreviations for eeprom and flash for the dump and write commands. Fix small bug keeping 1 character command lines from being added to the history. * term.c: Implement enough state in cmd_dump so that if it is called with no arguments, it successively dumps the next chunk of data of the same previously specified length. * term.c, term.h, fileio.c, fileio.h, main.c, ppi.c, ppi.h: * Makefile, avr.c, avr.h, avrprog.c: The program was getting too large for a single file. Split it up into more modular pieces. Also, accept command abbreviations as long as they are not ambiguous. * avrprog.c: Add ability to specify the state of the power and reset pins on program exit. Default to leaving the pins in the state they were when we found them. Contributed by: Joerg Wunsch2001-01-18 Brian S. Dean <bsd@bsdhome.com> * Makefile, avrprog.c: Switch to using readline() for getting terminal input. I can't seem 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. * Usage, avrprog.c: 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.2001-01-15 Brian S. Dean <bsd@bsdhome.com> * avrprog.c: Automatically verify on-chip data with what we just programmed. * avrprog.c, Makefile: Prepare the Makefile for integration into the FreeBSD ports tree. Fix a few "may be used uninitialized" bugs found by -Wall.2001-01-14 Brian S. Dean <bsd@bsdhome.com> * avrprog.c: Free a buffer. * avrprog.c: 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. * avrprog.c: Add the "dump" and "write" interactive commands. * avrprog.c: Correctly produce and handle "end of record" for intel hex files.2001-01-13 Brian S. Dean <bsd@bsdhome.com> * avrprog.c: 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. * avrprog.c: Add a newline before exiting due to command line errors. Perform a bit more option compatibility testing between -c, -i, and -o. * avrprog.c: Add input file format auto-detection support. * Usage, avrprog.c: Say what the defaults are. * avrprog-programmer.jpg, Usage, avrprog-schematic.jpg: New files. * avrprog.c: Correct usage text. * avrprog.c: 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. * avrprog.c: Fix filename assignment error. Clean up debugging code a little, utilize fileio() instead of making direct calls to b2ihex(). * avrprog.c: 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.2000-12-31 Brian S. Dean <bsd@bsdhome.com> * avrprog.c: Update a comment. * avrprog.c: 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. * avrprog.c: Correct pin connection comments. Elaborate a bit on Vcc connection. * avrprog.c: Update after receiving some good feedback from Joerg Wunsch. We should now be able to program AT90S1200's.2000-12-30 Brian S. Dean <bsd@bsdhome.com> * avrprog.c: Don't limit eeprom addresses.2000-12-20 Brian S. Dean <bsd@bsdhome.com> * Makefile, avrprog.c: Add support for the 8515. Make the addition for other devices easier.2000-08-27 Brian S. Dean <bsd@bsdhome.com> * avrprog.c: Clear all bits except AVR_RESET when finished reading or programming the Atmel device.2000-08-07 Brian S. Dean <bsd@bsdhome.com> * avrprog.c: update announcement message * avrprog.c: Update announcement message. * avrprog.c: Return the correct return code from 'main()'. * avrprog.c: 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()'.2000-08-06 Brian S. Dean <bsd@bsdhome.com> * Makefile, avrprog.c: 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. * avrprog.c: Print out version information when invoked. * Makefile, avrprog.c: 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.2000-08-05 Brian S. Dean <bsd@bsdhome.com> * avrprog.c: Pring usage when no arguments are supplied. * Makefile, avrprog.c: Initial check-in * Makefile, avrprog.c: New file.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -