Noobie trying to get first AVR to work

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.

I have the Atmel ISP which has the same 6 and 10 pin ISP cables.

Never used the Tiny ISP.

You have a simultaneous linear equation! TinyUSB kit - not know to be working + Olimex board/chip, also unknown.

Power LED on the Olimex is on when Olimex’s power is connected.

AVR chip in Olimex - pin 1 oriented correctly in socket?

The Programmer would get its Vcc from the Olimex rather than the USB 5V, as you have it jumpered, I think.

Olimex 3.3V jumper out (you want 5V)

Olimex LED jumper out (non-interference with ISP)

Programmer JP4 out

Programmer JP3 in - programmer is powered by the Olimex

Programmer JP5 out - I’m not sure.

Avrdude - special version for the TinyISP must be downloaded/used

None of the above may help. I can test your board(s) for you using my stuff if you wanted the mailing hassle.

Hi,

I had the exact same issue, the solution for me was to remove the LED jumper. Once I had done that it works fine for me. It seemed you tried that but it did not work, so this is only something others may try if they have the same issue.

Best of luck C.