So i'm kinda new to Ubuntu and programming on arduino. I am working with a 9DoF Razor IMU M0. Everytime I try to upload to it, I keep getting the error below. I orginally had problems writing to the serial port dev/ttyACMO but i fixed that by adding myself to the dialout group. I would just like some advice on what to do. Thanks

Arduino: 1.8.5 (Linux), Board: "SparkFun 9DoF Razor IMU M0"

java.io.IOException: Cannot run program "/home/ozz/.arduino15/packages/SparkFun/tools/bossac/1.4.0/bossac": error=13, Permission denied

at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at java.lang.Runtime.exec(Runtime.java:620)
at java.lang.Runtime.exec(Runtime.java:485)
at processing.app.helpers.ProcessUtils.exec(ProcessUtils.java:11)
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: error=13, Permission denied

at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:247)
at java.lang.ProcessImpl.start(ProcessImpl.java:134)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
... 10 more
  • Permission problem? /bin/ls -l -d /home/ozz/.arduino15/packages/SparkFun/tools/bossac/1.4.0/bossac /home/ozz/.arduino15/packages/SparkFun/tools/bossac/1.4.0/ – waltinator Dec 5 '17 at 21:55
  • Thanks for that, I kinda figured out the permission problem. I couldn't find the path file cause it was hidden. Once I realised that, i was able to give myself permission. – ozz Dec 6 '17 at 22:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.