I’m trying to program my first AVR and I believe I have all the right tools/components, although I’m not entirely sure how to use them correctly.
I’m programming a ATtiny2313 with the following:
-Olimex AVR-P20 Board
-USBTinyISP
USBTiny: http://www.ladyada.net/make/usbtinyisp/index.html
Olimex: http://www.olimex.com/dev/avr-p20.html
I have the USBTinyISP drivers correctly installed and setup with AVRdude. When I plug it in via USB the green light on the programmer lights up. When I try using “avrdude -c usbtiny -p t2313” it gives me the error “…initialization failed, rc=-1…”
From what I’ve gathered, this error means that AVRdude acknowledges the programmer but senses that it is not connected to a board/chip.
Next, while the USBtiny is still plugged into USB, I plug a 9V DC wall adapter into the Olimex board and connect the USBtiny to the ICSP header on the Olimex board. Then I run the command: “avrdude -c usbtiny -p t2313”. I get back “Could not find USB Device…”. I’ve tried this numerous times to no avail. I have noticed that when I plug in the olimex board and connect the USBtiny to it and connnect the Usbtiny to my computers USB port as the LAST step, the usbtiny’s green LED does not go on and I get no response from Avrdude again.
I’m pretty sure the ATtiny2313 is properly socketed in the olimex board and everything appears to be working (I tried testing some points with a multimeter even though I dont’ know what I’m doing). I’m guessing the problem lies some how with the USBtiny?
Furthermore, the JP3 jumper is left open on the USBtiny (as the olimex board is powering the chip). The 3.3v jumper on the olimex board is also left open along with the LED jumper.
Thanks in advance for the help! You guys rock.
If we can’t figure this out without pictures, I’d be happy to post some, although I don’t think they’ll help much. I do have a webcam so if anyone was willing to do a video chat with me and observe what I was doing in real time that would probably be the best option.