attiny85 serial communication

Hi all

I get some error messages while trying to use serial port library on attiny85, the problem seems to be the symbol “[” and “]”, can anyone help? thanks a lot.

/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/…/lib/gcc/avr/4.3.2/…/…/…/…/avr/lib/avr25/crttn85.o:(.init9+0x2): relocation truncated to fit: R_AVR_13_PCREL against symbol exit' defined in .fini9 section in /Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/avr25/libgcc.a(_exit.o) shiftOut.cpp.o: In function explodeString(String)’:
/Applications/shiftOut.ino:150: relocation truncated to fit: R_AVR_13_PCREL against symbol __mulhi3' defined in .text.libgcc section in /Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/avr25/libgcc.a(_mulhi3.o) core.a(realloc.c.o): In function realloc’:
/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/avr-libc/realloc.c:146: relocation truncated to fit: R_AVR_13_PCREL against symbol `memcpy’ defined in .text section in /Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/…/lib/gcc/avr/4.3.2/…/…/…/…/avr/lib/avr25/libc.a(memcpy.o)

Luke

shiftOut.ino (4.53 KB)

https://code.google.com/p/arduino-tiny/issues/detail?id=58 https://code.google.com/p/arduino-tiny/issues/detail?id=61 https://www.google.com/search?q=R_AVR_13_PCREL+attiny85+site%3Aforum.arduino.cc

Hi Coding Badly

Thank you for your quick reply, I have this issue before and l fixed it by swap the "ld" file in arduino app content, but not this time, perhaps it's the matter of the Crosspack version? should I try the latest version this time? confused.... btw yes, I am on Mac, thank you so much.

Luke

Hi @dontmarryme,

dontmarryme:
should I try the latest version this time? confused… btw yes, I am on Mac

I have no idea. I have had almost no experience with Mac computers.