The "chicken-egg-proplem" ;-)

USB AVR Programmer and SPI interface. Adafruit's USBtinyISP.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
simön
 
Posts: 8
Joined: Mon Jan 21, 2008 1:26 pm

The "chicken-egg-proplem" ;-)

Post by simön »

Hi there!

I just solderd my USBtinyISP and wonder now how to programm the ATtiny2313. My PC has no Parallel-Interface (thats why I have to build USBtinyISP) but i can get a PC from a friend with parallel-port. But only for a few minutes. So i have to get prepared to programm my ATtiny without any proplems.
Therefor I build something like on this page: http://s-huehn.de/elektronik/avr-prog/avr-prog.htm (Parallel-ISP-Interface from top of Page + "Test-Projekt" from the same page)
But this is designed for PonyProg and a can not load the firmware for USBtinyISP into PonyProg.

So i ask you, what i have to do to make it work for sure.

For your Info: OS is WinXP

thanks, Simon

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Post by adafruit »

the attiny2313 is preprogrammed if you bought it so no need to program!
Last edited by adafruit2 on Mon Jan 21, 2008 1:49 pm, edited 1 time in total.

Hazard
 
Posts: 196
Joined: Tue Oct 30, 2007 7:27 am

Post by Hazard »

Does your computer have a serial port instead?

What do you mean you can't load the USBtiny firmware into ponyprog?

Edit: Read post above ^, lol I never remember that most people buy the kits.

User avatar
simön
 
Posts: 8
Joined: Mon Jan 21, 2008 1:26 pm

Post by simön »

Sorry, i am NOT the most people, so i didnt buy. ;-)

Its my first atmel-projekt and i do not know how to program the ATtiny with ponyprog because it only provides .hex files. but there was no such file in the download...

PS: i build V1.0

EDIT: No serial, sorry. damn slim laptops, only USB...

Hazard
 
Posts: 196
Joined: Tue Oct 30, 2007 7:27 am

Post by Hazard »

Great to hear! :D
I think the file you're looking for is somewhere in the "spi" folder. main.hex?

Good luck!

User avatar
simön
 
Posts: 8
Joined: Mon Jan 21, 2008 1:26 pm

Post by simön »

ok, so you mean, i only have to load the main.hex into the attiny and it will work?

thx for your help!

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Post by adafruit »

you also have to set the fuses, which are identified in the Makefile
i dont know how to do this in ponyprog

Hazard
 
Posts: 196
Joined: Tue Oct 30, 2007 7:27 am

Post by Hazard »

And program the fuses correctly :)
But if anything goes wrong, and if, as you say only have a few minutes with the computer, it may be become more dificult.

Double check the wiring, write the code and fuses, and fire it up in the usbtinyboard. Should do the trick. :)

Locked
Please be positive and constructive with your questions and comments.

Return to “USBtinyISP”