Skip to content
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

Compling Error for Arduino Uno Wifi Rev 2 board #113

Open
Roblarson opened this issue Apr 16, 2022 · 0 comments
Open

Compling Error for Arduino Uno Wifi Rev 2 board #113

Roblarson opened this issue Apr 16, 2022 · 0 comments

Comments

@Roblarson
Copy link

Have tried compiling using the 1.8.19 and the rc5 of 2.0 with the same errors

Arduino: 1.8.19 (Windows 10), Board: "Arduino Uno WiFi Rev2, ATMEGA328"

In file included from C:\Users\roblarso\Documents\Arduino\libraries\IRLibProtocols\IRLibSendBase.cpp:14:0:
C:\Users\roblarso\Documents\Arduino\libraries\IRLibProtocols\IRLibSendBase.cpp: In member function 'void IRsendBase::enableIROut(uint8_t)':
C:\Users\roblarso\Documents\Arduino\libraries\IRLibProtocols\IRLibHardware.h:292:34: error: 'TIMSK2' was not declared in this scope
#define IR_RECV_DISABLE_INTR (TIMSK2 = 0)
^
C:\Users\roblarso\Documents\Arduino\libraries\IRLibProtocols\IRLibSendBase.cpp:77:2: note: in expansion of macro 'IR_RECV_DISABLE_INTR'
IR_RECV_DISABLE_INTR; //Timer2 Overflow Interrupt
^~~~~~~~~~~~~~~~~~~~
C:\Users\roblarso\Documents\Arduino\libraries\IRLibProtocols\IRLibHardware.h:292:34: note: suggested alternative: 'TIMERB2'
#define IR_RECV_DISABLE_INTR (TIMSK2 = 0)
^
C:\Users\roblarso\Documents\Arduino\libraries\IRLibProtocols\IRLibSendBase.cpp:77:2: note: in expansion of macro 'IR_RECV_DISABLE_INTR'
IR_RECV_DISABLE_INTR; //Timer2 Overflow Interrupt
^~~~~~~~~~~~~~~~~~~~
C:\Users\roblarso\Documents\Arduino\libraries\IRLibProtocols\IRLibHardware.h:199:3: error: 'TCCR2A' was not declared in this scope
TCCR2A = _BV(WGM20); TCCR2B = _BV(WGM22) | _BV(CS20);
^
C:\Users\roblarso\Documents\Arduino\libraries\IRLibProtocols\IRLibSendBase.cpp:80:2: note: in expansion of macro 'IR_SEND_CONFIG_KHZ'
IR_SEND_CONFIG_KHZ(khz);
^~~~~~~~~~~~~~~~~~
C:\Users\roblarso\Documents\Arduino\libraries\IRLibProtocols\IRLibHardware.h:199:3: note: suggested alternative: 'TCB2'
TCCR2A = _BV(WGM20); TCCR2B = _BV(WGM22) | _BV(CS20);
^
C:\Users\roblarso\Documents\Arduino\libraries\IRLibProtocols\IRLibSendBase.cpp:80:2: note: in expansion of macro 'IR_SEND_CONFIG_KHZ'
IR_SEND_CONFIG_KHZ(khz);
^~~~~~~~~~~~~~~~~~
In file included from c:\users\roblarso\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5\avr\include\avr\io.h:99:0,
from c:\users\roblarso\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5\avr\include\avr\pgmspace.h:90,
from C:\Users\roblarso\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\cores\arduino/api/String.h:31,
from C:\Users\roblarso\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\cores\arduino/api/IPAddress.h:24,
from C:\Users\roblarso\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\cores\arduino/api/ArduinoAPI.h:30,
from C:\Users\roblarso\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\cores\arduino/Arduino.h:23,
from C:\Users\roblarso\Documents\Arduino\libraries\IRLibProtocols\IRLibProtocols.h:12,
from C:\Users\roblarso\Documents\Arduino\libraries\IRLibProtocols\IRLibSendBase.h:16,
from C:\Users\roblarso\Documents\Arduino\libraries\IRLibProtocols\IRLibSendBase.cpp:13:
C:\Users\roblarso\Documents\Arduino\libraries\IRLibProtocols\IRLibHardware.h:199:16: error: 'WGM20' was not declared in this scope
TCCR2A = _BV(WGM20); TCCR2B = _BV(WGM22) | _BV(CS20);
^
C:\Users\roblarso\Documents\Arduino\libraries\IRLibProtocols\IRLibSendBase.cpp:80:2: note: in expansion of macro 'IR_SEND_CONFIG_KHZ'
IR_SEND_CONFIG_KHZ(khz);
^~~~~~~~~~~~~~~~~~
In file included from C:\Users\roblarso\Documents\Arduino\libraries\IRLibProtocols\IRLibSendBase.cpp:14:0:
C:\Users\roblarso\Documents\Arduino\libraries\IRLibProtocols\IRLibHardware.h:199:25: error: 'TCCR2B' was not declared in this scope
TCCR2A = _BV(WGM20); TCCR2B = _BV(WGM22) | _BV(CS20);
^
C:\Users\roblarso\Documents\Arduino\libraries\IRLibProtocols\IRLibSendBase.cpp:80:2: note: in expansion of macro 'IR_SEND_CONFIG_KHZ'
IR_SEND_CONFIG_KHZ(khz);
^~~~~~~~~~~~~~~~~~
C:\Users\roblarso\Documents\Arduino\libraries\IRLibProtocols\IRLibHardware.h:199:25: note: suggested alternative: 'TCB2'
TCCR2A = _BV(WGM20); TCCR2B = _BV(WGM22) | _BV(CS20);
^
C:\Users\roblarso\Documents\Arduino\libraries\IRLibProtocols\IRLibSendBase.cpp:80:2: note: in expansion of macro 'IR_SEND_CONFIG_KHZ'
IR_SEND_CONFIG_KHZ(khz);
^~~~~~~~~~~~~~~~~~
In file included from c:\users\roblarso\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5\avr\include\avr\io.h:99:0,
from c:\users\roblarso\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5\avr\include\avr\pgmspace.h:90,
from C:\Users\roblarso\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\cores\arduino/api/String.h:31,
from C:\Users\roblarso\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\cores\arduino/api/IPAddress.h:24,
from C:\Users\roblarso\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\cores\arduino/api/ArduinoAPI.h:30,
from C:\Users\roblarso\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\cores\arduino/Arduino.h:23,
from C:\Users\roblarso\Documents\Arduino\libraries\IRLibProtocols\IRLibProtocols.h:12,
from C:\Users\roblarso\Documents\Arduino\libraries\IRLibProtocols\IRLibSendBase.h:16,
from C:\Users\roblarso\Documents\Arduino\libraries\IRLibProtocols\IRLibSendBase.cpp:13:
C:\Users\roblarso\Documents\Arduino\libraries\IRLibProtocols\IRLibHardware.h:199:38: error: 'WGM22' was not declared in this scope
TCCR2A = _BV(WGM20); TCCR2B = _BV(WGM22) | _BV(CS20);
^
C:\Users\roblarso\Documents\Arduino\libraries\IRLibProtocols\IRLibSendBase.cpp:80:2: note: in expansion of macro 'IR_SEND_CONFIG_KHZ'
IR_SEND_CONFIG_KHZ(khz);
^~~~~~~~~~~~~~~~~~
C:\Users\roblarso\Documents\Arduino\libraries\IRLibProtocols\IRLibHardware.h:199:51: error: 'CS20' was not declared in this scope
TCCR2A = _BV(WGM20); TCCR2B = _BV(WGM22) | _BV(CS20);
^
C:\Users\roblarso\Documents\Arduino\libraries\IRLibProtocols\IRLibSendBase.cpp:80:2: note: in expansion of macro 'IR_SEND_CONFIG_KHZ'
IR_SEND_CONFIG_KHZ(khz);
^~~~~~~~~~~~~~~~~~
In file included from C:\Users\roblarso\Documents\Arduino\libraries\IRLibProtocols\IRLibSendBase.cpp:14:0:
C:\Users\roblarso\Documents\Arduino\libraries\IRLibProtocols\IRLibHardware.h:200:3: error: 'OCR2A' was not declared in this scope
OCR2A = pwmval; OCR2B = pwmval / 3; })
^
C:\Users\roblarso\Documents\Arduino\libraries\IRLibProtocols\IRLibSendBase.cpp:80:2: note: in expansion of macro 'IR_SEND_CONFIG_KHZ'
IR_SEND_CONFIG_KHZ(khz);
^~~~~~~~~~~~~~~~~~
C:\Users\roblarso\Documents\Arduino\libraries\IRLibProtocols\IRLibHardware.h:200:19: error: 'OCR2B' was not declared in this scope
OCR2A = pwmval; OCR2B = pwmval / 3; })
^
C:\Users\roblarso\Documents\Arduino\libraries\IRLibProtocols\IRLibSendBase.cpp:80:2: note: in expansion of macro 'IR_SEND_CONFIG_KHZ'
IR_SEND_CONFIG_KHZ(khz);
^~~~~~~~~~~~~~~~~~
C:\Users\roblarso\Documents\Arduino\libraries\IRLibProtocols\IRLibSendBase.cpp: In member function 'void IRsendBase::mark(uint16_t)':
C:\Users\roblarso\Documents\Arduino\libraries\IRLibProtocols\IRLibHardware.h:194:33: error: 'TCCR2A' was not declared in this scope
#define IR_SEND_PWM_START (TCCR2A |= _BV(COM2B1))
^
C:\Users\roblarso\Documents\Arduino\libraries\IRLibProtocols\IRLibSendBase.cpp:95:2: note: in expansion of macro 'IR_SEND_PWM_START'
IR_SEND_PWM_START;
^~~~~~~~~~~~~~~~~
C:\Users\roblarso\Documents\Arduino\libraries\IRLibProtocols\IRLibHardware.h:194:33: note: suggested alternative: 'TCB2'
#define IR_SEND_PWM_START (TCCR2A |= _BV(COM2B1))
^
C:\Users\roblarso\Documents\Arduino\libraries\IRLibProtocols\IRLibSendBase.cpp:95:2: note: in expansion of macro 'IR_SEND_PWM_START'
IR_SEND_PWM_START;
^~~~~~~~~~~~~~~~~
In file included from c:\users\roblarso\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5\avr\include\avr\io.h:99:0,
from c:\users\roblarso\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5\avr\include\avr\pgmspace.h:90,
from C:\Users\roblarso\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\cores\arduino/api/String.h:31,
from C:\Users\roblarso\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\cores\arduino/api/IPAddress.h:24,
from C:\Users\roblarso\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\cores\arduino/api/ArduinoAPI.h:30,
from C:\Users\roblarso\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\cores\arduino/Arduino.h:23,
from C:\Users\roblarso\Documents\Arduino\libraries\IRLibProtocols\IRLibProtocols.h:12,
from C:\Users\roblarso\Documents\Arduino\libraries\IRLibProtocols\IRLibSendBase.h:16,
from C:\Users\roblarso\Documents\Arduino\libraries\IRLibProtocols\IRLibSendBase.cpp:13:
C:\Users\roblarso\Documents\Arduino\libraries\IRLibProtocols\IRLibHardware.h:194:47: error: 'COM2B1' was not declared in this scope
#define IR_SEND_PWM_START (TCCR2A |= _BV(COM2B1))
^
C:\Users\roblarso\Documents\Arduino\libraries\IRLibProtocols\IRLibSendBase.cpp:95:2: note: in expansion of macro 'IR_SEND_PWM_START'
IR_SEND_PWM_START;
^~~~~~~~~~~~~~~~~
In file included from C:\Users\roblarso\Documents\Arduino\libraries\IRLibProtocols\IRLibSendBase.cpp:14:0:
C:\Users\roblarso\Documents\Arduino\libraries\IRLibProtocols\IRLibSendBase.cpp: In member function 'void IRsendBase::space(uint16_t)':
C:\Users\roblarso\Documents\Arduino\libraries\IRLibProtocols\IRLibHardware.h:196:31: error: 'TCCR2A' was not declared in this scope
#define IR_SEND_PWM_STOP (TCCR2A &= ~(_BV(COM2B1)))
^
C:\Users\roblarso\Documents\Arduino\libraries\IRLibProtocols\IRLibSendBase.cpp:101:2: note: in expansion of macro 'IR_SEND_PWM_STOP'
IR_SEND_PWM_STOP;
^~~~~~~~~~~~~~~~
C:\Users\roblarso\Documents\Arduino\libraries\IRLibProtocols\IRLibHardware.h:196:31: note: suggested alternative: 'TCB2'
#define IR_SEND_PWM_STOP (TCCR2A &= ~(_BV(COM2B1)))
^
C:\Users\roblarso\Documents\Arduino\libraries\IRLibProtocols\IRLibSendBase.cpp:101:2: note: in expansion of macro 'IR_SEND_PWM_STOP'
IR_SEND_PWM_STOP;
^~~~~~~~~~~~~~~~
In file included from c:\users\roblarso\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5\avr\include\avr\io.h:99:0,
from c:\users\roblarso\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5\avr\include\avr\pgmspace.h:90,
from C:\Users\roblarso\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\cores\arduino/api/String.h:31,
from C:\Users\roblarso\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\cores\arduino/api/IPAddress.h:24,
from C:\Users\roblarso\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\cores\arduino/api/ArduinoAPI.h:30,
from C:\Users\roblarso\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\cores\arduino/Arduino.h:23,
from C:\Users\roblarso\Documents\Arduino\libraries\IRLibProtocols\IRLibProtocols.h:12,
from C:\Users\roblarso\Documents\Arduino\libraries\IRLibProtocols\IRLibSendBase.h:16,
from C:\Users\roblarso\Documents\Arduino\libraries\IRLibProtocols\IRLibSendBase.cpp:13:
C:\Users\roblarso\Documents\Arduino\libraries\IRLibProtocols\IRLibHardware.h:196:47: error: 'COM2B1' was not declared in this scope
#define IR_SEND_PWM_STOP (TCCR2A &= ~(_BV(COM2B1)))
^
C:\Users\roblarso\Documents\Arduino\libraries\IRLibProtocols\IRLibSendBase.cpp:101:2: note: in expansion of macro 'IR_SEND_PWM_STOP'
IR_SEND_PWM_STOP;
^~~~~~~~~~~~~~~~
exit status 1
Error compiling for board Arduino Uno WiFi Rev2.

@Roblarson Roblarson changed the title Compling Error for Arduino Unuo Wifi Rev 2 board Compling Error for Arduino Uno Wifi Rev 2 board Apr 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant