Pages: 1 ... 40 41 [42] 43 44 45   Go Down
Author Topic: Arduino on Xcode Project — Official Thread  (Read 142166 times)
0 Members and 3 Guests are viewing this topic.
France
Offline Offline
God Member
*****
Karma: 11
Posts: 641
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Please find a maintenance release of embedXcode.

  • embedXcode  • Mar 12, 2014 release 139 • Stability improvement for Arduino Leonardo
  • embedXcode+ • Mar 12, 2014 release 139 • Stability improvement for Arduino Leonardo
Thanks ScootG!

Also, embedXcode runs fine on Xcode 5.1.

Download
Logged


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

I was using EmbedXCode (v1.39) with my Arduino Pro-Mini 3.3v and it was having trouble finding the serial port.  Uploading would fail right away.  So I ran "ls /dev/tty.usb*' in terminal and in the mini 3volt xcconfig file I changed

Code:
BOARD_PORT = /dev/tty.usbmodem*
to
Code:
BOARD_PORT = /dev/tty.usbserial-AH01PAW8

This solved the problem.  Is there a way to make EmbedXcode work better with usbmodem*?  I gather the whole serial port thing is a bit tricky.

Also, I noticed that a few times I uploaded the sketch and Xcode said it was successful but the changes I made didn't take, so the program really didn't upload - strange.   I did see the Tx and Rx LEDs blink rapidly.  This happened when the Target was "Upload", but sometimes it worked properly on Upload.  I changed the target to "Fast" and the program was actually uploaded, but it may have been a coincidence that it worked with the Fast target. 

I'm running on iMac with Mavericks and using Adafruit FTDI Friend.   This morning I installed EmbedXcode v1.41 and had the same issue with the serial port. 
Logged

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

Actually, you're using an external programmer which is not supported by embedXcode+. embedXcode+ already supports the following programmers:
  • Adafruit USBtinyISP programmer,
  • Protostack USBASP programmer and
  • Sparkfun 5V FTDI Basic programmer.
Each programmer —either included in the board like in the Arduino Uno or external as the Adafruit USBtinyISP or the one you use— has its specific address —e.g. /dev/tty.usbmodem1411 or /dev/tty.usbserial-AH01PAW8, respectively. The address is defined in the board configuration file.

The way to handle this is to change the default BOARD_PORT on the board configuration file as you did or to uncomment and specify a port after BOARD_PORT on the main makefile.

Code:
# BOARD_PORT is optional
# If not defined, BOARD_PORT = /dev/tty.usb* (default)
#
BOARD_PORT = /dev/tty.usbserial-AH01PAW8

For more information, please refer to
  • chapter: User the Project
  • section: Add Files
  • sub-section: Add a Configuration File for a New Board
  • sub-section: Define a Specific Programmer for a New Board
The Fast target uses the very same procedure for uploading as the All and Upload targets you may have used.

There are too many devices —Mac, programmer, board— and too many parameters involved —Xcode, embedXcode template, Arduino tool-chain, uploader, boot loader— as possible causes to identify one for sure.
« Last Edit: March 13, 2014, 08:14:49 am by avenue33 » Logged


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

Please find a release of embedXcode.

  • embedXcode  • Mar 14, 2014 release 141 • Stability improvement
  • embedXcode+ • Mar 14, 2014 release 141 • Stability improvement

This release fixes small glitches reported by the users. Thanks!

Download
Logged


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

The way to handle this is to change the default BOARD_PORT on the board configuration file as you did or to uncomment and specify a port after BOARD_PORT on the main makefile.

Thanks.
Are the board config files over-written when you upgrade an existing project to the latest version of EmbedXcode?


Logged

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

Thanks.
Are the board config files over-written when you upgrade an existing project to the latest version of EmbedXcode?

You're welcome! 

Yes, the board configuration files are going to be over-written by the upgrade.

Hence the solution of modifying the main makefile, which is preserved from being updated.
Logged


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

Hence the solution of modifying the main makefile, which is preserved from being updated.

Modifying the makefile seems like the best approach.  It would be really nice if EmbedXcode supported multiple BOARD_PORT definitions.  Embedxcode would try the first, if that failed, it would try the next, and so on.
Logged

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

embedXcode already manages multiple ports when 2 boards are connected.

A dialog box pop-ups and asks to select which one of the 2 boards to upload the sketch to.



Adding selection among multiple ports for one board would conflict with this feature.

Hardcoding or restricting the path of the port on the main makefile is an acceptable solution.


* Capture d’écran 2013-08-05 à 17.17.37-1.png (22.52 KB, 420x158 - viewed 250 times.)
Logged


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

Please find a new release of embedXcode.
  • embedXcode  • Mar 26, 2014 release 143 • Improved code sense for libraries
  • embedXcode+ • Mar 26, 2014 release 143 • Improved code sense for libraries
Release 143 of embedXcode and embedXcode+ includes improved code-sense for libraries.

Please refer to the release notes for more details.

Happy coding smiley

Download
Logged


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

I'd like to see the Iteaduino Lite board supported by EmbedXcode
See: http://imall.iteadstudio.com/iteaduino-lite.html

I got a bunch of these recently and they seem pretty nice.  You can operate at 3.3v or 5v and they have lots of pads so you can solder leads right to the board.  They only cost $8. 
Logged

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

I'm not sure adding this specific board makes sense.
  • With 8 KB of flash, this board seems pretty limited and expensive.
  • Adding more boards makes embedXcode more difficult to use and to maintain.
  • How many users for this board?
You can try the procedure Add a Configuration File for a New Board described in the User Manual.
I recommend using the support page at http://embedxcode.weebly.com/onedesk.html
« Last Edit: March 27, 2014, 03:16:51 am by avenue33 » Logged


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

I've been interviewed by Michael James of the Open Source Hardware Group.

  • OSHGroup 040: Use embedXcode to program multiple development boards with Arduino code


Go and listen the podcast!
Logged


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

Andy, a user of embedXcode, posted in his blog a review of the template for Xcode.
Go and read it at Stuff Andy Makes – DIY, make, tinker, play
Logged


Sweden
Offline Offline
Sr. Member
****
Karma: 11
Posts: 452
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

@avenue33

With the latest Cosa update I understand that you have got the Xcode code-sense work. Does this mean that the Cosa documentation is now available as pop-up boxes? As all member functions are fully documented with the doxygen-style this would give a major advantage when learning to use the Cosa classes. Most of the Arduino/Wiring code base is not documented in this style.

Are there any code-sense specific tags that can be used to improve documentation?

Also does the code-sense also handle auto-completion?

Cheers!
Logged

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

@kowalski

Yes, code-sense, auto-completion and tool-tip-texts are now nicely managed by embedXcode.

Here are two examples, taken from my review of Cosa:





I need to play more with Cosa before answering the other question.
Logged


Pages: 1 ... 40 41 [42] 43 44 45   Go Up
Jump to: