Trying to upload a code via an USBasp to an Atmega8 gives me the follow errors.
java.io.IOException: Cannot run program "___REMOVE___/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:129)
at cc.arduino.packages.uploaders.SerialUploader.uploadUsingProgrammer(SerialUploader.java:343)
at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:89)
at cc.arduino.UploaderUtils.upload(UploaderUtils.java:78)
at processing.app.SketchController.upload(SketchController.java:713)
at processing.app.SketchController.exportApplet(SketchController.java:686)
at processing.app.Editor$DefaultExportAppHandler.run(Editor.java:2232)
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
restoring the board file, gives me these errors.
avrdude: Version 6.3, compiled on Jan 17 2017 at 12:00:53
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "C:\E-Dream\arduino-2017\hardware\tools\avr/etc/avrdude.conf"
Using Port : usb
Using Programmer : usbasp
avrdude: Warning: cannot query manufacturer for device: No such file or directory
avrdude: Warning: cannot query product for device: No such file or directory
An error occurred while uploading the sketch
avrdude: error: could not find USB device with vid=0x16c0 pid=0x5dc vendor='www.fischl.de' product='USBasp'
avrdude done. Thank you.
I think that'll happen when you upload to anything, you've got the _REMOVE bug.
Nobody seems to know what causes it or how to fix it other than uninstalling the IDE, blowing away the Arduino15 folder, and reinstalling.
That folder is located:
On Mac OS X:
/Users/(username)/Library/Arduino15
On Windows:
Arduino IDE 1.6.5r5 and previous:
C:\Users(username)\AppData\Roaming\Arduino15
Arduino IDE 1.6.6 and later:
C:\Users(username)\AppData\Local\Arduino15
On Linux:
/home/(username)/.arduino15 (a.k.a. ~/.arduino15)
I have the portable version, so there is no uninstall option, but after removing that folder, and the preference has been reset, it still gives me errors.
This is the one of the reason why I don't want to upgrade the IDE. Still using 1.6.8. Last time trying to download a new version, it also gave me errors.
In file included from C:\E-Dream\arduino-2017\hardware\arduino\avr\cores\arduino\wiring_private.h:31:0,
from C:\E-Dream\arduino-2017\hardware\arduino\avr\cores\arduino\wiring_digital.c:26:
C:\E-Dream\arduino-2017\hardware\arduino\avr\cores\arduino\Arduino.h:195:0: warning: "PE" redefined
#define PE 5
^
In file included from c:\e-dream\arduino-2017\hardware\tools\avr\avr\include\avr\io.h:350:0,
from C:\E-Dream\arduino-2017\hardware\arduino\avr\cores\arduino\wiring_private.h:26,
from C:\E-Dream\arduino-2017\hardware\arduino\avr\cores\arduino\wiring_digital.c:26:
c:\e-dream\arduino-2017\hardware\tools\avr\avr\include\avr\iom8.h:534:0: note: this is the location of the previous definition
#define PE 2
^
Sketch uses 314 bytes (3%) of program storage space. Maximum is 8192 bytes.
Global variables use 9 bytes (1%) of dynamic memory, leaving 503 bytes for local variables. Maximum is 512 bytes.
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:129)
at cc.arduino.packages.uploaders.SerialUploader.uploadUsingProgrammer(SerialUploader.java:343)
at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:89)
at cc.arduino.UploaderUtils.upload(UploaderUtils.java:78)
at processing.app.SketchController.upload(SketchController.java:713)
at processing.app.SketchController.exportApplet(SketchController.java:686)
at processing.app.Editor$DefaultExportAppHandler.run(Editor.java:2232)
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
Using proxy DIRECT
Using proxy DIRECT
Using proxy DIRECT