Arduino code won't upload - arduino

I'm working on a small weather station and yesterday everything was working well. This morning I changed some code and suddenly this came up when I wanted to upload the code to my Adafruit:
java.io.IOException: Cannot run program "{runtime.tools.bossac-
1.7.0.path}/bossac": 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.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:2168)
at java.lang.Thread.run(Thread.java:748)
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)
... 8 more
An error occurred while uploading the sketch
Even simple code won't upload anymore. Could someone help me with this? I tried so many things already and I can't figure it out.
Thanks.

I had the same problem with my Adafruit Feather M0. I opened the platform.txt file (running Wordpad as an administrator) located at
C:\Users\[yourPC]\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.2.9\platform.txt
and changed the line
tools.bossac.path={runtime.tools.bossac-1.7.0.path}
to reflect the actual path of the bossac.exe file (mine was at)
C:\Users\[yourPC]\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.2.9\tools\
After restarting Arduino, I was finally able to upload a sketch to my M0.

I have been experiencing the same issue. I found that if I went to my Board Manager and downgraded my Feather boards from 1.6.18 to 1.6.17 it fixed the problem.

java.io.IOException: Cannot run program "{runtime.tools.bossac-
1.7.0.path}/bossac": CreateProcess error=2, The system cannot find the file
specified
The above line says the path to bossac.exe command line application for ATSAMD micro was not found.
Simply Goto --> C:\Users[yourPCnamehere]\AppData\Local\Arduino15\packages\arduino\tools\bossac
Did you find bossac.exe file there?
If not then that's the problem. Simply uninstall the Arduino from your PC and delete the above directory Arduino15 if you have an offline copy of Arduino and then install new version. bossac.exe tool will come with the Arduino package.
Please try this and see if it helps.

Related

Why can't I use julia addprocs?(ECONNREFUSED)

I'm writing a program that should connect to remote virtual machines and then do distributed execution.
I have this warning:
"Warning: Identity file /home/luigal/.ssh/id_rsa not accessible: No such file or directory.".(Even if the file exists and the path is correct)
The program crashes when I try to do :
worker=[("myuser#ip:port",1)]
addprocs(worker;sshflags="-i /home/luigal/.ssh/id_rsa",exename="/usr/local/bin/julia", tunnel=true,dir="/home/luigal/HGEpidemics-main/")
This is the project I am working on:
https://github.com/GalloLuigi/HGEpidemics-main
I need to do this work on:
https://github.com/GalloLuigi/HGEpidemics-main/blob/main/src/experiments/spreading/spreading_experiment_d.jl
https://github.com/GalloLuigi/HGEpidemics-main/blob/main/src/experiments/spreading_parallel/spreading_experiment_d.jl
Someone can help me?
The console says:
terminal_pt1
terminal_pt2

Ardino-Nano-BLE-Sense "Send Data With Sound" Chirp Project Issue

I am having some issues with the Send Data with Sound Project on Arduino. I have my Arduino nano BLE sense, ChirpSDK by Asio Ltd Version 3.4.0 installed, I put in the CHIRP_APP_KEY, CHIRP_APP_SECRET, CHIRP_APP_CONFIG from the chirp website, and I also have the Arduino nano BLE board selected when uploading the code. But for some reason I keep getting this error below:
ChirpColor:22:10: error: chirp_connect.h: No such file or directory
#include "chirp_connect.h"
^~~~~~~~~~~~~~~~~
compilation terminated.
exit status 1
chirp_connect.h: No such file or directory
Any help would be very much appreciated, thanks.
The SDK functions have been renamed in the latest release. So connect is replaced with sdk.
With the latest version, you need to
#include "chirp_sdk.h"
See the latest header file for the function declarations - https://github.com/chirp/chirp-arduino/blob/develop/src/chirp_sdk.h

Demos not working on Windows 10

I have been trying to run all the examples and demos provided by R3 Corda on my local machine which has windows 10 in it.
https://docs.corda.net/releases/release-V1.0/running-the-demos.html
While example 1 and 2 are working fine, but I am unable to run the demos. While the nodes are getting deployed, but once I run the nodes using runnodes command from command-line, they open in terminals and immediately close. Please can someone from #r3corda #corda team may help to sort this out.
I was running into the similar issue on Win 10.
Running the following:
>java -jar corda.jar
Exception in thread "main" java.lang.UnsatisfiedLinkError: Could not load library. Reasons: [no jansi64-1.14 in java.library.path, no jansi-1.14 in java.library.path, no jansi in java.library.path,
C:\Users\<user>\AppData\Local\Temp\jansi-64-1-6925657630491746639.14: Access is denied]
Downloading the missing library to C:\windows reloved it.
Download Link:
http://www.java2s.com/Code/Jar/j/Downloadjansi14jar.htm

RStudio startup error

I am having problems opening RStudio, it worked fine before I got my mouse pad reconfigured. Here goes... When I open the program, it loads but appears blank. The menu tabs appear but do not populate when clicked. I've read a few answers to this one of which involved deleting the 'RStudio-Desktop' within the local files but did not solve the issue. I managed to run the RStudio diagnostic and below is the error message. OS is Windows 7.
I would be grateful if anyone can provide some insight regarding this.
Attempting to launch R session...
R_HOME=C:\PROGRA~1\R\R-33~1.1
PATH=C:\Program Files\R\R-3.3.1\bin\x64;C:\WINDOWS\Orant\product\11.2.0\client
_1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\Syste>m
32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\OpenCL SDK\3.0\bin\x86;C
:\Program Files (x86)\Intel\OpenCL SDK\3.0\bin\x64;C:\Program Files\Intel\WiFi\b
in\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files (x86)\M
icrosoft Application Virtualization Client;C:\Program Files (x86)\QuickTime\QTSy
stem\
R session launched, attempting to connect on port 44157...
Connected to R session, attempting to initialize...
13 Oct 2016 16:04:22 [rsession-B859XXXX] ERROR system error 5 (Access is denied)
[path=//mshsrmsapppXXXX/B859XXXX$]; OCCURRED AT: rstudio::core::Error rstudio::
core::FilePath::makeCurrentPath(bool) const C:\Users\Administrator\rstudio\src\c
pp\core\FilePath.cpp:978; LOGGED FROM: int main(int, char* const*) C:\Users\Admi
nistrator\rstudio\src\cpp\session\SessionMain.cpp:3202
QApplication::qAppName: Please instantiate the QApplication object first
C:\Program Files\RStudio>
Thanks,
Mits
Error 5 would suggest that the application is being written to those directories which does not have write privileges.
Make sure those folders have write privileges.
You can also try running RStudio application as Administrator.
To do so, Click on Start -> RStudio ( right click) -> Run as administrator.
I had similar problems installing R and RStudio on Windows 8.1 in C:\Program Files. From Vista, Windows places multiple restrictions on systems folders such as %windir% and %ProgramFiles%.
Uninstall and re-install in a folder where you are not restricted, such as C:\Apps or similar. You should hopefully have no further issues.

Opentripplanner Graph.obj file not found error

Trying to run the opentripplanner and using the Graph.obj to run it for a country.
But whenever trying to run the server it is giving the filenotfound exception at location /otp/Graph.obj although i have put the Graph.obj in the same location.
Stacktrace while running the server is :
Graph file not found or not openable for routerId '' under file:/otp
java.io.FileNotFoundException: /otp/Graph.obj (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.(FileInputStream.java:146)
at java.io.FileInputStream.(FileInputStream.java:101)
at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90)
I had the same problem trying to run OTP.
First problem: the routerId is missing
Second problem: the default directory is /var/otp/graph and OTP seems to search the graph under /var/otp/graph/{routerId}
Third problem (may not be yours): I tried to run OTP in Cygwin (Windows) and probably there was some trouble with the slashes/backslashes, so I decided to copy the graph under a "../gtfs/gurgaon"
Solution:
Step 1) create a subdirectory like "/var/otp/graph/gurgaon" and copied Graph.obj over there
Step 2) run something like: $ java -jar target/otp.jar --router gurgaon --graphs ../gtfs --server
It worked like a charm for me!
Try this code: java -Xmx5G -jar target/otp-0.20.0-SNAPSHOT-shaded.jar --build path your gtfs and osm.pbf files --inMemory
It worked perfect for me.

Resources