Pages: 1 2 [3]   Go Down
Author Topic: What is the status of serial on a tiny85  (Read 9536 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 9
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,

I have ATTiny84 selected.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 9
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

A flash of light this morning suggested adding the following lines to cores\tiny\pins_arduino.h
~~~~
// Pinched from https://raw.github.com/mharizanov/TinySensor/master/NewSoftSerial_Attiny84/NewSoftSerial.cpp
#elif defined(__AVR_ATtiny84__)
#define digitalPinToPCICR(p)    (((p) >= 0 && (p) <= 10) ? (&GIMSK) : ((uint8_t *)NULL))
#define digitalPinToPCICRbit(p) (((p) <= 2) ? 5 : 4)
#define digitalPinToPCMSK(p)    (((p) <= 2) ? (&PCMSK1) : (((p) <= 10) ? (&PCMSK0) : ((uint8_t *)NULL)))
#define digitalPinToPCMSKbit(p) (((p) <= 2) ? (p) : (((p) - 10) * -1))
~~~~
 to reveal a new challenge:
~~~~

c:/users/john/documents/arduino/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../../avr/lib/avr25/crttn84.o: In function `__vector_default':
(.vectors+0x2): relocation truncated to fit: R_AVR_13_PCREL against symbol `__vector_1' defined in .text.__vector_1 section in core.a(WInterrupts.c.o)
c:/users/john/documents/arduino/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../../avr/lib/avr25/crttn84.o: In function `__vector_default':
(.vectors+0x16): relocation truncated to fit: R_AVR_13_PCREL against symbol `__vector_11' defined in .text.__vector_11 section in core.a(wiring.c.o)
c:/users/john/documents/arduino/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../../avr/lib/avr25/crttn84.o:(.init9+0x0): relocation truncated to fit: R_AVR_13_PCREL against symbol `main' defined in .text.main section in core.a(main.cpp.o)
c:/users/john/documents/arduino/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../../avr/lib/avr25/crttn84.o:(.init9+0x2): relocation truncated to fit: R_AVR_13_PCREL against symbol `exit' defined in .fini9 section in c:/users/john/documents/arduino/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/avr25\libgcc.a(_exit.o)
TinyRF12_Demo.cpp.o: In function `saveConfig':
C:\Users\John\AppData\Local\Temp\build2326828889045529077.tmp/TinyRF12_Demo.cpp:93: relocation truncated to fit: R_AVR_13_PCREL against symbol `Print::println(char const*)' defined in .text._ZN5Print7printlnEPKc section in core.a(Print.cpp.o)
TinyRF12_Demo.cpp.o: In function `showString':
C:\Users\John\AppData\Local\Temp\build2326828889045529077.tmp/TinyRF12_Demo.cpp:117: relocation truncated to fit: R_AVR_13_PCREL against symbol `Print::print(char, int)' defined in .text._ZN5Print5printEci section in core.a(Print.cpp.o)
C:\Users\John\AppData\Local\Temp\build2326828889045529077.tmp/TinyRF12_Demo.cpp:118: relocation truncated to fit: R_AVR_13_PCREL against symbol `Print::print(char, int)' defined in .text._ZN5Print5printEci section in core.a(Print.cpp.o)
TinyRF12_Demo.cpp.o: In function `showHelp':
C:\Users\John\AppData\Local\Temp\build2326828889045529077.tmp/TinyRF12_Demo.cpp:124: relocation truncated to fit: R_AVR_13_PCREL against symbol `Print::println(char const*)' defined in .text._ZN5Print7printlnEPKc section in core.a(Print.cpp.o)
C:\Users\John\AppData\Local\Temp\build2326828889045529077.tmp/TinyRF12_Demo.cpp:143: relocation truncated to fit: R_AVR_13_PCREL against symbol `Print::print(int, int)' defined in .text._ZN5Print5printEii section in core.a(Print.cpp.o)
C:\Users\John\AppData\Local\Temp\build2326828889045529077.tmp/TinyRF12_Demo.cpp:144: relocation truncated to fit: R_AVR_13_PCREL against symbol `Print::print(char const*)' defined in .text._ZN5Print5printEPKc section in core.a(Print.cpp.o)
C:\Users\John\AppData\Local\Temp\build2326828889045529077.tmp/TinyRF12_Demo.cpp:145: additional relocation overflows omitted from the output
~~~~
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 9
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Wow, I was pointed at:
~~~~
http://arduino.cc/forum/index.php?topic=91491.0
~~~~
and now it compiles. Further testing of the actual image is ahead.
Logged

Global Moderator
Dallas
Online Online
Shannon Member
*****
Karma: 206
Posts: 12858
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


The Tiny Core now works with SoftwareSerial (the one included with Arduino 1.0).  Sorry the update took so long.
Logged

Pages: 1 2 [3]   Go Up
Jump to: