Getting started on OSX?

Apple Mac OSX
User avatar
RogerClark
Posts: 7157
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: Getting started on OSX?

Post by RogerClark » Thu Jun 18, 2015 9:06 pm

note.

see one of the other sections (sorry i cant remember which one), but the ground plane on some Maple minis is now very close to the pins.

so when soldering, make sure you don't accidentally short any pins to Gnd

User avatar
mrburnette
Posts: 1829
Joined: Mon Apr 27, 2015 12:50 pm
Location: Greater Atlanta
Contact:

Re: Getting started on OSX?

Post by mrburnette » Thu Jun 18, 2015 11:14 pm

RogerClark wrote:note.

see one of the other sections (sorry i cant remember which one), but the ground plane on some Maple minis is now very close to the pins.

so when soldering, make sure you don't accidentally short any pins to Gnd
viewtopic.php?f=13&t=53&p=2670&hilit=LED#p2670

User avatar
RogerClark
Posts: 7157
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: Getting started on OSX?

Post by RogerClark » Thu Jun 18, 2015 11:28 pm

Thanks Ray.

User avatar
anthonyjclarke
Posts: 12
Joined: Tue Jun 16, 2015 8:44 pm

Re: Getting started on OSX?

Post by anthonyjclarke » Fri Jun 19, 2015 9:33 pm

Sorry, I'm back :(

Tried a complete new try on another Mac.... i have the odd issue on my iMac when doing Arduino stuff and it not recognising certain USB chipsets.... but always works on this mac!

Complete install as per instructions.... but when I try to compile....

Cannot run program "{runtime.tools.arm-none-eabi-gcc.path}/bin/arm-none-eabi-g++" (in directory "."): error=2, No such file or directory

Any ideas?

User avatar
mrburnette
Posts: 1829
Joined: Mon Apr 27, 2015 12:50 pm
Location: Greater Atlanta
Contact:

Re: Getting started on OSX?

Post by mrburnette » Fri Jun 19, 2015 9:42 pm

anthonyjclarke wrote: <...>
Cannot run program "{runtime.tools.arm-none-eabi-gcc.path}/bin/arm-none-eabi-g++" (in directory "."): error=2, No such file or directory

Any ideas?
Did you use the Arduino Board Manager to install the "Due"? You must do so on ArduiniGUI1.6.3 and beyond. Due board installs the compiler, linker, etc.

Ray

User avatar
anthonyjclarke
Posts: 12
Joined: Tue Jun 16, 2015 8:44 pm

Re: Getting started on OSX?

Post by anthonyjclarke » Fri Jun 19, 2015 9:51 pm

@Ray, Oops ;-)

Doing now...

While I'm doing that - based on my board http://i.imgur.com/UJ9UIqq.jpg which board in the Arduino IDE should I select?

Thanks!

User avatar
RogerClark
Posts: 7157
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: Getting started on OSX?

Post by RogerClark » Fri Jun 19, 2015 10:02 pm

Sounds like you didnt install the Due in the Boards Manager.

The ARM compiler used to be installed by default, but the IDE team are continually messing around with whether the ARM compiler is installed by default, and even where they put it.

its possible the IDE team have screwed something up on 1.6.5 on OSX. I know they messed up on Windows and had to release a 1.6.5.r2, so its possible that there are bugs in the OSX version of 1.6.5 for third party cores that you are the first to encounter

I'd recommend you install 1.6.4 and then use the Boards manager to install the Due, this will then give you the ARM compiler in the correct location.

Or go over the dark side and use Arduino.org's copy of the Arduino IDE which installs the ARM compiler by default.

User avatar
mrburnette
Posts: 1829
Joined: Mon Apr 27, 2015 12:50 pm
Location: Greater Atlanta
Contact:

Re: Getting started on OSX?

Post by mrburnette » Fri Jun 19, 2015 10:09 pm

anthonyjclarke wrote:@Ray, Oops ;-)

Doing now...

While I'm doing that - based on my board http://i.imgur.com/UJ9UIqq.jpg which board in the Arduino IDE should I select?

Thanks!

Your board is a Maple Mini Rev2

Ray

User avatar
anthonyjclarke
Posts: 12
Joined: Tue Jun 16, 2015 8:44 pm

Re: Getting started on OSX?

Post by anthonyjclarke » Fri Jun 19, 2015 10:15 pm

@Roger, really appreciate your help here...

I'm nearly there (I think)....

So Boards Manager installed, now compiles Blink cleanly...

I press and try all permutations of "Anyway, what you need to do is put the board into perpetual bootloader mode.
Press reset then press and hold the other button, for about 2 seconds until the led appears to be flashing about twice a second.
When you release the button the led should continue to flash."

I do however have a Serial Port showing at bottom of IDE Window : http://i.imgur.com/JyxKTxQ.png

Upon upload I get this :


Sketch uses 12,764 bytes (11%) of program storage space. Maximum is 108,000 bytes.
Global variables use 3,264 bytes of dynamic memory.
java.io.IOException: Cannot run program "/Users/anthonyjclarke/Documents/Arduino/hardware/Arduino_STM32/tools/macosx/maple_upload": 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:158)
at processing.app.debug.Compiler.upload(Compiler.java:165)
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

User avatar
RogerClark
Posts: 7157
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: Getting started on OSX?

Post by RogerClark » Fri Jun 19, 2015 10:20 pm

umm

I've not seen that error before.

can you try setting the permissions on that script.

i did make a change to the maple-upload script during the week and i wonder if somehow the permissions that get uploaded to github got screwed up.

also make sure the permissions on the upload-reset binary are ok, as its a new file i added this week.

Post Reply