An AVR programmer based on LittleWire

Recently I’ve built a small clone of LittleWire Attiny85 based AVR programmer.

A few notes to make it work with my toolchain follows:

Avoid permission errors on Ubuntu 12.10

Due to permissions on USB you can get the following error:

usbtiny_transmit: error sending control message: Operation not permitted

to fix it:

$ cat  /etc/udev/rules.d/10-usbtinyisp.rules
# USBTiny
ATTR{idVendor}=="1781", ATTR{idProduct}=="0c9f", GROUP="plugdev", MODE="0666"
$ sudo restart udev

unplug and plug the programmer to see the changes.

Burn a bootloader on a factory new Atmega 328P-PU

avrdude -b 19200 -c usbtiny -p m328p -v -e -U efuse:w:0x05:m -U hfuse:w:0xD6:m -U lfuse:w:0xFF:m
avrdude -b 19200 -c usbtiny -p m328p -v -e -U flash:w:optiboot_atmega328.hex -U lock:w:0x0F:m


It's only fair to share...Tweet about this on TwitterShare on FacebookShare on LinkedInPin on PinterestShare on RedditShare on Google+

4 Responses to “DIY AVR programmer notes”