itsanjan / arduino

Automatically exported from code.google.com/p/arduino
Other
0 stars 0 forks source link

Linux avrdude64 will crash with usbtinyisp #610

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Connect usbtiny isp.
2. Use upload using programmer function
3. IDE will not upload with the following message:

Reproduced this using the avrdude and avrdude64 binaries from the source 
package.

What is the expected output?
$ avrdude usbtiny -c usbtiny -p m328p -C ./avrdude.conf

avrdude: AVR device initialized and ready to accept instructions

Reading |                                                    | 0% 0.Reading | 
#################                                  | 33% 0Reading | 
#################################                  | 66% 0Reading | 
################################################## | 100% 0.01s

avrdude: Device signature = 0x1e950f

avrdude: safemode: Fuses OK

avrdude done.  Thank you.

What do you see instead?
$ ./avrdude64 usbtiny -c usbtiny -p m328p -C ./avrdude.conf

USB read error: expected 8, got 4
USB read error: expected 8, got 4
avrdude64: initialization failed, rc=-1
           Double check connections and try again, or use -F to override
           this check.

avrdude64 done.  Thank you.

What version of the Arduino software are you using? On what operating
system?  Which Arduino board are you using?
1.0-beta2-64
Slackware64-current with multilib support. (Linux 2.6.38.7 #3 SMP)

Please provide any additional information below.
32 bit version of arduino avrdude works.
64 bit version of aruidno avrdude gives the above error.
64 bit version of avrdude 5.10 compiled on this system works fine.

Possible fix documented here:
http://forums.adafruit.com/viewtopic.php?f=20&t=3683&start=22

Original issue reported on code.google.com by Vliegend...@gmail.com on 29 Aug 2011 at 11:21

GoogleCodeExporter commented 9 years ago
Does this problem still exist with Arduino 1.0?  I recompiled avrdude 5.11 and 
included that in the release, maybe that fixed the problem?

Original comment by dmel...@gmail.com on 30 Dec 2011 at 11:12

GoogleCodeExporter commented 9 years ago
The problem appears to be solved by avrdude 5.11 on my side.

Original comment by Vliegend...@gmail.com on 31 Dec 2011 at 11:16

GoogleCodeExporter commented 9 years ago
Great, thanks for letting me know!

Original comment by dmel...@gmail.com on 2 Jan 2012 at 3:42