Go Down

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

jimaobian

Hi avenue33,
There is something wrong when preparing the project with ver.57. The "External Build Tool Configuration" seems to be unchanged after the first preparation.

avenue33

#391
Jul 10, 2013, 09:09 am Last Edit: Jul 10, 2013, 09:29 am by avenue33 Reason: 1
Please find a new release of embedXcode.

• embedXcode • Jul 06, 2013 release 57 • Elapsed time for build and link
• embedXcode • Jul 08, 2013 release 58 • Management of file names with space
• embedXcode • Jul 10, 2013 release 59 • Stability enhancement for Doxygen

Interim release 57 includes a measure for the elapsed time of building and linking.

Release 58 features modifications to manage projects even if they include a space in their name or in their paths.

However, it is strongly recommended not to use space in project and folder names.

Release 59 improves stability for Doxygen by avoiding unrecognised characters. For example, © is changed to (c). Doxygen is the tool used for writing [urlhttp://embedxcode.weebly.com/self-document-the-project.html]documentation[/url], directly from the code into PDF, HTML and native Xcode help file formats.

jimaobian, thank you for noticing me. Could you please check this new release solves the issue you reported?

I want to thanks all contributors and stress the importance of your help to continue this project, as Xcode 5 and OS X Mavericks are to require updating my old Mac.

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

Enjoy

rderimay

#392
Jul 10, 2013, 05:29 pm Last Edit: Jul 10, 2013, 05:39 pm by rderimay Reason: 1
I am having difficulties to use User Library files with EmbedXCode.
I set the path in Arduino preferences (Arduino 1.5b2 finds the libs I add, letting me thing I've done this correctly)
Bascialy, when I include a file with #include <SdFat.h> for example, it does not find it.
Also and it may be related to my problem, when I add .cpp and .h files in a subfolder in my project, they do not get compiled either.

Anyone a clue ?



EDIT : Found the problem to be a space in the arduino sketchbook folder...

avenue33


EDIT : Found the problem to be a space in the arduino sketchbook folder...


Thank you for reporting the issue and for sharing the cause...

Space in project, library, sketchbook folder names aren't recommended, as for the Arduino IDE. I've been working very hard on last releases the manage a volume name with a space...

Anyway, avoid names with space as much as possible!

rderimay

Now I am facing another problem when compiling.
I want to use the SdFat Library (http://code.google.com/p/beta-lib/downloads/list)
They define a const (uint8_t const  SD_CHIP_SELECT_PIN) at 2 different places (once in SdSpi.h and once in Sd2Card.h)
Their examples compile without problems in Arduino IDE but not in EmbedXCode.

Any clue ???

Thanks !

avenue33

Strange!

If the same constant is defined twice, it should normally raise an error.

I haven't found the SD_CHIP_SELECT_PIN definition in Sd2Card.h, only in SdSpi.h.

Now, be cautious with the Arduino 1.5 libraries.

Arduino 1.5 is still in beta and the libraries use a very new structure.

rderimay


Strange!

If the same constant is defined twice, it should normally raise an error.

I haven't found the SD_CHIP_SELECT_PIN definition in Sd2Card.h, only in SdSpi.h.

Now, be cautious with the Arduino 1.5 libraries.

Arduino 1.5 is still in beta and the libraries use a very new structure.


Yes, but I have to use a DUE and so, I have to use 1.5, which is sometimes a pita...
Line 65, you will find

uint8_t const  SD_CHIP_SELECT_PIN = SS_PIN;

avenue33

SdSpi.h line 65 = uint8_t const SD_CHIP_SELECT_PIN = SOFT_SPI_CS_PIN;

But on Sd2Card?

avenue33

#398
Jul 10, 2013, 08:22 pm Last Edit: Jul 10, 2013, 08:24 pm by avenue33 Reason: 1
The User Manual for embedXcode as a free e-book is now available.



(link)

Enjoy :)

rderimay


SdSpi.h line 65 = uint8_t const SD_CHIP_SELECT_PIN = SOFT_SPI_CS_PIN;

But on Sd2Card?



You are right. There is an old Sd2Card.h from 2009 included in the Arduino "Genuine" Libs, and this is the one file which collide with the one from the SdFat Lib from now which I am trying to use...
Is there a way to give the user libs precedence over the arduino ones in EmbedXCode ??

avenue33



Is there a way to give the user libs precedence over the arduino ones in EmbedXCode ??


Sure, RTFM = Read the Fabulous User Manual, on chapter 4 section 2, now as an e-book.

rderimay




Is there a way to give the user libs precedence over the arduino ones in EmbedXCode ??


Sure, RTFM = Read the Fabulous User Manual, on chapter 4 section 2, now as an e-book.


Hi there, ok ok. It was not so easy :-) First the manual was not available until today and second you need an iPad...
I did find one and read TFM now. Sorry for that.

Put SD and SD/utility in EXCLUDE_LIBS and now, it works.
Crazy isnt'it ?

Many thanks for your help and generally for this Xcode Template !
Once I finish my project, I will contribute you can count on me.

jimaobian

Problem solved with the latest version~~

Thank you!

avenue33


Put SD and SD/utility in EXCLUDE_LIBS and now, it works.
Crazy isnt'it ?


Yes :)


Many thanks for your help and generally for this Xcode Template !
Once I finish my project, I will contribute you can count on me.


You're welcome!

ScottG


The User Manual for embedXcode as a free e-book is now available.


I downloaded the iBook in iTunes, but it says I need an ipad to read it.  I don't own an ipad.  Is there another way to read it?

Go Up