Go Down

Topic: Arduino on Xcode Project — Official Thread (Read 153 times) previous topic - next topic

avenue33

#205
Nov 22, 2012, 01:27 pm Last Edit: Nov 22, 2012, 01:35 pm by avenue33 Reason: 1
What target have you selected?


davidhux

Thank-you for such a quick response!

The only option I can have is All->My Mac 32bit.

The Project Targets/All Build Settings show
      Debug Board Port as tty.usbmodem*, and the Debug Board Tag as uno

avenue33


Thank-you for such a quick response!


You're welcome!


The only option I can have is All->My Mac 32bit.


Strange, you should have also Build, which builds and links without uploading, and many other options as shown is my previous post.


The Project Targets/All Build Settings show
     Debug Board Port as tty.usbmodem*, and the Debug Board Tag as uno


I the case your genuine Arduino Uno board --and not a compatible board that may use another driver to upload-- is connected, open the Terminal and type
Code: [Select]
ls /dev/tty.usb*

It might be the serial port is managed by /dev/tty.usbserial* instead of the default /dev/tty.usbmodem*


  • Arduino Uno rev 2 board = /dev/tty.usbmodem411

  • Compatible Uno board = /dev/tty.usbserial-A40084mc



In such a case, just edit the the Arduino UNO.xcconfig file with the USB port.

davidhux

Thank-you all for your attention.

I have run Blink under OSX Arduino - on port tty.usbmodem*, (As reported by /dev/tty) and no problem.

It would appear that I need to have the Arduino plugged in when I use XCode (?)

I then returned to Xcode and set the Option to BUILD (as suggested) and got 30 plus failures concerned with wiFi.cpp  - e.g. wifi_drv.h no such file or directory. No Serial Port error reported.





avenue33


I have run Blink under OSX Arduino - on port tty.usbmodem*, (As reported by /dev/tty) and no problem.

It would appear that I need to have the Arduino plugged in when I use XCode (?)


As mentioned page 49 of the User Manual, each target has a specific agenda:

Quote
• All cleans the files from a previous compilation, compiles and links, uploads and opens a serial window in Terminal.

So you need the board to be plugged-in to upload.

Quote
• Build compiles all the files, changed and unchanged, and links them.

No plugged-in board is required.



I then returned to Xcode and set the Option to BUILD (as suggested) and got 30 plus failures concerned with wiFi.cpp  - e.g. wifi_drv.h no such file or directory. No Serial Port error reported.


Please, you're going too fast...

If the blink example works on the Arduino IDE, have you tried it on Xcode before trying a more complex example?

You need to validate each step, with one single change per step.

About the WiFi, I guess some specific libraries need to be installed. Have you installed them? Does the sketch compile on the Arduino IDE? Have you check the sketchbook is correctly defined --page 9 sq., ibid.? Have you restricted some libraries for faster compilation --page 51, ibid.?



Go Up