Arduino on Xcode Project — Official Thread

What are the advantages of having a case-sensitive file system?

I really don't have an answer for that, but is an option and I think there are some users using this out there...

Thanks

Please find a new release of embedXcode:

embedXcode • Feb 28, 2013 release 29 • Support for Digispark (build and link tested)

The Digispark by Digistump is an incredibly small —0,69x0,75" or 17,5x19,0mm only— but fully featured board —with I²C, SPI, ADC or PWM!

More tests are required for the upload as the process is not standard.

As always,
• Website: http://embedxcode.weebly.com
• Download: http://embedxcode.weebly.com/download
• User guide: http://embedxcode.weebly.com/tutorial

Enjoy :slight_smile:

Please find a new release of embedXcode:

embedXcode • Mar, 05 2013 release 30 • Full support for Digispark
embedXcode • Mar, 05 2013 release 31 • Automatic project configuration

Thanks to the Digispark boards received from Digistump, I ran the tests for the upload. build, link and upload work fine now.

Enjoy the power of a square inch!

The automatic project configuration procedure saves a lot of time. Before, a newly created project used to require many manual procedures, like declaring the .ino or .pde sketch file as C++ code file for colour syntaxing, or defining the directories for click-to-error, ... Now, you need just a click!

This new automatic project configuration works for all the supported platforms: Arduino, chipKIT, Digispark, LaunchPad MSP430 + FRAM + Stellaris, Maple and Wiring.

As always:
• Website: http://embedxcode.weebly.com
• Download: http://embedxcode.weebly.com/download
• User guide: http://embedxcode.weebly.com/tutorial

Enjoy :slight_smile:

I'm presently working on extending the automatic project configuration to include all the manual procedures, except for adding the user's libraries.

The major challenge is to understand how Xcode stores and structures the configuration of a project.

Stay tuned :slight_smile:

Hi,

I've exactly the same problem as eduardorcosta.

I've Arduino IDE 1.5 on Mountain Lion (case-insensitive system). It automatically create a folder "libraries" (with a lower L).

I installed embedxcode exactly like in the documentation. I can build and upload to my Arduino board.
But when I need a local library, it didn't work. When I build I become the following errors:

error: ble.h: No such file or directory
error: 'ble_begin' was not declared in this scope

To add libraries, I follow the guide at § 3.2.3.
If I try to change the Sketchbook libraries folder to "Libraries" (with upper L), the Arduino IDE doesn't compile anymore, and under xcode I become the following errors when compiling:

(all error for the app.cpp file,a file from the BLE library)

/Documents/Arduino/Libraries/BLE/app.cpp:17:22: Services.h: No such file or directory
/Documents/Arduino/Libraries/BLE/app.cpp:18:21: error: lib_aci.h: No such file or directory
/Documents/Arduino/Libraries/BLE/app.cpp:46: error: 'lib_aci_device_wakeup' was not declared in this scope
/Documents/Arduino/Libraries/BLE/app.cpp:56: 'lib_aci_send_setup_msg' was not declared in this scope
and 11 more errors…

It would be really great if somebody knows a solution for this problem.

Thanks a lot!
Kass

You could try with this set of makefiles where all /Libraries have been replaced by /libraries
obviously with libraries in the sketchbook folder.

One question for my understanding: what is the rationale for case-sensitive file system?

I hope this helps :slight_smile:

Makefiles.zip (32.6 KB)

Hey Avenue33,

thanx for your very quick answer !

Unfortunately the change of the makefile didn't help me. When I build I get the same error as when I tried to change the sketchbook libraries folder to Libraries (in the finder). :frowning:

In my first post, I wrote that about the case insentive stuff because you asked eduardorcosta if he uses a case sensitive file format.

Please find a new release of embedXcode:

embedXcode • Mar 15, 2013 release 32 • Full automatic project configuration

This new release enhances the automatic project configuration and includes:
• Declare .pde or .ino file as C++ code for code-sense, and
• Define the directory for the targets,
• Add all the cores, variants and libraries from the installed platforms under the group Resources,
• Declare all the files of the project for code-sense.

Major impact: project are much lighter, typically 2 MB instead of 16 MB!

The only remaining manual procedure is adding user's libraries.

The User Manual has been updated accordingly.

As always,
• Website: http://embedxcode.weebly.com
• Download: http://embedxcode.weebly.com/download
• User guide: http://embedxcode.weebly.com/tutorial

Enjoy :slight_smile:

Please find a new release

embedXcode • Mar 15, 2013 release 33 • Patch for libraries Libraries in sketchbook

This release fixes an annoying bug on the the folder name for the user's libraries.

The folder with the user's libraries in the sketchbook can now be spelled with or without a capital L.

Both libraries and Libraries names are valid.

Thanks Kass for reporting the issue!

As always,
• Website: http://embedxcode.weebly.com
• Download: http://embedxcode.weebly.com/download
• User guide: http://embedxcode.weebly.com/tutorial

Enjoy :slight_smile:

I've update the most recent embedXcode ,but when the project is created,the files in Configurations become blank. I've installed manually, but it does't work either.
Can you tell me how to deal with it?

I got it, change the "Config" to "Configurations" in the templates ....

The new release

embedXcode • Mar 18, 2013 release 33.2 • Sub-folders in Libraries

fixes a number of issues, including the one you mention.

Learn more.

Please find a new release of embedXcode:

embedXcode • Mar 21, 2013 release 34 • Support for Digispark release 1.04
embedXcode • Mar 26, 2013 release 35 • Support for OS X 10.7 Lion and 10.8 Mountain Lion

embedXcode now supports the new release of the IDE for Digispark, which is bundled with the Arduino 1.0.4 IDE.

The automatic project configuration tool runs now on both OS X Mountain Lion aka. 10.8 and OS X Lion aka. 10.7.

As always,
• Website: http://embedxcode.weebly.com
• Download: http://embedxcode.weebly.com/download
• User guide: http://embedxcode.weebly.com/tutorial

Enjoy :slight_smile:

Please find a new release of embedXcode

embedXcode • Mar 27, 2013 release 36 • Configurations folder name fixed

As always,
• Website: http://embedxcode.weebly.com
• Download: http://embedxcode.weebly.com/download
• User guide: http://embedxcode.weebly.com/tutorial

Enjoy

Please find a new version of mbedXcode

embedXcode • Apr 05, 2013 release 36 • Stability enhancement with revised main()

The revised main() function includes now copies of the main files from each platform and architecture. An issue with arm-none-eabi-ar release 4.7.1 has also been fixed. Teensy 3 and LaunchPad Stellaris were concerned.

As always,
• Website: http://embedxcode.weebly.com
• Download: http://embedxcode.weebly.com/download
• User guide: http://embedxcode.weebly.com/tutorial

Enjoy :slight_smile:

I'd like to try using XCode to program my Arduinos instead of the Arduino IDE. Here's what I have installed

Mac OSX 10.7.5
Arduini IDE 1.04
Xcode 4.6.1
EmbedXcocd Mar 27 Release 36
Doxygen 1.8.3.1
Graphviz 2.30

Note: My Arduino sketches are not in the default location, they are in /volumes/srgshare/Arduino Sketches/
My libraries are in /volumes/srgshare/Arduino Sketches/libraries/

I followed your installation instructions and then tried to create a new project. When I get to step 3.1.1 and run the Build procedure it fails with these errors

Shell Script Invocation Error
/volumes/srgshare/Arduino: No such file or directory

Shell Script Invocation Error
Sketches/test1/test1/Makefiles/step1.mk: No such file or directory

In your user manual, I can't get any of the hyperlinks to work.

Also, when you come out with new versions, how do I install them? Do I just double click on the package?

Thank you for your message and questions.

ScottG:
Note: My Arduino sketches are not in the default location, they are in /volumes/srgshare/Arduino Sketches/
My libraries are in /volumes/srgshare/Arduino Sketches/libraries/

I followed your installation instructions and then tried to create a new project.

Just to be sure, have you run the Arduino IDE just once and declared the sketchbook folder in Arduino > Preferences?

ScottG:
When I get to step 3.1.1 and run the Build procedure it fails with these errors

Shell Script Invocation Error
/volumes/srgshare/Arduino: No such file or directory

Shell Script Invocation Error
Sketches/test1/test1/Makefiles/step1.mk: No such file or directory

What files are in the folder? The Arduino.app should be in the default applications folder, i.e. /Applications/Arduino.app

ScottG:
In your user manual, I can't get any of the hyperlinks to work.

Thank you for noticing me. My website host doesn't allow files larger than 5 MB. The PDF is 10 MB so I have to compress it. Unfortunately, the compression removes the links.

ScottG:
Also, when you come out with new versions, how do I install them? Do I just double click on the package?

Yes, each release has a number so OS X can manage the updates.

Please let me know.

ScottG:
Note: My Arduino sketches are not in the default location, they are in /volumes/srgshare/Arduino Sketches/
My libraries are in /volumes/srgshare/Arduino Sketches/libraries/

I followed your installation instructions and then tried to create a new project.

avenue33:
Just to be sure, have you run the Arduino IDE just once and declared the sketchbook folder in Arduino > Preferences?

Yes. Before I installed embedXcode, I installed the latest version of Arduino IDE ran it and changed the default sketch directory in preferences.

ScottG:
When I get to step 3.1.1 and run the Build procedure it fails with these errors

Shell Script Invocation Error
/volumes/srgshare/Arduino: No such file or directory

Shell Script Invocation Error
Sketches/test1/test1/Makefiles/step1.mk: No such file or directory

avenue33:
What files are in the folder? The Arduino.app should be in the default applications folder, i.e. /Applications/Arduino.app

I'm not sure which directory your are referring too. This directory doesn't exist: "/volumes/srgshare/Arduino". I do have a directory called "/volumes/srgshare/Arduino Sketches". Could the space between "Arduino" and "Sketches" be causing a problem?

My Arduino.app file is located in my Applications directory, as is xcode.app

ScottG:
In your user manual, I can't get any of the hyperlinks to work.

avenue33:
Thank you for noticing me. My website host doesn't allow files larger than 5 MB. The PDF is 10 MB so I have to compress it. Unfortunately, the compression removes the links.

Can you make the uncompressed version available somewhere else, like slideshare.net?

ScottG:
Could the space between "Arduino" and "Sketches" be causing a problem?

Yes, I think so, as the tools used in the makefiles doesn't like spaces in folders and files names.

ScottG:
Can you make the uncompressed version available somewhere else, like slideshare.net?

Thank you for pointing me at slideshare.net. See http://us.slideshare.net/rei_vilo/embed-xcode-usermanual

I'm also considering another solution, publishing an ebook.