Skip to content

Windows 10 64Bit, Arduino 1.6.10 upload issue. #5173

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Siliconbitz opened this issue Jul 28, 2016 · 17 comments
Closed

Windows 10 64Bit, Arduino 1.6.10 upload issue. #5173

Siliconbitz opened this issue Jul 28, 2016 · 17 comments
Labels
Component: Avrdude 6.3 Specific to AVRDUDE version 6.3

Comments

@Siliconbitz
Copy link

Siliconbitz commented Jul 28, 2016

If the IDE is launched by clicking on an .ino it does not appear possible to then 'upload' the compiled code to any of the Arduinos that I tested ( uno & mega ) . If however, the IDE is launched on its own and the .ino is then loaded ... compilation & uploading will then work,

@per1234
Copy link
Collaborator

per1234 commented Jul 28, 2016

Just wanted to confirm that multiple users have reported this problem on the forum when starting the IDE by opening an .ino file and the solution of opening the IDE on its own fixed it.

The only error shown when uploading fails is An error occurred while uploading the sketch even when verbose output during upload is checked.

http://forum.arduino.cc/index.php?topic=415264.msg2859907#msg2859907
http://forum.arduino.cc/index.php?topic=414646.msg2860858#msg2860858
http://forum.arduino.cc/index.php?topic=414646.msg2861090#msg2861090
http://forum.arduino.cc/index.php?topic=415269.msg2859905#msg2859905
http://forum.arduino.cc/index.php?topic=415269.msg2862358#msg2862358
http://forum.arduino.cc/index.php?topic=415637.msg2862399#msg2862399
http://forum.arduino.cc/index.php?topic=415637.msg2862680#msg2862680
http://forum.arduino.cc/index.php?topic=415637.msg2862902#msg2862902
http://forum.arduino.cc/index.php?topic=415771.msg2863820#msg2863820
http://forum.arduino.cc/index.php?topic=416167
http://forum.arduino.cc/index.php?topic=416228 (I was notified via PM that the issue was solved by following my instructions)
http://forum.arduino.cc/index.php?topic=416717.msg2869724#msg2869724

EDIT: I will continue to add new forum links as more users confirm this bug. Multiple links to the same thread indicate multiple users on that thread confirming this issue.

@facchinm
Copy link
Member

I just tested a clean install of 1.6.10 on both Win10 and WinXP, the upload works on both when double clicking an ino file. The mystery here is why it works when the IDE is started manually. Maybe the file association points to another installation of the IDE?

@amdkt7
Copy link

amdkt7 commented Jul 30, 2016

I am having the same issue with 1.6.10. I get the "An error occurred while uploading the sketch" if I open the file from explorer, but if I ope the IDE first (the IDE is automatically opening the recent file) it then programs cleanly. I'm using a fresh install of W10 and clean install of 1.6.10 (no previous versions on this machine). Don't know what I can add, just confirming the issue.

@Krosik
Copy link

Krosik commented Jul 31, 2016

I think I found it!

For anyone who have error when starting IDE via file and it works when starting IDE via desktop shortcut, open properties of this shortcut and delete "Start in", you will see the error.

Error occurs, because when opening IDE via file, there is no "start in folder" property. Problem will be that IDE is not detecting folder from where it was started, or some functions related to opening COM port do not use path where is IDE stored and try open some files with relative path. Of course when "path" is C:\windows they will fail.

For you facchinm I think you have some path in system's PATH variable, which we do not have.

@meoudon
Copy link

meoudon commented Aug 1, 2016

I have solved. It Avrdude's error. I copy worked avrdude from another version into /avr/bin and avrdude.conf. Everything done on 1.6.12.

@cmaglie
Copy link
Member

cmaglie commented Aug 5, 2016

Is this happening only with 1.6.10 or with 1.6.9 too?

@per1234
Copy link
Collaborator

per1234 commented Aug 5, 2016

Is this happening only with 1.6.10 or with 1.6.9 too?

@cmaglie There are ~15(it's possible that some of the reports here are the same users from the forum, I know Krosik is so I didn't double count him) reports of this issue that were solved by opening the sketch via the IDE instead of opening the sketch directly. Of the 15 there are 3 that didn't state which IDE version they're using. Every other report was using Arduino IDE 1.6.10, no reports stated they were using Arduino IDE 1.6.9.

@facchinm facchinm added the Component: Avrdude 6.3 Specific to AVRDUDE version 6.3 label Aug 5, 2016
@facchinm
Copy link
Member

facchinm commented Aug 5, 2016

Found it at last, avrdude-6.3-arduino2 had an unwanted dependency on libusb-0.dll . Launching the IDE by clicking the .ino bypasses the inclusion of IDE root in PATH, so the dll doesn't get loaded at runtime. Since that release of avrdude was quite unlucky we should revert to 6.0.1 in upcoming release, so this problem will be solved (and we must keep in mind to check for it before the next release).

@Krosik
Copy link

Krosik commented Aug 5, 2016

this uploading was ok with 1.6.9, problem is with 1.6.10, I just tried run it with debug mode, but no more details about this error. Simple way to reproduce this error (for us where it appears) is delete "start in" path from arduino shortcut on desktop. running arduino via .ino file is just the same - arduino is not started from the folder where it is, just the .exe is called.

with hourly build 2016/08/05, i can not upload sketch by any way

java.io.IOException: Cannot run program "{runtime.tools.avrdude.path}/bin/avrdude": CreateProcess error=2, The system cannot find the file specified
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
    at processing.app.helpers.ProcessUtils.exec(ProcessUtils.java:26)
    at cc.arduino.packages.Uploader.executeUploadCommand(Uploader.java:130)
    at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:209)
    at cc.arduino.UploaderUtils.upload(UploaderUtils.java:78)
    at processing.app.Sketch.upload(Sketch.java:1187)
    at processing.app.Sketch.exportApplet(Sketch.java:1160)
    at processing.app.Sketch.exportApplet(Sketch.java:1132)
    at processing.app.Editor$DefaultExportHandler.run(Editor.java:2409)
    at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
    at java.lang.ProcessImpl.create(Native Method)
    at java.lang.ProcessImpl.<init>(ProcessImpl.java:386)
    at java.lang.ProcessImpl.start(ProcessImpl.java:137)
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
    ... 9 more
An error occurred while uploading the sketch

@General-Fault
Copy link

Also see cases #5189 and #5218.

@kamura098
Copy link

Also having this issue on ide1.6.10, win10 and an uno

@lee-lvd
Copy link

lee-lvd commented Aug 16, 2016

Yes fresh install of 1.6.10
on Windows 7
AMD 64 bit

double click on MySketch.ino file and it fails to upload to my uno board.

Load the IDE, load the same file
it compiles and uploads with no issues.

Lee

@cmaglie cmaglie added this to the Release 1.6.11 milestone Aug 18, 2016
@cmaglie
Copy link
Member

cmaglie commented Aug 18, 2016

This is solved in IDE 1.6.11. Please reopen if the issue persists.

@cmaglie
Copy link
Member

cmaglie commented Aug 18, 2016

Tracking the build issue here: arduino/avrdude-build-script#3

@Tes3awy
Copy link

Tes3awy commented Aug 21, 2016

Make sure your port under Tools>Port is COM3(Arduino/Genuino Uno). I am using the latest while writing this solution v1.6.11

@durante
Copy link

durante commented Sep 5, 2016

Hi, i have been pulling out my hair with this problem. Arduino Idl 1.6.10, I have many boards, Mega, Leonardo, Due, Uno, Sparkfun Photon Red board and Standard SparkFun Red board.

So all function only sometimes and serial monitor does not work.

I have also tried numerous types of cables to test. What i have found is my cable for my external hard drive with 2 USB port "power / data" works every time!

I believe that during the upload phase the board is undervoltage at some point causing the fault.

Try uploading with an external power supply connected.

or with a Y usb cable

http://www.ebay.de/itm/Mini-USB-2-0-Y-Kabel-5-polig-trapez-2-5-HDD-Power-0-6-m-/130368122087?hash=item1e5a8bace7:g:EowAAOxygPtS4OHd

@maddy2610
Copy link

I have bought Rasberry pi from Rasberry Pi in Pakistan and it has USB (and ethernet) which is not working.. i am confuse i can't understand that is my software is too old or there is a SD card issue NOOBS issue...
i have stucked in this.. please can anyone can help me out from this....!!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Avrdude 6.3 Specific to AVRDUDE version 6.3
Projects
None yet
Development

No branches or pull requests