Show Posts
|
|
Pages: 1 [2] 3 4 ... 30
|
|
18
|
Development / Other Software Development / Re: Arduino on Xcode Project — Official Thread
|
on: April 29, 2013, 04:39:25 am
|
panStamp is a whole new platform and is not currently supported by Arduino.
I'd need a couple of these boards so I can investigate and add support to them.
From the IDE perspective, it's the same as Arduino Pro or Pro Mini (3.3V, 8Mhz) w/ATmega 328. This is the board I select in Arduino IDE when uploading to panstamp As I've said before, even if the panStamp is considered as a Arduino Pro or Pro Mini (3.3V, 8Mhz) w/ATmega 328 by the Arduino IDE, because it uses some obscure AVR library, it is a new platform for embedXcode.
|
|
|
|
|
19
|
Development / Other Software Development / Re: Arduino on Xcode Project — Official Thread
|
on: April 29, 2013, 04:28:27 am
|
Please find a new release of embedXcode.
embedXcode • Apr 28, 2013 release 47 • Pre-processing variable EMBEDXCODE
A project using embedXcode declares a pre-processing variable, EMBEDXCODE, with the release number as value.
For projects I created with an earlier release of embedxcode, will this pre-processing variable still be set? If not, how do I implement this feature on projects I've already created? embedXcode is a template, not a framework. So, yes, you need to update all the makefile and the main.cpp files with the new release.
|
|
|
|
|
20
|
Development / Other Software Development / Re: Arduino on Xcode Project — Official Thread
|
on: April 29, 2013, 04:27:10 am
|
In LocalLibrary.h I have a #include <> for a library in my sketchbook libraries folder, but I get an error that xcode can't find it. If I remove the include from LocalLibrary.h and put it in the .ino file, it works fine. I've spent two hours trying to figure out what I'm doing wrong - reading XCode 4 Unleashed, Google searches, but I can't figure it out. I'll but it's something really simple. Please help.
It is very hard to help you on a specific project and it is not the purpose of the thread. Just mention #include <> in both the main sketch and in the library.
|
|
|
|
|
23
|
Development / Other Software Development / Re: Arduino on Xcode Project — Official Thread
|
on: April 28, 2013, 01:49:37 am
|
I have a library called panstamp.h that won't compile in xcode. The problem is PRR isn't defined. It compiles fine in the Arduino IDE. PRR is defined in Arduino's library iom328p.h
The iom328p.h file is not an Arduino library. Instead, the iom328p.h file is part of the AVR toolchain. It is located deep under the toolchain folder. /Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/avr/include/avr/iom328p.h embedXcode is provided with the path to the tool-chain and no specific operation is carried out concerning one specific file. It is really strange as other files are used. I need the code of the project to investigate and see what's happening.
|
|
|
|
|
24
|
Development / Other Software Development / Re: Arduino on Xcode Project — Official Thread
|
on: April 27, 2013, 11:40:08 pm
|
I created a project in Xcode and everything works fine. I wanted to open it in the Arduino IDE and compile it, but the problem is since main.cpp is in the same directory as my .ino file, Arduino IDE opens up main.cpp as as tab. When I try to compile I get an error because main.cpp isn't needed by the Arduino IDE. Any suggestion as to getting around this?
Remember, with Xcode, you're working with true C++. The main.cpp is a standard for C++ but Arduino IDE hides it. The only solution is to create another folder with the name of the sketch (eg. embed1) and copy the main sketch .ino and all the .h .cpp except main.cpp.
|
|
|
|
|
25
|
Development / Other Software Development / Re: Arduino on Xcode Project — Official Thread
|
on: April 26, 2013, 06:48:40 am
|
It seems MarlinSerial also raises problems here, there and even at GitHub. As far as I understand, your project with the MarlinSerial library does compile with the Arduino IDE. Which release of the Arduino IDE are you using? Which Arduino board are you using? As a matter of facts, Arduino does a lot of things under the hood. In normal C++, if a library declares a public variable, another library can't declare the same public variable. Now, as I don't have the code for the MarlinSerial library, I can't be of much help. Try new release embedXcode • Apr 26, 2013 release 46 • Excluded libraries from core, application and userwhere excluded libraries include all libraries, core, application and user.
|
|
|
|
|