Can't alter fuses on attiny but can flash firmware?

USB AVR Programmer and SPI interface. Adafruit's USBtinyISP.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
go48builds
 
Posts: 1
Joined: Thu Oct 22, 2015 11:26 am

Can't alter fuses on attiny but can flash firmware?

Post by go48builds »

I followed some tutorials but got stuck on this. I need to change the fuses of my Attiny85, I am using AVRdude in cmd.
When I use this command:
Avrdude -c usbtiny -p attiny85 -U lfuse:w:0xe2:m -U hfuse:w:0xdf:m -U efuse:w:0xff:m

it says "Avrdude: Error: Could not find USBtiny device (0x1781/0xc9f)"

But when I type this command
avrdude -c avrisp -p attiny85 -P com3 -b 19200 -U flash:w:C://tvbgone.hex:i

it works, and flashes like normal. My guess is that it's because of the "com3" part of the code, I tried to alter the fuse code aswell, but I don't know how the syntax for these codes works and what I tried failed. So could anybody help me out here? :p

User avatar
musher
 
Posts: 5
Joined: Fri Jan 14, 2011 11:17 am

Re: Can't alter fuses on attiny but can flash firmware?

Post by musher »

Avrdude -c usbtiny -p attiny85 -U lfuse:w:0xe2:m -U hfuse:w:0xdf:m -U efuse:w:0xff:m

should be

avrdude -c avrisp -p attiny85 -P com3 -b 19200 -U lfuse:w:0xe2:m -U hfuse:w:0xdf:m -U efuse:w:0xff:m


The difference is the programmer.

Locked
Please be positive and constructive with your questions and comments.

Return to “USBtinyISP”