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

Error in compilation for Arduino Uno WiFi Rev2 #67

Closed
labrache opened this issue Feb 7, 2020 · 2 comments
Closed

Error in compilation for Arduino Uno WiFi Rev2 #67

labrache opened this issue Feb 7, 2020 · 2 comments

Comments

@labrache
Copy link

labrache commented Feb 7, 2020

Hi !
I'm getting an error when compiling for Uno WiFi Rev2 (i've tried ESP8266 ans Uno and it was OK)
Here is the compile error:

Adafruit_VS1053.cpp:48:5: error: 'OCR0A' was not declared in this scope
     OCR0A = 0xAF;
     ^~~~~
Adafruit_VS1053.cpp:48:5: note: suggested alternative: 'O_CREAT'
     OCR0A = 0xAF;
     ^~~~~
     O_CREAT
Adafruit_VS1053.cpp:49:5: error: 'TIMSK0' was not declared in this scope
     TIMSK0 |= _BV(OCIE0A);
     ^~~~~~
Adafruit_VS1053.cpp:49:5: note: suggested alternative: 'TIMERA0'
     TIMSK0 |= _BV(OCIE0A);
     ^~~~~~
     TIMERA0
In file included from arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5\avr\include\avr\io.h:99:0,
                 from arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5\avr\include\avr\pgmspace.h:90,
                 from Arduino15\packages\arduino\hardware\megaavr\1.8.5\cores\arduino/api/String.h:30,
                 from Arduino15\packages\arduino\hardware\megaavr\1.8.5\cores\arduino/api/Print.h:24,
                 from Arduino15\packages\arduino\hardware\megaavr\1.8.5\cores\arduino/api/Stream.h:25,
                 from Arduino15\packages\arduino\hardware\megaavr\1.8.5\cores\arduino/api/Client.h:22,
                 from Arduino15\packages\arduino\hardware\megaavr\1.8.5\cores\arduino/api/ArduinoAPI.h:29,
                 from Arduino15\packages\arduino\hardware\megaavr\1.8.5\cores\arduino/Arduino.h:23,
                 from Arduino\libraries\Adafruit_VS1053_Library/Adafruit_VS1053.h:18,
                 from Adafruit_VS1053.cpp:15:
Adafruit_VS1053.cpp:49:19: error: 'OCIE0A' was not declared in this scope
     TIMSK0 |= _BV(OCIE0A);

  • Arduino board: Arduino Uno WiFi Rev2
  • Arduino IDE version: 1.8.10
  • List the steps to reproduce the problem below:
    • I'm using player_example from Example directory and compile it
@labrache
Copy link
Author

labrache commented Feb 9, 2020

I test with files in PR and it's now working, thank you !

@ladyada ladyada closed this as completed Feb 9, 2020
@ladyada
Copy link
Member

ladyada commented Feb 9, 2020

merged it in!

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

2 participants