Re: Xcode with Arduino
Re: Xcode with Arduino
- Subject: Re: Xcode with Arduino
- From: Wim Lewis <email@hidden>
- Date: Mon, 28 Jan 2013 17:41:43 -0800
On 28 Jan 2013, at 4:58 PM, Shane Yost wrote:
> I started messing around with a Arduino kit. It comes with a compiler you download off the Arduino's website for mac. I'm wanting to utilize Xcode as my compiler instead of the one I had to download off Arduino's website. Is there any good information/guidance on the correct procedure to upload source code to my Arduino board using Xcode. My current version is 4.5.2.
Xcode doesn't have a compiler that can generate AVR code. You could configure Xcode to use the crosscompiler and linker that comes with the Arduino distribution --- it's an oldish version of gcc --- and you could create a scheme or build phase that uploads the program to the arduino using avrdude, which is also inside the Arduino distribution somewhere. And the avr C libraries are also in there.
(At this point all you're using Xcode for is as an editor, pretty much.)
I think Arduino, being an offshoot of Wiring/Processing, preprocesses your source slightly before handing it to the compiler, so you may not be able to write precisely the same code that you would in the Arduino IDE when using Xcode.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden