"result too large"?

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
Tones
 
Posts: 16
Joined: Fri Dec 12, 2008 5:17 am

"result too large"?

Post by Tones »

I'm an AVR noob -- have worked quite a bit with Arduinos and am making the move to pure AVRs. I've just assembled a USBTinyISP from kit and am trying to get it to work for the first time. I've got it wired into an ATTINY2313 using Evil Mad Scientist instructions [1] and am attempting to install test_leds.hex according to the LadyAda howto [2].

I'm running the command:

Code: Select all

avrdude -c usbtiny -p attiny2313 -U flash:w:test_leds.hex
And I'm getting a weird error. Google does not turn up anyone else having this error with avrdude, so I am stumped:

Code: Select all

avrdude: error: usbtiny_transmit: Result too large
avrdude: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.


avrdude: error: usbtiny_transmit: Result too large

avrdude done.  Thank you.
I can't tell if this is a standard "init failed" problem or something weirder. Any ideas? It's unclear to me what "result" is "too large" here.

I have triple-checked my connections and am sure they are correct. Am reading 5V in my multimeter between GND and VCC.

Possibly there's something wrong or unusual about my ATTINY chip, since I'm not sure where it came from. If I can't figure out the problem soon I will probably try again with a fresh ATTINY and hope that solves it.

Any thoughts or guidance would be appreciated. Thanks!

=Tim=



[1] http://www.evilmadscientist.com/article ... rgetboards
[2] http://www.ladyada.net/learn/avr/avrdude.html

Tones
 
Posts: 16
Joined: Fri Dec 12, 2008 5:17 am

Re: "result too large"?

Post by Tones »

Have tried it with a few other chips -- an ATMEGA8 and an ATMEGA328 -- and am receiving the same error.

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

Re: "result too large"?

Post by adafruit »


Tones
 
Posts: 16
Joined: Fri Dec 12, 2008 5:17 am

Re: "result too large"?

Post by Tones »

Thanks, sorry for not posting this the first time.

1. It's from a kit
2. I'm using a MacBook Pro running OSX 10.6.7
3. I'm using avrdude and an ATTINY2313V. (Have also tried with ATMEGA8 and ATMEGA328.)
4. The USBTINY has not worked ever. This is my first time using it.
5 & 6. Screenshot and photos here: http://imgur.com/a/Jkltp

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

Re: "result too large"?

Post by adafruit »

we've never seen this so unfortunately not sure what to do

if you can, another computer to verify if you can get it to work would be handy! then we know if its software or hardware :)

Tones
 
Posts: 16
Joined: Fri Dec 12, 2008 5:17 am

Re: "result too large"?

Post by Tones »

OK cool, I will try that. I have had some problems with GCC on this computer before so maybe that's the issue.

Interestingly I get the same bug if I hook up the TinyISP without any chip plugged in.

I'll let you know how it goes, thanks again.

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

Return to “USBtinyISP”