thanks now it works
New release 2.3 of embedXcode support the Little Robot Friends board and includes many stability improvements for Arduino boards.
This is the first time I write in this forum so hello everybody, and thank you for your help!
You can see my problem in the attachment.
I'm using an Arduino Uno board, with Xcode 6.1, OS X 10.10.1, and the IDE for Arduino with version 1.06.
I don't really know what to do with the error, so any help will be welcome.
Anyway thank you for your time!
Hi!
Sorry for the late answer.
I can't manage to replicate the issue with current version 2.3.2 of embedXcode.
- Which release of embedXcode are you using?
- Which board are you trying to compile for?
Feel free to use the Help Portal.
Hello,
great job, i am new in mac world (come from windows) and very happy with your solution.
Some problems and questions anyway :
I am trying to make a library directly with some different sketch in subfolder example.
It seems not possible to do that with your solution ?
If i try to put my sketch (ino file) in a subfolder this one is no more detected (i updated the include of the main.cpp). The sketch need to be at the base folder of the project ? This is quite unusual in a library.
After, i think that all source code are always compilated, buikld target selection seems not used, isn't it ?
So even if i success to have multiple ino file in some different subfolder (different example for my library), it seems impossible to select which on is used to be compilated ?
If i understand well, with this solution, i need to make one project for the library , then one project for each example ? Is this the solution ?
ANyway, great job ! thanks for that.
Fabien
fletort:
great job, i am new in mac world (come from windows) and very happy with your solution.
You're welcome!
I'm not sure to understand all your questions. I'll try my best.
fletort:
I am trying to make a library directly with some different sketch in subfolder example.
It seems not possible to do that with your solution ?
A project has one unique .ino
sketch and as many .h + .cpp
libraries.
Depending on the edition you're using, libraries can be placed in sub-folders and selected or ignored.
fletort:
If i try to put my sketch (ino file) in a subfolder this one is no more detected (i updated the include of the main.cpp). The sketch need to be at the base folder of the project ? This is quite unusual in a library.
For the embed1
project, the unique embed1.ino
sketch should be under embed1/embed1/embed1.ino
.
fletort:
After, i think that all source code are always compilated, buikld target selection seems not used, isn't it ?
So even if i success to have multiple ino file in some different subfolder (different example for my library), it seems impossible to select which on is used to be compilated ?
Which target selection are you referring to?
Again, a project has one unique .ino
sketch and as many .h + .cpp
libraries.
fletort:
If i understand well, with this solution, i need to make one project for the library , then one project for each example ? Is this the solution ?
Yes.
A project is not a workspace.
Feel free to use the Help Portal.
I have installed the new (260) embedXcode on two different computers and followed the video (two years and a couple of Xcode versions out of date) and every installation instruction I can find, but it just isn't working. The installation instructions are not very clear. Other than "install it and hit Command-B to build", there is little to go on. The Schemes in the video are vanished in Xcode 6.1.
I see things like Boards in the configuration, but the only choice is "My Mac" and it just doesn't build. Is there a more up-to-date tutorial somewhere? Is there a thread on a forum for Xcode 6.1 somewhere? I can't find it. Is anybody using embedXcode?
Thanks!
Glenn Reid
Silicon Valley
Hi!
The installation video was shot by an enthusiast user.
Have you read the User Manual?
The User Manual provides step-by-step instructions as is available as both an iBook and a PDF document. I update for each new release of embedXcode.
Please download it from this page at the embedXcode website. You just need to scroll down a little. The User Manual is also mentioned at the Tutorial section with a link to download it.
Please note embedXcode has a dedicated page at the Arduino Playground with all the relevant links.
Read The Fabulous Manual
Please find a new release of embedXcode.
- embedXcode • Feb 20, 2015 release 2.6.2 • Support for Arduino 1.6.0
- embedXcode+ • Feb 20, 2015 release 2.6.2 • Support for Arduino 1.6.0
- embedXcode Tools • Jan 08, 2015 release 250 • Updated pre-compiled frameworks
Arduino version 1.6.0 is a welcomed release as it replaces both Arduino 1.0.6 and Arduino 1.5.8. embedXcode will focus on Arduino 1.6.0.
I've got a few versions of Arduino on my Mac, including 1.6.0. Do I have to set anything in Xcode so it uses a particular one?
No, embedXcode goes for the Arduino.app and adapts itself automatically to the version, 1.0.6, 1.5.8 or 1.6.0.
On my Mac IDE ver 1.6.0 is named Arduino_160.app. I still have an older version (1.0.5) that's named Arduino.app.
Please find a new release of embedXcode.
- embedXcode • Mar 02, 2015 release 2.6.3 • Stability improvement for Arduino 1.6.0
- embedXcode+ • Mar 02, 2015 release 2.6.3 • Stability improvement for Arduino 1.6.0
- embedXcode Tools • Jan 08, 2015 release 250 • Updated pre-compiled frameworks
Release 2.6.3 improves stability for Arduino 1.6.0.
Not all the plug-ins are compatible with Arduino 1.6.0, so please refrain from updating them. Section Install the Template • Install the IDEs of the Boards • Check the IDE and Plug-In Options lists the recommended versions of the Arduino IDE for each plug-in.
Avenue 33,
I think I'm a bit confused as to where I define functions within the program. Im getting the error " 'Fancontrol' was not declared in this scope" when the function being called on is after the loop function at the bottom of the sketch.
Ive attached a screen shot of the code and error.
Should the 'fancontrol' function code be relocated to one of the local library files? if so where exactly?
Thanks for your help!
If youe using Emberded X then you have to declare using C/C++ including .h files otherwise Xcode will throw this sort of error.
The Artdunio IDE fiddles many aspects of the correct way to program in C++ so to use Xcode you need to understand the correct way of doing things..
@kervyn
Please refer to Find Solutions to Issues • Check Compatibility • Declare Prototypes on Main Sketch on the User Manual.
Projects developed by embedXcode are highly compatible with the standard IDEs, like Arduino and alike.
However, unlike the standard IDEs, code with embedXcode is true C++.The main consequence of true C++ is the need for declaring prototypes of the functions in the main sketch.
In the example provided below, the prototype for fancontrol() is required, as fancontrol() is called by loop() but defined after.Without prototyping fancontrol(), compilation would raise an error. The standard IDEs add the prototypes on the main sketch.
Prototypes aren’t required for libraries as they are already included in the header file.
Prototypes are fully compatible with the standard IDEs.
As usual, reading the user manual is highly recommended.
Please find a new release of embedXcode.
embedXcode 2.7 adds two new platforms.
- Added support for panStamp AVR and NRG boards.
- Added support for Intel Edison on Wiring / Arduino framework release 1.6.1
- Added support for Intel Edison on Yocto framework for embedXcode+.
embedXcode 2.7 also updates the IDEs.
- Updated support for Arduino IDE 1.6.1.
- Updated support for MPIDE 2014-08-21 and 1.5 beta.
- Updated support for RedBearLab as at March 11, 2015.
- Updated support for Teensyduino 1.21.
- Updated support for Wiring 1.0.1.
Please check the release of the official IDEs as previous versions are no longer supported. With the release of Arduino IDE 1.6.1, previous versions 1.0.6 and 1.5.8 are no longer supported except for plug-ins.
The last release of the Arduino IDE 1.6.2 inaugurates a radical new internal structure and is not compatible with previous versions.
The standard ASCII files for boards, platforms and programmes are gone! They are no longer under the folder /Applications /Arduino.app /Contents /Java /hardware /arduino /avr /boards.txt but they have moved to the hidden folder /Users /ReiVilo /Library /Arduino15 /packages /arduino /hardware /avr /1.6.2 /boards.txt.
Moreover, the support for the Arduino Due doesn't come as standard. An additional download is required. Call the menu Tools > Boards > Boards Manager and then click on Download for the Arduino SAM Boards.
Worse, none of the plug-ins developed by other providers of boards works with this next release 1.6.2.
For all those reasons, embedXcode doesn't support release 1.6.2.
Please install and use Arduino release 1.6.1, which is supported by embedXcode.
avenue33:
The last release of the Arduino IDE 1.6.2 inaugurates a radical new internal structure and is not compatible with previous versions.The standard ASCII files for boards, platforms and programmes are gone! They are no longer under the folder /Applications /Arduino.app /Contents /Java /hardware /arduino /avr /boards.txt but they have moved to the hidden folder /Users /ReiVilo /Library /Arduino15 /packages /arduino /hardware /avr /1.6.2 /boards.txt.
Moreover, the support for the Arduino Due doesn't come as standard. An additional download is required. Call the menu Tools > Boards > Boards Manager and then click on Download for the Arduino SAM Boards.
Worse, none of the plug-ins developed by other providers of boards works with this next release 1.6.2.
For all those reasons, embedXcode doesn't support release 1.6.2.
Please install and use Arduino release 1.6.1, which is supported by embedXcode.
how about the newest version of Arduino IDE 1.6.3 ?
elkafirmanda:
how about the newest version of Arduino IDE 1.6.3 ?
Same answer, as Arduino 1.6.3 shares the same structure as 1.6.2, incompatible with previous releases 1.0.6 and 1.5.8.
My advice is to stick with 1.6.1.