Hi, Ive been tinkering with a project for a while to control a TEA5767 Fm radio Board with an ATtiny85 chip. Here is the basic (truncated) code:
#include <TinyWireM.h>
#include <TEA5767Tiny.h>
TEA5767Tiny Radio;
void setup()
{
}
void loop()
{
TinyWireM.begin();
Radio.init();
delay(200);
Radio.set_frequency(88.0);
delay(200);
Radio.set_frequency(88.1);
delay(200);
}
My problem is I seem to only be able to compile {Binary sketch size: 4,190 bytes (of a 8,192 byte maximum)} If i try to add any more code I get error messages.
c:/program files (x86)/arduino/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 c:/program files (x86)/arduino/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/avr25\libgcc.a(_exit.o)
I thought this might be because of the bootloader I used but honestly I'm not sure. Any ideas on how to make this work?