Linux and Atmel processors

Some notes about programming ATTiny25 and likes with an Ubuntu system.

USBProg
embedded-projects.net
Open Source soft and hardware, relativly cheap.
lsusb gives:
Bus 001 Device 034: ID 03eb:2104 Atmel Corp. AVR ISP mkII

Programming software - avrdude. use 'man avrdude' to see possible options. In my case an ATTiny25 was used.

programmer
id = "avrispmkII";
desc = "Atmel AVR ISP mkII";
type = stk500v2;
;

partno:
t25 ATtiny25
m168 ATmega168

(see "man avrdude" for more)

This gives the following command:

sudo avrdude -p t25 -P usb -c avrispmkII -v -B 10

-p -partnumber
-P -port
-c -programmer type, my USBProg is set up as a Atmel AVR ISP mkII clone.
-v -versatile
-B -Adjust SCK speed.

Add '-U flash:w:' to program a file, ie:

sudo avrdude -p t25 -P usb -c avrispmkII -v -B 10 -U flash:w:main.hex

Where 'main.hex' is the compiled software.

With AVR ISP mk2 the command looks like this:

avrdude -p t25 -c avrispv2 -P usb -t
avrdude -p t25 -c avrispv2 -P usb -U flash:w:main.hex

Sparkfun's USbtiny clone
(http://www.sparkfun.com/commerce/product_info.php?products_id=9231):
avrdude -p t2313 -c usbtiny -P usb -t
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.01s
avrdude: Device signature = 0x1e910a

Development software - TBA
Avrdude homepage

Info about ATTiny