Pages: 1 ... 29 30 [31] 32 33 ... 45   Go Down
Author Topic: Arduino on Xcode Project — Official Thread  (Read 133152 times)
0 Members and 1 Guest are viewing this topic.
France
Offline Offline
God Member
*****
Karma: 11
Posts: 637
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Connect your Arduino board and open Terminal.

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

Result lists the available USB ports.

Copy and post the answer.
Logged


Offline Offline
Newbie
*
Karma: 0
Posts: 17
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Code:
/dev/tty.usbmodem1d11

When I run a program, the console show

Code:
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:
osascript -e 'tell application "Terminal" to do script "screen /dev/tty.usbmodem1d11 9600"'
tab 1 of window id 210

Logged

France
Offline Offline
God Member
*****
Karma: 11
Posts: 637
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Code:
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.
Logged


New Jersey
Offline Offline
God Member
*****
Karma: 2
Posts: 517
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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? 
Logged

France
Offline Offline
God Member
*****
Karma: 11
Posts: 637
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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 Configurations and Makefiles 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.
Logged


New Jersey
Offline Offline
God Member
*****
Karma: 2
Posts: 517
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Offline Offline
Jr. Member
**
Karma: 0
Posts: 52
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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:
# @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:
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
« Last Edit: September 18, 2013, 06:35:10 pm by Elijahg » Logged

France
Offline Offline
God Member
*****
Karma: 11
Posts: 637
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged


Switzerland
Offline Offline
Jr. Member
**
Karma: 1
Posts: 66
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
« Last Edit: September 19, 2013, 01:32:45 pm by flurin » Logged

France
Offline Offline
God Member
*****
Karma: 11
Posts: 637
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.


* old_new.png (91.53 KB, 725x281 - viewed 17 times.)
Logged


Switzerland
Offline Offline
Jr. Member
**
Karma: 1
Posts: 66
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Okay, thanks.
Logged

France
Offline Offline
God Member
*****
Karma: 11
Posts: 637
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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!
Logged


Offline Offline
Newbie
*
Karma: 0
Posts: 17
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Code:
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.
Logged

France
Offline Offline
God Member
*****
Karma: 11
Posts: 637
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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
« Last Edit: September 20, 2013, 12:24:00 pm by avenue33 » Logged


France
Offline Offline
God Member
*****
Karma: 11
Posts: 637
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged


Pages: 1 ... 29 30 [31] 32 33 ... 45   Go Up
Jump to: