Tag

, , ,

Kalau ada pesan error “permision denied” saat uploading dari IDE Arduino ke board Arduino, yang pesan lengkapnya adalah sebagai berikut :

java.io.IOException: Cannot run program “/home/insansains/arduino-0022/hardware/tools/avrdude”: java.io.IOException: error=13, Permission denied
at java.lang.ProcessBuilder.start(ProcessBuilder.java:475)
at java.lang.Runtime.exec(Runtime.java:610)
at java.lang.Runtime.exec(Runtime.java:483)
at processing.app.debug.Uploader.executeUploadCommand(Uploader.java:128)
at processing.app.debug.AvrdudeUploader.avrdude(AvrdudeUploader.java:192)
at processing.app.debug.AvrdudeUploader.uploadViaBootloader(AvrdudeUploader.java:86

)
at processing.app.debug.AvrdudeUploader.uploadUsingPreferences(AvrdudeUploader.java

:55)
at processing.app.Sketch.upload(Sketch.java:1498)
at processing.app.Sketch.exportApplet(Sketch.java:1465)
at processing.app.Sketch.exportApplet(Sketch.java:1420)
at processing.app.Editor$46.run(Editor.java:2219)
at java.lang.Thread.run(Thread.java:636)
Caused by: java.io.IOException: java.io.IOException: error=13, Permission denied
at java.lang.UNIXProcess.<init>(UNIXProcess.java:164)
at java.lang.ProcessImpl.start(ProcessImpl.java:81)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:468)
… 11 more

Maka solusinya adalah cukup ketikkan perintah perikut pada terminal :

chmod a+wx /home/insansains/arduino-0022/hardware/tools/avrdude

Sumber : http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1280144827