Arduino error on launch (osx intel)

Hi there I've tried to install arduino on a new machine (intel mac) and get the following error (see pic). Have you ever seen this before? any suggestions on what might be causing it? thank you.

http://www.flickr.com/photos/61113983@N00/121949069/

I knew this was going to happen at some point:) :)

that message means that the library used by arduino to communicate with the board is not compatible with your processor

we will have to recompile the code for mac os x intel but since none of us has such a machine we'll need to put our hands on one first...

aparently rosetta doesn't apply to java native interface

massimo

Hey Massimo I'm not quite the java guru but if you give me precise instructions I can have a go myself. I've got xcode & eclipse running on the machine already...

Thanks.

good this is what I wanted to hear :)))

you need to get the rxtx package from rxtx.org

then you build the library and replace the one that comes with arduino

the java part should work.

now the problem is to see if the gcc compiler will run

but that's chapter 2

massimo

Hi

I can try this as well. The latest version of processing has used the new rxtx and it doesn't seem to be working.

I will try and see what happens over the next week or so.

Cheers

Nick

Hi Massimo I had a go at building rxtx. downloaded done ./configure; make; sudo make install; without problems I copy the new library to the Arduino folder and now the app launches (which is good news :slight_smile: ) The problem I get now is that I try to run serial_write_basic for instance and get the following error…

Error inside Serial.()
gnu.io.PortInUseException: Unknown Application
at gnu.io.CommPortIdentifier.open(CommPortIdentifier.java:354)
at processing.app.Serial.(Serial.java:127)
at processing.app.Serial.(Serial.java:72)
at processing.app.Uploader.downloadJava(Uploader.java:130)
at processing.app.Sketch.upload(Sketch.java:1570)
at processing.app.Sketch.exportApplet(Sketch.java:1629)
at processing.app.Editor.handleExport(Editor.java:1724)
at processing.app.EditorButtons.mouseReleased(EditorButtons.java:343)
at java.awt.Component.processMouseEvent(Component.java:5166)
at java.awt.Component.processEvent(Component.java:4963)
at java.awt.Container.processEvent(Container.java:1613)
at java.awt.Component.dispatchEventImpl(Component.java:3681)
at java.awt.Container.dispatchEventImpl(Container.java:1671)
at java.awt.Component.dispatchEvent(Component.java:3543)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3527)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3242)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3172)
at java.awt.Container.dispatchEventImpl(Container.java:1657)
at java.awt.Window.dispatchEventImpl(Window.java:1606)
at java.awt.Component.dispatchEvent(Component.java:3543)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:480)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:178)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:170)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
[VP 1] Device is not responding correctly.

BTW I have also tried with the serial library in prcessing 0111 which claims to be universal binary and it doesn’t work either I get the same error. :-/

This exception means that the serial port is currently used by another application. Make sure that there is only one application accessing the port at once. For example, if you have a terminal program like zTerm or QuickTerm open, make it disconnect from the serial port before trying to open the port in Arduino IDE's Serial Monitor.

Also, make sure that the correct device is selected under "Tools" in Arduino's IDE.

Another question to you as a Mactel owner. Did you try compiling a sketch? I wonder if the avr-gcc toolchain works in Rosetta.

ok I've done a bit more homework. Processing has the same problems with the serial library see here: http://dev.processing.org/bugs/show_bug.cgi?id=315 I'm not entirely sure how to proceed from here if any of you have suggestions I'd be happy to give it a try.

gck thanks for your suggestions I've checked serial device selected and made sure there where no other apps using the port. Sketches compile fine..

Thanks.

One thing to note is that you should still be able to upload sketches to the board despite that exception. If the program currently on the board sends or receives serial data, you may need to reset and hit the upload button twice. I'll try to take a look at the RXTX site and see what the deal is.

Just tried it on my MacBook Pro.

  1. Compiling rxtx lib from source made Arduino IDE launch successfully, as reported before.
  2. Compiling sketches works.
  3. Uploading a program (double counter example) works occasionally after hitting reset button twice.
  4. Serial monitor in Arduino IDE does not work.
  5. While program is running, on-board RX LED is the only feedback (blinks in intervals of 1000 ms in this example)
  6. RX LED stops blinking after approximately 60 seconds (blinking like 53 or 54 times, I even counted)

Any clues? Might #6 be an issue to be discussed elsewhere? I observed this effect on two separate Arduino boards that I have available here (connected to the mactel when trying, not tested on a PC machine yet). The example program itself should loop forever and continue serialWriting, right?

There might be a clue to help us here -

http://mailman.qbang.org/pipermail/rxtx/Week-of-Mon-20060306/006521.html

all this may not be necessary if you don't mind using windows XP on your shinny new Intel Mac.....

http://www.apple.com/macosx/bootcamp/ :D

There might be a clue to help us here -

http://mailman.qbang.org/pipermail/rxtx/Week-of-Mon-20060306/006521.html

created the var/lock/ directory (being uucp group member), checked for pre-existing /var/spool/uucp/ lock files... didn't help. did you succeed?

meanwhile, I'm having a hard time figuring out the appropriate interval for pressing the reset button twice.

as to that xp bootcamp solution... hmmm... it just doesn't feel right. :-/ (gonna try it, anyways.)

as to that xp bootcamp solution... hmmm... it just doesn't feel right. :-/ (gonna try it, anyways.)

tell me about it, i bought a mac for a reason, the reason being its not running windoze.

as to that xp bootcamp solution... hmmm... it just doesn't feel right. :-/ (gonna try it, anyways.)

tell me about it, i bought a mac for a reason, the reason being its not running windoze.

OK, things get a little off-topic now. I didn't get to try boot camp yet, but others did. Make sure you read the comments on this, too.

http://hackaday.com/entry/1234000557073625/

The new Processing release (112) is working with a bluetooth serial device and Macbook for me.

They have updated the serial port script to set up the correct folder - worked first time here.

May be useful info for Arduino.

Cheers

Nick

Have finally had time to try arduino with Mactel.

I 'm not very fluent with building from source so took a copy of the librxtxSerial.jnilib from processing 112 and found RXTXcomm.jar in the arduino package so replaced it with the one from processing. Have run new setup serial script from Processing. Using latest ftdi drivers for intel mac. Arduino launches and lists serial ports under tools.

Have programmed arduino using Powerbook to send letter and flash led.

Processing receives transmitted letter from arduino, Zterm recieves letter and so does serial monitor in Arduino.

At first got lots of programmer not responding messages on attempting upload.

Edited prefs file serial.download_rate to 9600 and then it worked.

Currently programming with single reset press (although this is currently while arduino is only blinking led, not sending message to computer).

So for me it is currently working on a Mactel. :) :) :)

Cheers

Nick

Hello all,

nick: where exactly did you find the RXTXcomm.jar file? I replaced the ibrxtxSerial.jnilib file with the one from processing, but I am not able to replace any RXTXcomm.jar file, since I cannot find it within the arduino package.

So when I start arduino and then go to the TOOLS-menue I get the following error-message:

java.lang.NoClassDefFoundError thrown while loading gnu.io.RXTXCommDriver

I am working on a Intel-Mac and have installed the latest ftdi drivers.

Any help will be much appreciated. Thank you, -Helge

ok, I could solve the problem now. If anybody else is interested, I write how it´s done:

Within the arduino program the file RXTXcomm.jar file which you have to replace with the one from processing is found here:

right-click on arduino 03.app and choose "show packet contents". Then goto contents/ressources/java/ There you´ll find the RXTXcomm.jar file.

With now both the RXTXcomm.jar file and the ibrxtxSerial.jnilib file having replaced with the files found in processing, it all works well, it seems. (as nick has stated before)

Regards, Helge

Sorry should have left slightly clearer explanation - I was running off to play with it more ;)

Cheers

Nick