Go Down

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

avenue33

Connect your Arduino board and open Terminal.

Then type in
Code: [Select]
ls /dev/tty.usb*
and press return.

Result lists the available USB ports.

Copy and post the answer.

OK, when I connect my arduino uno and type this command I get:

Code: [Select]
/dev/tty.usbmodem1d11

When I run a program, the console show

Code: [Select]
Last login: Tue Sep 17 12:02:04 on ttys001
[~] screen /dev/tty.usbmodem1d11 9600


There are a lot of new line, I don't know if it is important.

And the last line that "Build All" console in XCode show is:

Code: [Select]
osascript -e 'tell application "Terminal" to do script "screen /dev/tty.usbmodem1d11 9600"'
tab 1 of window id 210



avenue33

Code: [Select]
screen /dev/tty.usbmodem1d11 9600

This is the standard command to open a serial console with the device attached to port /dev/tty.usbmodem1d11 at speed 9600 bps.

For me, everything is normal as this is the standard procedure.

I'm sorry I can't be of much help as I don't know the specifics of your configuration.

ScottG

I want to update my older Xcode projects that were created with earlier versions of embedxcode so they use the latest version of embedXcode.  Do I just need to update makefile and main.cpp files with the latest embedxcode versions? 

avenue33


I want to update my older Xcode projects that were created with earlier versions of embedxcode so they use the latest version of embedXcode.  Do I just need to update makefile and main.cpp files with the latest embedxcode versions? 


That's not an easy procedure as you need to copy the whole [font=Courrier]Configurations[/font] and [font=Courrier]Makefiles[/font] folders into your existing project.

Some of the utilities and the way the project is prepared may have also changed.

For that reason I haven't implemented the update of the existing projects.

ScottG

Sounds like it would be easier to make a new project and just copy my code into it then delete the old project.  Some sort of upgrade utility would be a nice feature to add to embedxcode; especially since you make frequent updates - which is a good thing.

Elijahg

#456
Sep 19, 2013, 01:31 am Last Edit: Sep 19, 2013, 01:35 am by Elijahg Reason: 1
For anyone who is using the new Xcode 5 released today, embedXcode does a check to verify the version of Xcode that's running and fails since it's not 4.x. Since there are few internal changes in Xcode's build process, you can skip the check by adding a # infront of lines 548 and 549 in Makefiles/Step2.mk.

Code: [Select]
# @if [ -f $(CURDIR)/About/About.txt ]; then $(CAT) $(CURDIR)/About/About.txt; fi;
# @if [ -f $(UTILITIES_PATH)/embedXcode_check ]; then $(UTILITIES_PATH)/embedXcode_check; fi


Also it's probably best to keep these compiled binaries disabled since the source code is unknown, and embedXcode_check gets your serial number then chats to a PHP script. Why do you need people's serial numbers Avenue33, without their permission? That is rather unscrupulous, and there's no reason I can see that you need a binary since everything can be done within the makefile, including version checking.

Code: [Select]
imac:~ Elijah$ strings /Users/Elijah/Dropbox/test/Heating3.1/Utilities/embedXcode_check
@NSt3__113basic_fstreamIcNS_11char_traitsIcEEEE
NSt3__113basic_filebufIcNS_11char_traitsIcEEEE
/Makefiles/Step1.mk
grep -e '.*USER_FLAG.*:=' "
true
grep -e '.*TEMPLATE.*:=' "
/Makefiles/Step2.mk
grep -e '.*RELEASE_NOW.*:=' "
PROJECT_FILE_PATH
PROJECT_NAME
ioreg -l | awk '/IOPlatformSerialNumber/ { print $4;}'
open "
/Utilities/serial.txt
ports available
====
====
: select one.
/Utilities/TemplateIcon.icns
port selected ====
embedXcode_check
ERROR
Xcode project not found
PRODUCT_NAME
XCODE_VERSION_ACTUAL
Xcode
required,
installed
BOARD_TAG
http://embedxcode.free.fr
/Utilities/embedXcode_prepare
message
/release.php?tag=
&goal=
&ver=
embedXcode+
release
Installed release is
.php
DOCTYPE html PUBLIC
==== New release
available ====
A new release of embedXcode is available.
Ignore
Go to Download
http://www.embedXcode.weebly.com/download
Have you contributed? Thanks!
==== Release
installed ====
==== Message ====
==== End of message ====
embedXcode is donationware.
Contribute
http://www.embedXcode.weebly.com/contact
zPLR

avenue33

Forum server has been down for a while, hence my late answer.


About Xcode 5

This new version 5 of Xcode has just been released and sure, you want to play with it!

On the first tests I conducted, all crashed, so please give me some time to update the template.

I'm afraid you don't realise how much work the development of embedXcode requires.


About embedXcode_check utility

This utility checks the availability of a new release of embedXcode and that the configuration suits the embedXcode requirements, especially for the preparation of the project --adding all the references and libraries.

To do so, it needs to read some variables from the system.


About read and used variables

I took a standard function that reads many variables. Actually, only a few of them are used.

Unfortunately, I haven't erased those unused variables from the program and I understand your concern about some specific variables. They're going to be removed from the next release.

I'm sorry if this has raised false alarm.

#458
Sep 19, 2013, 11:44 am Last Edit: Sep 19, 2013, 08:32 pm by flurin Reason: 1
I've just downloaded the last release supposing to get Release 105 as announced in your blog but I got Release 104.

Is there a reason why you don't specify the release on your download page?

avenue33

This specific page hadn't been updated.

It had the old icon and the link pointed to release 104.

The page has just been updated to release 105 with the new icon.


avenue33

Xcode 5 was officially released to the public and I rushed to test it.

Existing projects created with embedXcode on Xcode 4 open with no problem, although the utilities aren't compatible with Xcode 5.

However, creating a new project based on the embedXcode templates fails: Xcode quits unexpectedly.



Is it a bug due to the embedXcode templates, a bug due to this new Xcode release, or a new --and undocumented-- standard for the templates?

I know and understand how impatient you are to play with this new release of Xcode.

I have also to cope with the extra power this new release of Xcode requires and makes my old MacBook really slow.

In the meantime, stick with Xcode 4 and please, give me time to investigate and work on the next release that works.

Thank you!


Code: [Select]
screen /dev/tty.usbmodem1d11 9600

This is the standard command to open a serial console with the device attached to port /dev/tty.usbmodem1d11 at speed 9600 bps.

For me, everything is normal as this is the standard procedure.

I'm sorry I can't be of much help as I don't know the specifics of your configuration.


HI! Just to answer, now the serial is working! Why? I deleted every library that I don't need in makefile (in other words, I delete all library from the minimum project). Maybe some library cause the problem, maybe not. I also deleted all files that I don't need, maybe it helps.

And now I discovery the git problem is not exclusively from your project, every project has this problem. Thanks for all the support.

avenue33

#463
Sep 20, 2013, 07:18 pm Last Edit: Sep 20, 2013, 07:24 pm by avenue33 Reason: 1
Please find a new release of embedXcode.

• embedXcode • Sep 20, 2013 release 107 • Support for Xcode 5 on OS X 10.8
• embedXcode+ • Sep 20, 2013 release 107 • Support for Xcode 5 on OS X 10.8





embedXcode now supports the new Xcode 5 on OS X 10.8. Support for OS X 10.7 is deprecated

For more details, please refer to the Release Notes.

Thank you to the users who helped me with the implementation of Xcode 5!

Next challenge: update my old Mac!

Download

avenue33


HI! Just to answer, now the serial is working! Why? I deleted every library that I don't need in makefile (in other words, I delete all library from the minimum project). Maybe some library cause the problem, maybe not. I also deleted all files that I don't need, maybe it helps.

And now I discovery the git problem is not exclusively from your project, every project has this problem. Thanks for all the support.


Thank you for the update. I'm glad it works now.

My guess is there was a library among those you deleted that redefined the Serial port.

I confirm the erratic behaviour of Git on Xcode, whatever the project.

Go Up