Skip to content
This repository was archived by the owner on Apr 25, 2023. It is now read-only.
This repository was archived by the owner on Apr 25, 2023. It is now read-only.

Unable to Upload Device Code due to missing files within openocd dependency #1085

@tyh77

Description

@tyh77

Repro

Received following error while trying to build + upload solution

Loading configuration...
Initializing packages...
Preparing boards...
Verifying...
/Users//Library/Arduino15/packages/AZ3166/tools/arm-none-eabi-gcc/5_4-2016q3/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/bin/ld: warning: changing start of section .data by 4 bytes
/Users//Library/Arduino15/packages/AZ3166/tools/arm-none-eabi-gcc/5_4-2016q3/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/bin/ld: warning: changing start of section .data by 4 bytes
/Users//Library/Arduino15/packages/AZ3166/tools/arm-none-eabi-gcc/5_4-2016q3/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/bin/ld: warning: changing start of section .data by 4 bytes
Uploading...
java.io.IOException: Cannot run program "/Users//Library/Arduino15/packages/AZ3166/tools/openocd/0.10.0/macosx/bin/openocd": error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at java.lang.Runtime.exec(Runtime.java:621)
at java.lang.Runtime.exec(Runtime.java:486)
at processing.app.helpers.ProcessUtils.exec(ProcessUtils.java:11)
at cc.arduino.packages.Uploader.executeUploadCommand(Uploader.java:129)
at cc.arduino.packages.uploaders.SerialUploader.runCommand(SerialUploader.java:383)
at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:197)
at cc.arduino.UploaderUtils.upload(UploaderUtils.java:77)
at processing.app.Base.(Base.java:439)
at processing.app.Base.main(Base.java:150)
Caused by: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.(UNIXProcess.java:247)
at java.lang.ProcessImpl.start(ProcessImpl.java:134)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
... 9 more
An error occurred while uploading the sketch
[Warning] Failed to generate IntelliSense configuration.
[Error] Uploading sketch 'RemoteMonitoringV2.ino': Exit with code=1

It appears that the openocd dependency doesn't seem to be properly prepared? It's expecting a macosx directory but the path only contains the following:

  • AUTHORS
  • BUGS
  • COPYING
  • ChangeLog
  • Doxyfile.in
  • HACKING
  • INSTALL
  • Makefile.am
  • Makefile.in
  • NEWS
  • NEWS-0.2.0
  • NEWS-0.3.0
  • NEWS-0.4.0
  • NEWS-0.5.0
  • NEWS-0.6.0
  • NEWS-0.7.0
  • NEWS-0.8.0
  • NEWS-0.9.0
  • NEWTAPS
  • README
  • README.OSX
  • README.Windows
  • TODO
  • aclocal.m4
  • compile
  • config.guess
  • config.h.in
  • config.sub
  • config_subdir.m4
  • configure
  • configure.ac
  • contrib

depcomp
doc
install-sh
jimtcl
ltmain.sh
mdate-sh
missing
src
tcl
texinfo.tex
tools

Environment

  • System: Mac OS X v10.14.6 (Mojave)
  • IDE: VS Code v1.57.1, Arduino extension v0.4.3, Azure IoT Tools v0.3.0, Arduino v1.8.13
  • IoT Devkit SDK v2.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions