ATtiny programming using Eclipse with USBtiny

6. Februar 2015 at 22:09
Print Friendly, PDF & Email

Eclipse is a great environment for creating arduino programs .

The cool plugin from Jan Baeyens http://www.baeyens.it/eclipse/ is almost perfect.

If you are using a external programer like the USBtiny, you cannot directly upload the hex file.

The solution is to create an external tool configuration.

eclipse-ext-1

 

The setup will prompt for a file and call avrdude with the defined parameters.

eclipse-ext-2

-v -C C:\arduino\arduino-1.5.2/hardware/tools/avr/etc/avrdude.conf -p attiny85  -c usbtiny  -P usb -U flash:w:${file_prompt}:i

 

You want to select the second option, otherwise all projects will be build.

eclipse-ext-3

 

The upload can be started with the entry you have just created:

eclipse-ext-4

 

Now you can select the hex file:

eclipse-ext-5

 

Finally avrdude is uploading to the ATtiny attached to the programmer.

eclipse-ext-6

 

ATtiny85 using ArduinoISP

-v -C C:\arduino\arduino-1.5.2/hardware/tools/avr/etc/avrdude.conf -p attiny85  -c stk500v1 -P COM7 -b 19200 -U flash:w:${file_prompt}:i

 

ATtiny85 using USBTiny but no prompt

You need to select the project first.

-v -C C:\arduino\arduino-1.5.2/hardware/tools/avr/etc/avrdude.conf -p attiny85  -c usbtiny  -P usb -U flash:w:${container_loc}\Release${project_path}.hex:i

Burn fuses of ATtiny85 using USBTiny

http://www.engbedded.com/fusecalc

Burn Fuses for ATtiny85 – 8Mhz

-U lfuse:w:0xe2:m -U hfuse:w:0xdf:m -U efuse:w:0xff:m

-C C:\arduino\arduino-1.5.2/hardware/tools/avr/etc/avrdude.conf -p attiny85  -c usbtiny  -U lfuse:w:0xe2:m -U hfuse:w:0xdf:m -U efuse:w:0xff:m

 

Burn Fuses for ATtiny85 – 1Mhz = 8MHz / 8

-U lfuse:w:0x62:m -U hfuse:w:0xdf:m -U efuse:w:0xff:m

-C C:\arduino\arduino-1.5.2/hardware/tools/avr/etc/avrdude.conf -p attiny85  -c usbtiny  -U lfuse:w:0x62:m -U hfuse:w:0xdf:m -U  efuse:w:0xff:m

 

Pro Mini – MEGA328P using USBTiny

-U lfuse:w:0x62:m -U hfuse:w:0xdf:m -U efuse:w:0xff:m

-v -C C:\arduino\arduino-1.5.2/hardware/tools/avr/etc/avrdude.conf -p atmega328p -c usbtiny  -P usb -U flash:w:${container_loc}\Release${project_path}.hex:i