embedXcode: Arduino and Adafruit on Xcode

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
User avatar
avenue33
 
Posts: 132
Joined: Sat Dec 11, 2010 8:42 am

embedXcode: Arduino and Adafruit on Xcode

Post by avenue33 »

Develop your sketches for Arduino and Adafruit boards using Xcode!

embedXcode is a template for Xcode, the official IDE for Mac OS X. embedXcode eases development for the most popular embedded computing boards, including the Arduino boards.
eX.png
eX.png (13.45 KiB) Viewed 1832 times
——

Please find two releases:

• mpideXcode
Embedded Computing Project with MPIDE on Xcode 4.2

Feb 14, 2012 release g - multi-application, check-as-you-type, template
https://github.com/rei-vilo/mpideXcode


• embedXcode
Embedded Computing Template on Xcode 4.2

Feb 14, 2012 release 1 - initial release
https://github.com/rei-vilo/embedXcode

Templates for project and for files.
Last edited by avenue33 on Fri May 08, 2015 1:52 pm, edited 1 time in total.

User avatar
avenue33
 
Posts: 132
Joined: Sat Dec 11, 2010 8:42 am

Re: Arduino and chipKIT on Xcode 4.2: Project and Templates

Post by avenue33 »

I've just added to release 1 an Installation Guide.

As usual, the repository is :arrow: rei-vilo/embedXcode

User avatar
avenue33
 
Posts: 132
Joined: Sat Dec 11, 2010 8:42 am

Re: Arduino and chipKIT on Xcode 4.2: Project and Templates

Post by avenue33 »

New release Feb 18, 2012 release 2 - improvements with board selection and updated installation guide.

Image

Code is :arrow: here and documentation :arrow: there.

User avatar
avenue33
 
Posts: 132
Joined: Sat Dec 11, 2010 8:42 am

Re: Arduino and chipKIT on Xcode 4.2: Project and Templates

Post by avenue33 »

New releases add Arduino 1.0 support.

embedXcode • Mar 06, 2012 release 4 - Arduino 1.0 support
mpideXcode • Mar 06, 2012 release 7 - Arduino 1.0 support

Code is :arrow: here and documentation :arrow: there.

Next step is to add Wiring, if I find a Wiring S board to test the upload.

User avatar
avenue33
 
Posts: 132
Joined: Sat Dec 11, 2010 8:42 am

Re: Arduino and chipKIT on Xcode 4.2: Project and Templates

Post by avenue33 »

New releases add Wiring and LaunchPad support.

Image

embedXcode • Apr 05, 2012 release 7 - Wiring and LaunchPad platforms added
mpideXcode • Apr 05, 2012 release 10 - Wiring and LaunchPad platforms added

Code is here and documentation there.

Both build and upload have been successfully tested on Wiring S and LaunchPad msp430g2452 boards.

Energia is the Processing-based IDE for the LaunchPad platform.

User avatar
avenue33
 
Posts: 132
Joined: Sat Dec 11, 2010 8:42 am

Re: Arduino and chipKIT on Xcode 4.2: Project and Templates

Post by avenue33 »

Critical Decision Ahead

Most of the open points on embedXcode are about Xcode, especially keywords on the template.

Despite numerous calls for help, they're still unresolved. The Xcode template remains undocumented and there's no sign of openness from Apple. Apple seems to restrict Xcode to OS X and iOS platforms only.

So I'm considering to change for another IDE, with NetBeans as most probable solution. It's open, and documentation is available.

What do you think?

User avatar
avenue33
 
Posts: 132
Joined: Sat Dec 11, 2010 8:42 am

Re: Arduino and chipKIT on Xcode 4.2: Project and Templates

Post by avenue33 »

Please find the new releases for

embedXcode • Apr 16, 2012 release 9 • Code-sense reference defined by selected board
mpideXcode • Apr 16, 2012 release 12 • Code-sense reference defined by selected board
Installation Guide • Apr 16, 2012 release 6 • General update

All the manual settings are due to unknown template keywords. Your help is greatly appreciated.

Documentation is here and code is there.

User avatar
avenue33
 
Posts: 132
Joined: Sat Dec 11, 2010 8:42 am

Re: Arduino and chipKIT on Xcode 4.2: Project and Templates

Post by avenue33 »

embedXcode now supports Maple!

Image

embedXcode • May 23, 2012 release 10 • LeafLabs Maple implementation
mpideXcode • May 23, 2012 release 13 • LeafLabs Maple implementation
Installation Guide • May 23, 2012 release 7 • LeafLabs Maple implementation

The Maple reset script —which sends control signals over the USB-serial connection to restart and enter the bootloader— is written in Python and requires the PySerial library:
• Read the instructions at http://leaflabs.com/docs/unix-toolchain.html#os-x and
• Download PySerial library from http://pypi.python.org/pypi/pyserial.

Full documentation is available :arrow: here.

Enjoy :)

User avatar
avenue33
 
Posts: 132
Joined: Sat Dec 11, 2010 8:42 am

Re: Arduino and chipKIT on Xcode 4.2: Project and Templates

Post by avenue33 »

Please find the new releases of

embedXcode • Jun 03, 2012 release 11
mpideXcode • Jun 03, 2012 release 14
Installation Guide • Jun 03, 2012 release 8

As embedXcode manages multiple platforms, including the right libraries and dealing with syntax specificities are two cumbersome challenges.

Until now, the platform identification was solely based on the MCU, resulting on lengthy #if #elif #else #endif statements.

Now, embedXcode brings a new approach based on the IDE.

The Arduino, Wiring and Maple IDEs set an environment variable for the tool-chain.

For example, Arduino defines ARDUINO=100 and pass -DARDUINO=100 on to gcc, g++ and alike, Wiring sets -DWIRING=100 and Maple -MAPLE_IDE.

So the code is fully compatible between embedXcode and those IDEs. This new approach brings more compact and easier to read code, and doesn't require maintenance at code level when a new MCU appears.

This new IDE-based approach is optional, as not all IDEs include this approach. Let's mention Energia and chipKIT MPIDE, and hope they consider it!

As always, full documentation including features, tutorials, installation guide and code, is available at embedXcode website.

Enjoy ;)

User avatar
avenue33
 
Posts: 132
Joined: Sat Dec 11, 2010 8:42 am

Re: Arduino and chipKIT on Xcode 4.2: Project and Templates

Post by avenue33 »

I'm working on the next release of embedXcode. I plan to integrate an automatic documenting feature.

After having reviewed HeaderDoc, doxygen and appledoc, I picked doxygen.

Integration with Xcode is the main challenge. The idea is to select a specific target to build the documentation, obtain a PDF and integrate a codeset Xcode could use.

There's still a lot of work to do.

Stay tuned ;)

User avatar
avenue33
 
Posts: 132
Joined: Sat Dec 11, 2010 8:42 am

Re: Arduino and chipKIT on Xcode 4.2: Project and Templates

Post by avenue33 »

Please find the new release of embedXcode with the implementation of the self-documentation.

embedXcode • Jun 14, 2012 release 13
Installation Guide • Jun 14, 2012 release 9

Just add to your code and launch the Document target:

Image

A help document is generated and closely integrated in Xcode.

Quick Help provides details on documented functions:

Image

As always, learn more and download from here.

User avatar
avenue33
 
Posts: 132
Joined: Sat Dec 11, 2010 8:42 am

Re: Arduino and chipKIT on Xcode 4.2: Project and Templates

Post by avenue33 »

New version 14 of embedXcode brings a significant improvement on the size of the HEX and BIN files over the

embedXcode • Jun 25, 2012 release 14 • HEX and BIN files size optimisation

Sizes are now close to and even better than those obtained with the corresponding IDEs.

Image

All measures are in bytes.

As always, learn more and download from :arrow: here.

User avatar
avenue33
 
Posts: 132
Joined: Sat Dec 11, 2010 8:42 am

Re: Arduino and chipKIT on Xcode 4.2: Project and Templates

Post by avenue33 »

embedXcode on Dangerous Prototypes!

Read at :arrow: http://dangerousprototypes.com/2012/08/24/embedxcode/

User avatar
avenue33
 
Posts: 132
Joined: Sat Dec 11, 2010 8:42 am

Re: Arduino and chipKIT on Xcode 4.2: Project and Templates

Post by avenue33 »

Please find the new release of embedXcode

Sep 01, 2012 • Support for Arduino Leonardo

As the Arduino Leonardo requires a specific reset procedure due to its ATmega32U4, I had to develop a reset script in Python.

Also included in this release, support for Xcode 4.4.1 and for newly released Energia 0101E0008 and a fix for GraphWiz 2.28 crashing on Mountain Lion.

As always, find documentation and download at http://embedXcode.weebly.com

User avatar
avenue33
 
Posts: 132
Joined: Sat Dec 11, 2010 8:42 am

Re: Arduino and chipKIT on Xcode 4.2: Project and Templates

Post by avenue33 »

New! Installation Package

embedXcode is now installed with a standard installation package. Installation is faster and easier.

Image

The Installation Guide and User Manual has changed for User Manual.

The package includes the templates, the code snippets, and the User Manual.

Image

Find it at the download page!

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”