Arduino icon indicating copy to clipboard operation
Arduino copied to clipboard

Windows 10 64Bit, Arduino 1.6.10 upload issue.

Open Siliconbitz opened this issue 10 years ago • 17 comments

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,

Siliconbitz avatar Jul 28 '16 12:07 Siliconbitz

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.

per1234 avatar Jul 28 '16 14:07 per1234

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?

facchinm avatar Jul 29 '16 09:07 facchinm

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.

amdkt7 avatar Jul 30 '16 00:07 amdkt7

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.

Krosik avatar Jul 31 '16 12:07 Krosik

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.

meoudon avatar Aug 01 '16 02:08 meoudon

Is this happening only with 1.6.10 or with 1.6.9 too?

cmaglie avatar Aug 05 '16 10:08 cmaglie

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.

per1234 avatar Aug 05 '16 11:08 per1234

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).

facchinm avatar Aug 05 '16 13:08 facchinm

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

Krosik avatar Aug 05 '16 21:08 Krosik

Also see cases #5189 and #5218.

General-Fault avatar Aug 07 '16 21:08 General-Fault

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

kamura098 avatar Aug 08 '16 21:08 kamura098

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

lee-lvd avatar Aug 16 '16 22:08 lee-lvd

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

cmaglie avatar Aug 18 '16 09:08 cmaglie

Tracking the build issue here: https://github.com/arduino/avrdude-build-script/issues/3

cmaglie avatar Aug 18 '16 13:08 cmaglie

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

Tes3awy avatar Aug 21 '16 20:08 Tes3awy

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

durante avatar Sep 05 '16 20:09 durante

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....!!!!

maddy2610 avatar Apr 05 '17 08:04 maddy2610