0

Shield_sdlog
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Shield_sdlog

by ks12 on Fri Feb 19, 2021 6:47 pm

Hello,

I am trying to run the Shield_sdlog code from the ad fruit example of the latest library as of 2/19/21 on my UNO REV2 WIFI and for some reason have received this error pertraining to the ORC0A reference.



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

In file included from C:\Users\Kurrin\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\cores\arduino/Arduino.h:27:0,

from sketch\shield_sdlog.ino.cpp:1:

C:\Users\Kurrin\Documents\Arduino\libraries\Adafruit_GPS_Library\examples\shield_sdlog\shield_sdlog.ino: In function 'void TIMER0_COMPA_vect()':

C:\Users\Kurrin\Documents\Arduino\libraries\Adafruit_GPS_Library\examples\shield_sdlog\shield_sdlog.ino:144:5: warning: 'TIMER0_COMPA_vect' appears to be a misspelled 'signal' handler, missing '__vector' prefix [-Wmisspelled-isr]

ISR(TIMER0_COMPA_vect) {

^

C:\Users\Kurrin\Documents\Arduino\libraries\Adafruit_GPS_Library\examples\shield_sdlog\shield_sdlog.ino: In function 'void useInterrupt(bool)':

shield_sdlog:159:5: error: 'OCR0A' was not declared in this scope

OCR0A = 0xAF;

^~~~~

C:\Users\Kurrin\Documents\Arduino\libraries\Adafruit_GPS_Library\examples\shield_sdlog\shield_sdlog.ino:159:5: note: suggested alternative: 'O_CREAT'

OCR0A = 0xAF;

^~~~~

O_CREAT

shield_sdlog:160:5: error: 'TIMSK0' was not declared in this scope

TIMSK0 |= _BV(OCIE0A);

^~~~~~

C:\Users\Kurrin\Documents\Arduino\libraries\Adafruit_GPS_Library\examples\shield_sdlog\shield_sdlog.ino:160:5: note: suggested alternative: 'TIMERA0'

TIMSK0 |= _BV(OCIE0A);

^~~~~~

TIMERA0

In file included from c:\users\kurrin\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\kurrin\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5\avr\include\avr\pgmspace.h:90,

from C:\Users\Kurrin\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\cores\arduino/api/String.h:31,

from C:\Users\Kurrin\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\cores\arduino/api/IPAddress.h:24,

from C:\Users\Kurrin\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\cores\arduino/api/ArduinoAPI.h:30,

from C:\Users\Kurrin\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\cores\arduino/Arduino.h:23,

from sketch\shield_sdlog.ino.cpp:1:

shield_sdlog:160:19: error: 'OCIE0A' was not declared in this scope

TIMSK0 |= _BV(OCIE0A);

^

shield_sdlog:165:5: error: 'TIMSK0' was not declared in this scope

TIMSK0 &= ~_BV(OCIE0A);

^~~~~~

C:\Users\Kurrin\Documents\Arduino\libraries\Adafruit_GPS_Library\examples\shield_sdlog\shield_sdlog.ino:165:5: note: suggested alternative: 'TIMERA0'

TIMSK0 &= ~_BV(OCIE0A);

^~~~~~

TIMERA0

In file included from c:\users\kurrin\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\kurrin\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5\avr\include\avr\pgmspace.h:90,

from C:\Users\Kurrin\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\cores\arduino/api/String.h:31,

from C:\Users\Kurrin\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\cores\arduino/api/IPAddress.h:24,

from C:\Users\Kurrin\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\cores\arduino/api/ArduinoAPI.h:30,

from C:\Users\Kurrin\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\cores\arduino/Arduino.h:23,

from sketch\shield_sdlog.ino.cpp:1:

shield_sdlog:165:20: error: 'OCIE0A' was not declared in this scope

TIMSK0 &= ~_BV(OCIE0A);

^

exit status 1

'OCR0A' was not declared in this scope



This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Attachments
error.JPG
error.JPG (384.48 KiB) Viewed 69 times

ks12
 
Posts: 9
Joined: Tue Feb 02, 2021 3:39 pm

Please be positive and constructive with your questions and comments.