using_avrprog3avr
Using the avrdude program note avrdude is a program that is used to update or read the flash and eeprom memories of atmel avr microcontrollers on freebsd unix. it supports the atmel serial programming protocol using the pc's parallel port and can upload either a raw binary file or an intel hex format file. it can also be used in an interactive mode to individually update eeprom cells, fuse bits, and/or lock bits (if their access is supported by the atmel serial programming protocol.) the main flash instruction memory of the avr can also be programmed in interactive mode, however this is not very useful because one can only turn bits off. the only way to turn flash bits on is to erase the entire memory (using avrdude's -e option). avrdude is part of the freebsd ports system. to install it, simply do the following: once installed, avrdude can program processors using the contents of the .hex file specified on the command line. in this example, the file main.hex is burned into the flash memory: the -p 2313 option lets avrdude know that we are operating on an at90s2313 chip. this option specifies the device id and is matched up with the device of the same id in avrdude's configuration file ( /usr/local/etc/avrdude.conf ). to list valid parts, specify the -v option. the -e option instructs avrdude to perform a chip-erase before programming; this is almost always necessary before programming the flash. the -m flash option indicates that we want to upload data into the flash memory, while -i main.hex specifies the name of the input file. the eeprom is uploaded in the same way, the only difference is that you would use -m eeprom instead of -m flash. to use interactive mode, use the -t option:
Releases
6 releases since Debian 8 (Jessie); the text changed 5 times.