This is the manual page for LoadAVR version 0.01.
Please also see the project page at
LoadAVR - Program AVR microcontrollers.
loadavr [-ehms] [-pfPF file]
LoadAVR programs the AVR series of microcontrollers using the serial SPI bus. (which is just about all of them) Including support for reading the program/flash, eeprom, signature bytes and lock bits, and writing to the program/flash, eeprom and lock bits. The fuse bits are not accessible using the serial interface.
If the file named is ``-'', I/O is diverted to STDIN or STDOUT as appropriate. All user messages are printed on STDERR. This facilitates flexible use of LoadAVR in pipes etc.
LoadAVR will only program the flash up to the end of your input file and leave the rest as blanks, this saves time as the flash is erased beforehand anyway. The eeprom however will be filled with 0xff after the input file ends to eliminate any old data, as the eeprom may not have been erased before programing. This is generally claimed to be a feature.
Due to the access to the hardware required LoadAVR must be run as root (though not if you only want the help). I do not recommend making LoadAVR setUID root as this would be a security hazard. However if the machine is not networked, it would be handy.
LoadAVR can program any AVR micro using the SPI bus, ie just about all of them. Including the 8 pin, 20 pin, 28 pin and the 40 pin flavors. Please look in the config section for more info. LoadAVR uses 4 pins plus ground pins on the standard PC parallel port. By default these are:
SPI bus names Description Parallel port
!RESET chip reset pin pin 4 SCK serial clock in pin 5 MISO data out (from avr) pin 11 MOSI data in (to avr) pin 2 GND 0 volts pins 18-25
VCC +5 volts (optional) pin 6 perhaps?
The parallel port pins can be easily changed to suit your hardware in the configuration box. Be careful when allocating pins though, some parallel port pins are only input or only output, eg if you try to assert a value on a pin that is only input, absolutely nothing will happen. If you are trying to match a bought or kit programing board documented pinouts, you should be right.
The default settings suit the DT006 programing board from www.dontronics.com.au.
WARNING you can damage your parallel port easily with any home made electronics so if you don't know for absolutely certain, you should buy a programmer or kit.
The first part of the loadavr file contains the config box. Each part is well documented just above the relevant statement. You should make a backup of the file before changing it, else if you stuff it you will have to download it again. Things that can be changed include:
LoadAVR version .01 released 11th of July 2001.
Please go to http://sourceforge.net/projects/loadavr/ to report bugs and/or request features. Please let me know when it goes well too. :)
Nathan Dunn <digrizrat@sourceforge.net>.