Society of Robots - Robot Forum

Software => Software => Topic started by: galannthegreat on October 03, 2009, 12:25:07 AM

Title: Can someone help me get my USBtiny ISP working?
Post by: galannthegreat on October 03, 2009, 12:25:07 AM
I am having a vugger of a time trying to get my USBtiny ISP to even be recognized by AVR Studio 4. I've followed the directions that ladyada set out, but to no avail. Is there a simple method in getting this thing to work with AVR Studio?
Title: Re: Can someone help me get my USBtiny ISP working?
Post by: chelmi on October 03, 2009, 08:57:09 AM
I don't know about avrstudio, but mine works like a charm with avrdude.
Maybe you could try it with avrdude to see if it's a hardware issue or not.
And you will get better support on the adafruit forum http://forums.adafruit.com/ (http://forums.adafruit.com/)
Title: Re: Can someone help me get my USBtiny ISP working?
Post by: galannthegreat on October 03, 2009, 02:30:40 PM
Thanks for the suggestion chelmi. I'll probably get AVRdude and a cheat sheet to with.
Title: Re: Can someone help me get my USBtiny ISP working?
Post by: galannthegreat on October 03, 2009, 03:59:35 PM
So... I've got AVRdude and I have an idea on how it works, but how do I burn the code onto the chip? What command needs to be entered to do so? How do I specify where the file is located?
Title: Re: Can someone help me get my USBtiny ISP working?
Post by: chelmi on October 03, 2009, 07:08:12 PM
Did you look around before asking?

The actual manual of the USBtinyISP has a section about AVRdude, sparkfun has a tutorial about using avrdure and there is hundreds of other places where this is explained...

http://www.ladyada.net/make/usbtinyisp/avrdude.html (http://www.ladyada.net/make/usbtinyisp/avrdude.html)

you're welcome ;)

Chelmi.
Title: Re: Can someone help me get my USBtiny ISP working?
Post by: galannthegreat on October 03, 2009, 11:06:40 PM
Thanks, but I do have all that working but the only problem I have is it just says "intialization failed rc=-1".

I think it may have something to do with the fact that it says that the device signature is invalid. Here is what it spits out when I have the programmer and the chip connected:

Code: [Select]
avrdude -c usbtiny -p m8 -U flash:w:Photovore_v1.hex:i -F

avrdude: initialization failed, rc=-1
avrdude: AVR device initialized and ready to accept instructions
avrdude: Device signature = 0x000000
avrdude: Yikes! Invalid device signature.
avrdude: Expected signature for ATMEGA8 is 1E 93 07
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed

I know that the programmer is connecting because when I hit enter after the command the red LED blinks, and when there is no programmer it notices that nothing is connected. What could be going wrong? (See being that you have this programmer working) What did you do to make it work?
Title: Re: Can someone help me get my USBtiny ISP working?
Post by: chelmi on October 05, 2009, 09:05:33 AM
http://forums.adafruit.com/viewforum.php?f=20 (http://forums.adafruit.com/viewforum.php?f=20)
Title: Re: Can someone help me get my USBtiny ISP working?
Post by: galannthegreat on October 05, 2009, 11:06:25 AM
Thanks chelmi... I actually solved my problem, it was kind of in the wiring... lets just say something was backwards, thanks for your interest in helping me. :)
Title: Re: Can someone help me get my USBtiny ISP working?
Post by: chelmi on October 05, 2009, 11:49:12 AM
no problem. According to ladyada the number one cause of problem with programmers is wiring ;)

Chelmi.
Title: Re: Can someone help me get my USBtiny ISP working?
Post by: galannthegreat on October 05, 2009, 12:14:48 PM
Yep, 99% apparently... ie. 100% operator error lol.