ChronoDot example wont compile
Moderators: adafruit_support_bill, adafruit

ChronoDot example wont compile

by wheeliekiing on Wed Aug 29, 2012 11:59 am

Using the Arduino IDE v1.0.1 on ubunto 10.04 LTS, I get the following error when trying to compile the example code shown on http://docs.macetech.com/doku.php/chronodot

/usr/share/arduino-1.0.1/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../avr/lib/avr6/crtm2560.o: In function `__bad_interrupt':
../../../../crt1/gcrt1.S:193: relocation truncated to fit: R_AVR_13_PCREL against symbol `__vector_36' defined in .text.__vector_36 section in core.a(HardwareSerial.cpp.o)

Any ideas?
wheeliekiing
 
Posts: 5
Joined: Wed Aug 29, 2012 11:55 am

Re: ChronoDot example wont compile

by adafruit_support_bill on Wed Aug 29, 2012 12:04 pm

Those look like 'secondary' errors caused by some previous compiler error. Be sure to scroll all the way to the top of the output window and get the first few lines of error output. These are usually the most relevant.
User avatar
adafruit_support_bill
 
Posts: 30847
Joined: Sat Feb 07, 2009 10:11 am

Re: ChronoDot example wont compile

by wheeliekiing on Wed Aug 29, 2012 2:20 pm

Those are the only two lines
wheeliekiing
 
Posts: 5
Joined: Wed Aug 29, 2012 11:55 am

Re: ChronoDot example wont compile

by adafruit_support_rick on Wed Aug 29, 2012 2:35 pm

What is your target board? Do you have the correct Board Type selected in the IDE?

adafruit_support_rick
 
Posts: 12886
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: ChronoDot example wont compile

by wheeliekiing on Wed Aug 29, 2012 3:19 pm

yes the correct board is selected. it appears to be an issue with libc.

i was able to get the example code to compile within my eclipse based project, but its a pain because the serial doesnt work unless compiling w/ arduino ide, so i have to resort to less friendly debugging techniques than serial. the next challenge to overcome is Wire.available() keeps returning false.

thanks for your help.
wheeliekiing
 
Posts: 5
Joined: Wed Aug 29, 2012 11:55 am

Re: ChronoDot example wont compile

by wheeliekiing on Wed Aug 29, 2012 3:28 pm

sorry, target board is mega r3 and i have the arduino ethernet shield attached. im using pins 20 (sda) and 21 (scl). chronodot is v2.1.
wheeliekiing
 
Posts: 5
Joined: Wed Aug 29, 2012 11:55 am

Re: ChronoDot example wont compile

by wheeliekiing on Wed Aug 29, 2012 6:17 pm

Got it going using the Time.h and DS1307RTC.h libs in eclipse w/ arduino core 1.0. thanks
wheeliekiing
 
Posts: 5
Joined: Wed Aug 29, 2012 11:55 am