Go Down

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

avenue33

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

ScottG

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: [Select]
BOARD_PORT = /dev/tty.usbmodem*
to
Code: [Select]
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. 

avenue33

#617
Mar 13, 2014, 02:08 pm Last Edit: Mar 13, 2014, 02:14 pm by avenue33 Reason: 1
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. [font=Courier]/dev/tty.usbmodem1411[/font] or [font=Courier]/dev/tty.usbserial-AH01PAW8[/font], respectively. The address is defined in the board configuration file.

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

Code: [Select]
# 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.

avenue33

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

ScottG


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


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



avenue33


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.

ScottG


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.

avenue33

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.

avenue33

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 :)

Download

ScottG

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. 

avenue33

#625
Mar 27, 2014, 09:14 am Last Edit: Mar 27, 2014, 09:16 am by avenue33 Reason: 1
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

avenue33

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!

avenue33


kowalski

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

avenue33

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

Go Up