this is more of a bug report, but if I did anything wrong, feel free to point it out.(PLEASE)
I revisited the my Arduino IDE and stumbled across an error with the firmware(?) of the Arduino Zero, version 1.6.13.
I used Arduino IDE v.1.6.10 (Linux) and a freshly installed IDE v. 1.8.2 (Windows), and on both this error message pops up when trying to upload a sektch or burn the bootloader:
Arduino: 1.8.2 (Windows 10), Board: "Arduino/Genuino Zero (Programming Port)"
Build options changed, rebuilding all
Archiving built core (caching) in: C:\Users\TheBeast\AppData\Local\Temp\arduino_cache_216363\core\core_arduino_samd_arduino_zero_edbg_aba0f4eb37537bd009134604688a8b76.a
Sketch uses 11000 bytes (4%) of program storage space. Maximum is 262144 bytes.
java.io.IOException: Cannot run program "{runtime.tools.openocd-0.9.0-arduino5-static.path}/bin/openocd.exe": CreateProcess error=2, Das System kann die angegebene Datei nicht finden(translates to "The system could not find the specified file")
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.uploadUsingPreferences(SerialUploader.java:207)
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$DefaultExportHandler.run(Editor.java:2135)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: CreateProcess error=2, Das System kann die angegebene Datei nicht finden(="The system could not find the specified file")
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)
... 8 more
An error occurred while uploading the sketch
When using older versions(tried 1.6.9 & 1.6.10), everything works just fine.
Had the same issues. Reinstalling the 'boards' using Tools > Board:... > Boards manager sloved it for me. Make sure that you don't close the IDE before the installation finished!!!
This was caused by a bug in the Arduino SAMD Boards 1.6.13 release. I have submitted a pull request to get this fixed. You can see the necessary change here:
So you have two options:
Option 1 (fix the bug):
Open C:\Users\xxx\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.13\platform.txt in a text editor
TheBeast08:
When using older versions(tried 1.6.9 & 1.6.10), everything works just fine.
I get the same problem with 1.6.9. I'm not sure how it could work unless you are using an older version of Arduino SAMD Boards.
FlorisVO:
Had the same issues. Reinstalling the 'boards' using Tools > Board:... > Boards manager sloved it for me. Make sure that you don't close the IDE before the installation finished!!!
That's strange. Are you sure you didn't revert to Arduino SAMD Boards 1.6.12 when you did that?