Pages: 1 ... 39 40 [41] 42 43 ... 45   Go Down
Author Topic: Arduino on Xcode Project — Official Thread  (Read 134139 times)
0 Members and 1 Guest are viewing this topic.
New Jersey
Offline Offline
God Member
*****
Karma: 2
Posts: 517
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Using the new feature to turn on warning messages I'm mgetting an error for this code:
Code:
Serial.println(F("Hello World"));
The error is:  Only initialized variables can be placed into program memory area

It seems the warning might be a  GCC bug and shouldn't display at all. Regardless, is there a way to suppress this warning message?  My makefile settings are:
Code:
WARNING_OPTIONS = unused-variable unused-function unused-label unused-value

I looked around on GCC Warnings Page, but I wasn't able to figure it out.
Logged

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

Remember, warnings are warnings, not errors.
Logged


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

Remember, warnings are warnings, not errors.

True, but there are a lot of these warnings in some of my sketches and it really clutters things up, making it harder to spot the other warnings.
Logged

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

From the Releases Notes

Quote
The all option usually generates a very long list of warning messages, making the analysis difficult if not impossible. Moreover, only the 200 first messages are displayed.
The solution consists on selecting a scope and targeting specific warnings.
Logged


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

The solution consists on selecting a scope and targeting specific warnings.

I'd like to do this, but I'm not sure where to start in order to learn more about selecting a scope and targeting specific warnings.  I did some searching online but didn't find much.  Can you point me to a good resource for this?
Logged

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

I provide two sets of examples on the Release Notes.
Logged


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

I'm trying to upload to a Leonardo, but xcode doesn't see it.  I get this error:
Code:
---- Size ----
Binary sketch size:  21028 bytes (of a 28672 byte maximum)
Estimated SRAM used: 1385 bytes (of a 2560 byte maximum)
Elapsed time: 0.8 s

---- Reset ----
screen -X kill
No screen session found.

make: [reset] Error 1 (ignored)
sleep 1
9.2-RESET:  <  leonardo ./ ./
stty -f /dev/tty.usbmodem14644111 1200
sleep 2

---- Upload ----
9.3-UPLOAD:  <  leonardo ./
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avrdude -D -patmega32u4 -C/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/etc/avrdude.conf -cavr109 -b57600 -P/dev/tty.usbmodem14644111 -Uflash:w:Builds/embeddedcomputing.hex:i

Connecting to programmer: .avrdude: butterfly_recv(): programmer is not responding
make: *** [raw_upload] Error 1
Command /Applications/Xcode.app/Contents/Developer/usr/bin/make failed with exi

I don't have any other Arduinos plugged into the serial ports.  I'm using EmbedXcode+ 137.  I have not problem uploading to the Leonardo with the Arduino IDE (v1.05)
Logged

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

I don't have any other Arduinos plugged into the serial ports.  I'm using EmbedXcode+ 137.  I have not problem uploading to the Leonardo with the Arduino IDE (v1.05)

I was unable to replicate the issue with the exact same configuration —Arduino Leonardo, embedXcode 137, Arduino 1.0.5.

Have you tried and pressed the RESET button?

Please send me by mail the full Log Navigator output.
« Last Edit: March 10, 2014, 02:31:35 am by avenue33 » Logged


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

Please find a new release of embedXcode.
  • embedXcode  • Mar 10, 2014 release 138 • Support for Arduino Mini with ATmega328-3.3V
  • embedXcode+ • Mar 10, 2014 release 138 • Support for Arduino Mini with ATmega328-3.3V
Download
Logged


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

I'm trying to upload to a Leonardo, but xcode doesn't see it. 

I got xcode working with the Leonardo.  I press and release the reset button on the Leonardo.  As soon as I release the button I upload the sketch from Xcode.   My next problem is I can't get the serial monitor working in Terminal with the Leonardo.  I'll choose the Fast scheme and it opens the terminal windows, but not output from the Leonardo appears.
Logged

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

Serial ports in the Leonardo are tricky.

See Guide to the Arduino Leonardo and Micro for more details.
Logged


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

Serial ports in the Leonardo are tricky.
See Guide to the Arduino Leonardo and Micro for more details.

Even with the Arduino IDE, I've seen the Leonardo over serial port behave a bit finicky.  The only real advice in the link above was to hold down the reset button then upload - which works pretty well.  This is close to what I'm doing with Xcode, but it seems that Xcode will fail right away if it doesn't see a serial port while the Arduino IDE keeps looking for a bit.  So with the Arduino IDE you can start the upload, then release the reset button.  With Xcode you have to release the reset button then upload.  Unfortunately, this doesn't seem to help with the Serial Monitor in the Terminal window issue when using Xcode.  Do you have any tips for getting this to work?  Is there anything you can change in EmbedXcode that would help?
Logged

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

The problem with the Leonardo board is the way Serial ports are managed through USB. The latency you describe is caused by the operating system that needs to re-enumerate the USB devices. What version of Mac OS X do you have?

I'm investigating. In the meantime, just select the target Serial to open the serial console, or even better, use the great CoolTerm terminal.

Logged


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

The problem with the Leonardo board is the way Serial ports are managed through USB. The latency you describe is caused by the operating system that needs to re-enumerate the USB devices. What version of Mac OS X do you have?

I've got Mavericks running on a new iMac I got a month ago.
Logged

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

Mavericks should explain the slow USB enumeration.
Logged


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