microsoft / devkit-sdk

Arduino library and package for the MXChip IoT DevKit
https://aka.ms/devkit
MIT License
69 stars 52 forks source link

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

Open tyh77 opened 3 years ago

tyh77 commented 3 years ago

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:

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

Environment

tyh77 commented 3 years ago

bump

tyh77 commented 3 years ago

@hellyzh @JerryYangKai was wondering if any of you would be able to take a quick look at the above issue? I believe my situation is not unique and would love to get some help on this

It would also help others who have faced similar issues before https://github.com/microsoft/azure-iot-developer-kit/issues/524

erik-metz commented 3 years ago

Same issue here

pmarshDius commented 3 years ago

Has anybody go a resolution for this yet. I'm seeing the same issue

Ronelius commented 3 years ago

same here...

xalikoutis commented 2 years ago

same here any solution?