Built the USBtinyISP from the kit. It arrived very quicky and I got it constructed and put into it's case without a hitch! Installed the drivers, got avrdude, winAVR, and it is detected under Windows XP fine. The green light on the programmer lights up and everything seems to be alright with the world.
I ordered some ATMega 8s (PDIF) from SparkFun and now the final test is to see if I can program it properly and if the programmer was assembled correctly! I've never really worked with electronics before or anything, so I had a few questions.
1. On the 6 pin female dongle from the USBtinyISP, does the red wire correspond to MISO (pin 1?) as shown here?
2. I've identified the appropriate pins on the ATMega 8 for the 6pin ISP programmer via the summary datasheet provided by Atmel found here. However, no where in the datasheet does it mention how much voltage\amperage on VCC to program. How much?
3. Does the USBtinyISP provide the voltage automatically or will I have to use an external source (7805 or otherwise)? How to let the USBtinyISP to provide the voltage if possible?
Just need to program my ATMega 8 to confirm the USBtinyISP is working correctly (I may have messed something up, like I said, I'm very new to electronics, I barely know anything!)
Thank you in advance!
rc=-1 with atmega8
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
-
- Posts: 10
- Joined: Mon Mar 23, 2009 1:20 am
rc=-1 with atmega8
Last edited by Yossarian on Thu Mar 26, 2009 6:06 am, edited 1 time in total.
-
- Posts: 12151
- Joined: Thu Apr 06, 2006 4:21 pm
Re: Ready to program my first AVR!
the red wire is pin 1
you can use vcc from the usbtiny if the jumper is installed
you can use vcc from the usbtiny if the jumper is installed
-
- Posts: 10
- Joined: Mon Mar 23, 2009 1:20 am
Re: Ready to program my first AVR!
I've got everything connected and I get a rc=-1 error while trying to program an atmega8.
My computer detects the USBtinyISP fine and the green light is lit the entire time. Upon using avrdude unsuccessfully the red light blinks for a brief second then turns off.
The jumper for self-power is on. These are BANNED atmega8s from SparkFun.
wire in the right orientation--
the solder job
the pinout
In the summary datasheet it also says analog vcc should have power even if it isn't used. I bridged the vcc to Avcc and still the same result.
I'm stuck.
Code: Select all
C:\>avrdude -c usbtiny -p atmega8
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
avrdude done. Thank you.
C:\>
The jumper for self-power is on. These are BANNED atmega8s from SparkFun.
wire in the right orientation--
the solder job
the pinout
In the summary datasheet it also says analog vcc should have power even if it isn't used. I bridged the vcc to Avcc and still the same result.
I'm stuck.
-
- Posts: 10
- Joined: Mon Mar 23, 2009 1:20 am
Re: rc=-1 with atmega8
Why was the thread moved?
I did further testing and the 6 pin cable is working fine, but USBtinyISP doesn't want to program, still gives the rc=-1 error.
I've also tried programming with the 10 pin cable with no success.
Help?
I did further testing and the 6 pin cable is working fine, but USBtinyISP doesn't want to program, still gives the rc=-1 error.
I've also tried programming with the 10 pin cable with no success.
Help?
Code: Select all
C:\>avrdude -c usbtiny -p m8 -v
avrdude: Version 5.6, compiled on Mar 5 2009 at 09:59:30
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
System wide configuration file is "C:\WinAVR-20090313\bin\avrdude.conf"
Using Port : lpt1
Using Programmer : usbtiny
AVR Part : ATMEGA8
Chip Erase delay : 10000 us
PAGEL : PD7
BS2 : PC2
RESET disposition : dedicated
RETRY pulse : SCK
serial program mode : yes
parallel program mode : yes
Timeout : 200
StabDelay : 100
CmdexeDelay : 25
SyncLoops : 32
ByteDelay : 0
PollIndex : 3
PollValue : 0x53
Memory Detail :
Block Poll Page
Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW Max
W ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ---
-- ---------
eeprom 4 20 128 0 no 512 0 0 9000 90
00 0xff 0xff
flash 33 10 64 0 yes 8192 64 128 4500 45
00 0xff 0x00
lfuse 0 0 0 0 no 1 0 0 2000 20
00 0x00 0x00
hfuse 0 0 0 0 no 1 0 0 2000 20
00 0x00 0x00
lock 0 0 0 0 no 1 0 0 2000 20
00 0x00 0x00
calibration 0 0 0 0 no 4 0 0 0
0 0x00 0x00
signature 0 0 0 0 no 3 0 0 0
0 0x00 0x00
Programmer Type : USBtiny
Description : USBtiny simple USB programmer, http://www.ladyada.net
/make/usbtinyisp/
avrdude: programmer operation not supported
avrdude: Using SCK period of 10 usec
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
avrdude done. Thank you.
-
- Posts: 12151
- Joined: Thu Apr 06, 2006 4:21 pm
Re: rc=-1 with atmega8
your problem is most likely not with the programmer but with your wiring
-
- Posts: 10
- Joined: Mon Mar 23, 2009 1:20 am
Re: rc=-1 with atmega8
You mean the wiring on the breadboard?ladyada wrote:your problem is most likely not with the programmer but with your wiring
I had the 6pin ISP cable matching the key on the silkscreen as opposed to the red stripe at pin 1, one of the atmega8s got so hot I burned my finger, so perhaps they're both dead.
I'm going to order two new atmega8s as well as an 8 pin attiny13 and the appropriate sockets for them. I've also read that shorting out R4 and R7 can help resolve issues. Are they required or can they be shorted out? Keep in mind I'm only to primarily being programming atmega8s and some other AVRs, I have no plans to get spokepov or anything.
I'll put the order in tomorrow and take a crack at it this weekend (college, you know)
I hope you can help me resolve the issue, your product seems great... if only I could get it working!
Please be positive and constructive with your questions and comments.