Created Tue, 17 Nov 2015 13:26:16 +0000 by mquiroga
Tue, 17 Nov 2015 13:26:16 +0000
Hi,
I just installed the chipKIT core (v1.0.0-27 from 2015-10-18) on Arduino IDE 1.6.5 and I replaced the pic32prog for the file on https://github.com/sergev/pic32prog/tree/master/macosx, as in another post Majenko recommended.
I can compile a very simple program, but I am having some kind of weird problem due to permissions... I got the following error:
Sketch uses 11,004 bytes (8%) of program storage space. Maximum is 126,976 bytes. Global variables use 3,056 bytes of dynamic memory. java.io.IOException: Cannot run program "/Users/mquiroga/Documents/Arduino/hardware/chipkit-core/pic32/tools/bin/pic32prog": 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:115) at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:159) at processing.app.debug.Compiler.upload(Compiler.java:166) at processing.app.Sketch.upload(Sketch.java:1167) at processing.app.Sketch.exportApplet(Sketch.java:1141) at processing.app.Sketch.exportApplet(Sketch.java:1113) at processing.app.Editor$DefaultExportHandler.run(Editor.java:2380) at java.lang.Thread.run(Thread.java:745) Caused by: java.io.IOException: error=13, Permission denied at java.lang.UNIXProcess.forkAndExec(Native Method) at java.lang.UNIXProcess.<init>(UNIXProcess.java:248) at java.lang.ProcessImpl.start(ProcessImpl.java:134) at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029) ... 11 more
I am using mac os x El Capitan and the Uno32 board. My java version "1.8.0_65"... Can you please help me?
Tue, 17 Nov 2015 14:08:17 +0000
You may have to manually set the new pic32prog program to be executable. I have no idea how you do that through the GUI (if they even have that option any more), but from a terminal you can try:
$ chmod 755 /Users/mquiroga/Documents/Arduino/hardware/chipkit-core/pic32/tools/bin/pic32prog
Tue, 17 Nov 2015 15:48:53 +0000
Perfect!!! ... thank you very much.