Skip to content

ATtiny compile fail: 'TIMER2_COMPA_vect' appears to be a misspelled signal handler #4785

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
pediRAM opened this issue Mar 31, 2016 · 2 comments
Labels
Type: Invalid Off topic for this repository, or a bug report determined to not actually represent a bug Type: Wontfix Arduino has decided that it will not resolve the reported issue or implement the requested feature

Comments

@pediRAM
Copy link

pediRAM commented Mar 31, 2016

Try to compile following code for an ATtiny 84A:

#define PIN_MOTD_IN 0
#define PIN_LED_OUT 1

int val = 0;

void setup()
{
    pinMode(PIN_MOTD_IN, INPUT);
    pinMode(PIN_LED_OUT, OUTPUT);
    digitalWrite(PIN_LED_OUT, LOW);
}

void loop() 
{
    val = digitalRead(PIN_MOTD_IN);
    digitalWrite(PIN_LED_OUT, val);    
    delay(50);
}

and you will get following warning:

rdware\avr\1.6.10\cores\arduino\Tone.cpp:37:0:

C:\Users\ED_Snowden\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\cores\arduino\Tone.cpp: In function 'void TIMER2_COMPA_vect()':

C:\Users\Ed_Snowden\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.10\cores\arduino\Tone.cpp:538:5: warning: 'TIMER2_COMPA_vect' appears to be a misspelled signal handler [enabled by default]

 ISR(TIMER2_COMPA_vect)

     ^
@agdl agdl added Type: Invalid Off topic for this repository, or a bug report determined to not actually represent a bug Type: Wontfix Arduino has decided that it will not resolve the reported issue or implement the requested feature labels Jul 11, 2016
@agdl
Copy link
Member

agdl commented Jul 11, 2016

Attiny chips can be used with external cores like
https://github.com/SpenceKonde/ATTinyCore
The only Arduino product based on these chips is the Gemma who has a tiny 85

@agdl agdl closed this as completed Jul 11, 2016
@sonyhome
Copy link

sonyhome commented Jul 12, 2017

Some comments on these issues:

ATtiny Compile Fail: Redefinition of preproc. symbol "BIN" (from "Stream.h" and "Print.h") by "iotnx4.h" #4784

-> Fix it in Print.h

  • Either define an enum in print.h for DEC,BIN,OCT,HEXA
  • Or rename them to DEC_NUMBER, BIN_NUMBER, etc. or DECIMAL, BINARY OCTAL etc.
  • Or replace DEC by 10, and skip the define altogether (it's overkill anyways)
    Only DEC is used, and has to be updated in 2 files.

You can also hack it by removing BIN from print.h without any adverse effect. It's not used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Invalid Off topic for this repository, or a bug report determined to not actually represent a bug Type: Wontfix Arduino has decided that it will not resolve the reported issue or implement the requested feature
Projects
None yet
Development

No branches or pull requests

3 participants