Problems using Xcode with embedXcode

Status
Not open for further replies.

sbfreddie

Well-known member
All:
ReiVilo and I are trying to solve a rather strange problem with all the recent changes i.e.: Teensyduino 1.36, Xcode 8.3, Arduino 1.82, and embedXcode 7.3.3.
It seems Xcode builds and downloads everything just fine, but the code will not execute. The Teensy does nothing, not even the Serial.output works in the setup code.
This same code works just fine using Arduino. I wrote the program about two years ago and it has been working just fine up until April 3 when the system automatically installed a new version of Xcode and I also updated Teensyduino, Arduino, and embedXcode.

ReiVilo suggests that the problem lies with the "Time" Lib, he says when using the code:
setSyncProvider(RTC.get);
The Teensy locks up and won't get any farther in the startup sequence.

Any suggestions?

Thanks,
Ed
 
One more detail.

Teensyduino searches for and selects libraries automatically. Here is the output from Teensyduino:

Code:
Multiple libraries were found for "TimeLib.h"
 Used: /Users/ReiVilo/Documents/Projets/Arduino/libraries/Time
 Not used: /Applications/IDE/Teensyduino.app/Contents/Java/hardware/teensy/avr/libraries/Time
 Not used: /Applications/IDE/Teensyduino.app/Contents/Java/hardware/teensy/avr/libraries/Time
 Not used: /Applications/IDE/Teensyduino.app/Contents/Java/hardware/teensy/avr/libraries/Time
 Not used: /Applications/IDE/Teensyduino.app/Contents/Java/hardware/teensy/avr/libraries/Time

embedXcode requires those libraries to be listed on the main Makefile using two variables:

Code:
APP_LIBS_LIST = SPI interrupt Wire DS1307RTC
USER_LIBS_LIST = Time

APP_LIBS_LIST refers to libraries provided with Teensyduino, and USER_LIBS_LIST to the Library sub-folder of the sketchbook folder. This allow the user to fine tune which version of the library to use.


The only solution I see so far would consist on
  • starting the project from scratch,
  • adding each component at a time,
  • for each new added component, performing a build-link, and
  • checking that upload and run go successfully.
 
Status
Not open for further replies.
Back
Top