In file included from /usr/lib/gcc/avr/4.7.0/../../../avr/include/util/delay.h:44:0,
from /usr/lib/gcc/avr/4.7.0/../../../avr/include/avr/delay.h:37,
from /usr/share/arduino/hardware/tiny/cores/tiny/wiring_private.h:32,
from /usr/share/arduino/hardware/tiny/cores/tiny/WInterrupts.c:37:
/usr/lib/gcc/avr/4.7.0/../../../avr/include/math.h:427:15: error: expected identifier or ‘(’ before ‘double’
/usr/lib/gcc/avr/4.7.0/../../../avr/include/math.h:427:15: error: expected ‘)’ before ‘>=’ token
Thanks for your instant reply.
I already came across this article which suggests downgrading the gcc-avr to 4.3.5.
The strange thing however is that my setup works for all other boards (controllers) like the ATtiny4313, ATtiny44, ATTiny25, ATtiny85 a.s.o.
The only one not working is the ATtiny2313. That prevented me from downgrading very quickly.
No problem. I will offer a potential solution but there is a condition. You have to report back if the solution works (or doesn't). Agreed? Excellent, let's get started...
• Locate and open HardwareSerial.cpp in the {Sketch}/hardware/tiny/cores/tiny directory/
• Delete the following starting at line #167... #elif defined(SIG_USART3_RECV) #error SIG_USART3_RECV
• Delete the following starting at line #157... #elif defined(SIG_USART2_RECV) #error SIG_USART2_RECV
• Delete the following starting at line #147... #elif defined(SIG_USART1_RECV) #error SIG_USART1_RECV
Attached to this post is the updated HardwareSerial.cpp. Locate the version on your computer and replace it with the one attached. Same condition as before: please let me know what happens.
Hi Coding Badly,
that worked like charm ! Thank you very much for your help.
If this forum would have the status 'holy' for the members it would be definitely you who deserves it first.
Wishing you a pleasant and sound new year.
Harald