Arduino Forum

Using Arduino => Installation & Troubleshooting => Topic started by: fifteen54 on Feb 20, 2011, 09:52 am

Title: USBtinyISP and issues...
Post by: fifteen54 on Feb 20, 2011, 09:52 am
I have an Arduino Uno as well as several freeduino boards and some EMSL Atmegaxx8 target boards. I was trying to take the leap from Arduino to AVR programming, and I decided to start flashing sketches directly to my Arduino. I edited the preferences.txt file to use the usbtinyisp and followed directions and when I try to upload a sketch I the get error:

Quote
USB write error: expected 128, got -1
avrdude: verification error, first mismatch at byte 0x00ef
         0x92 != 0xa9
avrdude: verification error; content mismatch


After I searched for solutions for hours and decided I wasn't ready for the head ache of setting up development outside of Arduino yet and tried to burn the bootloader back I got the same error.

Just to be sure that It wasn't my Uno I tried my other barebones card and the same issues arises...

Incidentally AVRDUDE registers fine and will erase the chips, I just dont have any .hex files to try and upload and as said before developing outside of the Arduino IDE seems nightmarish...
Title: Re: USBtinyISP and issues...
Post by: mrtaylor on Feb 20, 2011, 10:58 am
Quote
I just dont have any .hex files

Hold the shift key down and verify (not upload) a sketch and it shows where is hex file is. At least in Ubuntu.
Title: Re: USBtinyISP and issues...
Post by: fifteen54 on Feb 20, 2011, 11:17 pm
Thanks I found where Arduino stores compiled code however, I still get the same error when I use AVRDUDE directly...
Title: Re: USBtinyISP and issues...
Post by: mrtaylor on Feb 21, 2011, 01:42 am
What operation system are you running?
Title: Re: USBtinyISP and issues...
Post by: fifteen54 on Feb 21, 2011, 02:34 am
OSX 10.6.3
Title: Re: USBtinyISP and issues...
Post by: mellis on Feb 21, 2011, 03:19 pm
I've seen errors like this before with the USBtiny but never figured out what caused them.  I would ask on the adafruit forum, they're usually great about providing support.