I've been trying to get into AVR programming for a while, but haven't managed to even detect a single chip despite trying with Sparkfun's AVR Programmer and the USBtinyISP. I keep getting the same "Initialization failed, rc=-1" in AVRDUDE that everyone else seems to get, but have checked my connections and they seem fine. I'm specifically trying to program an ATMega8 using the following schematic on a prototype board:
Here are the best pics I could get of the USBtinyISP with my phone's camera:
Edit: Oh, and I am using Windows 7 64-bit...
USBtinyISP not finding target
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: USBtinyISP not finding target
I think you need a clock on your target chip. Hook up a crystal and see if that helps.
-
- Posts: 10
- Joined: Fri Mar 15, 2013 2:25 pm
Re: USBtinyISP not finding target
I put a 16Mhz crystal bridging PB6 and PB7, followed by a 22pf capacitor on both lines going to GND, but still have the exact same issues If my placement is incorrect, could you let me know where to hook up the crystal?
I want to be able to program, but is beginning to get annoying...
I want to be able to program, but is beginning to get annoying...
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: USBtinyISP not finding target
That's the right place for the crystal. I just checked the datasheet, and it says that the part ships with the fuses set for the internal RC oscillator, so if this is a fresh chip, you shouldn't need the crystal anyway.
I don't know why it's not working. Maybe it's your breadboard? Sometimes, they have flaky sockets. Try moving it to another area. Are you sure you're getting 5V to Vcc and RST?
I don't know why it's not working. Maybe it's your breadboard? Sometimes, they have flaky sockets. Try moving it to another area. Are you sure you're getting 5V to Vcc and RST?
-
- Posts: 1
- Joined: Fri May 03, 2013 1:24 am
Re: USBtinyISP not finding target
Thank you, this was the clue I needed to fix several OpenEVSE boards I had made up. The file I used must have been missing the connection from pin 1 of the Atmega to pin 5 of the header. Added a jumper and finally have communication with my USBTiny! Thanks again.
Mike in SJ, CA
Mike in SJ, CA
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: USBtinyISP not finding target
Mike - Cool! Glad you found us.
Please be positive and constructive with your questions and comments.