Show Posts
Pages: [1]
1  Development / Other Software Development / Re: Arduino on Xcode Project — Official Thread on: December 23, 2013, 02:41:19 pm
please ignore these last few posts.... I think I figured out what was going on and it was a code issue.  if it comes back I'll try to  ask again with more info

Thanks for trying to help me.
2  Development / Other Software Development / Re: Arduino on Xcode Project — Official Thread on: December 23, 2013, 10:35:47 am
thanks, no idea what I am doing incorrectly.

If I look in the builds directory under my project I can see that it created .d and .o for every file in the libraries directory, including all the example code.
3  Development / Other Software Development / Re: Arduino on Xcode Project — Official Thread on: December 23, 2013, 09:17:35 am
I understand, my confusion is probably more with Xcocde than embedXcode.  I am having lots of problems with the way Xcode deals with files in the Arduino libraries folders.  Most 3rd party libraries contain examples as well as the regular library files.  Most of my build issues are related to the build target trying to compile everything in the example directories inside the library directories.  I had one library that contained code that would not build and caused build failures in my project.  Now I am having trouble because I want to put a file in my project that has the same name as a file in one of the example directories.  MY build fails because lots of things have multiple definitions. 

Any idea what I am doing wrong or how to tell Xcode/embedXcode not to build those examples?

Thanks
4  Development / Other Software Development / Re: Arduino on Xcode Project — Official Thread on: December 20, 2013, 06:59:37 pm
I am using the QP framework libraries in my code.  The are in the arduino/libraries folder.  I can build the code in both the arduino IDE and in Xcode.  However even after the successful build in Xcode, the include statement to one of the .h files in the library has a red exclamation point next to it that says "file not found"  Because of this Xcode can not find the definition of anything defined in that file, or the ones it includes.  This seems weird because the code builds.

Any ideas?
5  Development / Other Software Development / Re: Arduino on Xcode Project — Official Thread on: December 16, 2013, 09:07:26 pm
thanks again I really appreciate the help!.  but I quit the terminal program and it does not solve anything.  Is there any work around?  Is there a process I can kill or some other action?  As long as I need to juggle the IDEs this is going  to come up

edit:  hit or miss but it seems if I quit everything and then disconnect the usb cord, restart the Arduino IDE and then reconnect the USB I can get them to talk again  Doesn't always work though.
6  Development / Other Software Development / Re: Arduino on Xcode Project — Official Thread on: December 16, 2013, 07:56:54 pm
I'm not sure, but I don't see how that would solve my dilemma.  QM wants to create the ino files from scratch and so does Xcode.  Plus I have a bunch of existing sketches already written in the standard IDE I would like to be able to use in Xcode.  It's frustrating needing to juggle 3 different IDEs.  If I could I would prefer to use Xcode as much as possible.

Thanks for the quick response.

edit:
Also, has anyone else had issues with not being able to upload to a Mega in the standard IDE after doing an upload via Xcode?  This is happening it me.  I can upload in Xcode now but in the normal IDE I can't even upload the blink example.  I've tired quitting everything and even rebooted a few times.  Nothing seems to work.  The IDE says the device is in use


7  Development / Other Software Development / Re: Arduino on Xcode Project — Official Thread on: December 16, 2013, 03:53:26 pm
I apologise if this basic question is already andswered but I could not find it via search or through google...

I just started using EmbedXCode (and Xcode for that matter).  I have been able to create projects and download them to my Arduino Mega, all works very nicely.  The IDE is so much nicer than the standard one.

However, I have not figured out how to create a new project from existing code that was created in another tool.  The only way I have been able to accomplish this is to create a new project with the same name as my original sketch (.ino) and then copy/paste the code from the original script into the one created by Xcode when the project was created.

Is it possible to point Xcode at an existing code when creating a new project?

One reason I want to do this is I am also playing with the QM modelling tool (which is also it's own IDE), whcih generates code and I would like to be able to work with that code in Xcode.

Thanks in advance.
8  Development / Other Software Development / Re: QP state machine framework for Arduino on: October 12, 2012, 11:14:31 am
I am very interested in using this framework for my project.  I am an experienced but rusty programmer but new to Arduino.  I'm used to thinking in higher level object oriented methods, know UML and understand state machines.

Becasue the QP framework uses the timers and interupts of the Arduino does this interfere with other functions that also use times such as Pulse Width Modulation for the built in analogwrite functions or the functions in the standard Servo library?

I am using an ATMega2560 board with the AdaFruit Motor Shield on it and the AFMotor library (which used PWM) and the Servo to control several motors and servos.  I've only done simple test code at this point to verify all my hardware works together in a very simple run time environment. 

I'd like to make sure there won't be a conflict before investing the time in learning and implementing anything in the QP Framework.

So far I have not been able to find any examples of project using this framework on Arduino, could you point me to any?

Thanks in advance.
Pages: [1]