Hello,
I am brand new to Arduino. I'm taking a class and we need to have Arduino running on our own devices. The examples that ran perfectly on the class computer will not run on my laptop, Mac OS 11.6 Big Sur. The Arduino is lit up, so I know it's not a connection problem.
When I run the software, I get the error message: Error compiling for board Arduino Uno.
Can anyone help me figure out why it won't run?
Here are the complete error messages:
Arduino: 1.8.16 (Mac OS X), Board: "Arduino Uno"
/private/var/folders/pf/zwvwb5n93qj972ltxgc558j40000gp/T/AppTranslocation/06694151-1FB8-46A7-A41D-9B56D3477747/d/Arduino.app/Contents/Java/libraries/Adafruit_Circuit_Playground/Adafruit_CircuitPlayground.cpp: In member function 'void Adafruit_CircuitPlayground::playTone(uint16_t, uint16_t, bool)':
/private/var/folders/pf/zwvwb5n93qj972ltxgc558j40000gp/T/AppTranslocation/06694151-1FB8-46A7-A41D-9B56D3477747/d/Arduino.app/Contents/Java/libraries/Adafruit_Circuit_Playground/Adafruit_CircuitPlayground.cpp:238:3: error: 'PLLFRQ' was not declared in this scope
PLLFRQ = (PLLFRQ & 0xCF) | 0x30; // Route PLL to async clk
^~~~~~
/private/var/folders/pf/zwvwb5n93qj972ltxgc558j40000gp/T/AppTranslocation/06694151-1FB8-46A7-A41D-9B56D3477747/d/Arduino.app/Contents/Java/libraries/Adafruit_Circuit_Playground/Adafruit_CircuitPlayground.cpp:238:3: note: suggested alternative: 'PCIFR'
PLLFRQ = (PLLFRQ & 0xCF) | 0x30; // Route PLL to async clk
^~~~~~
PCIFR
/private/var/folders/pf/zwvwb5n93qj972ltxgc558j40000gp/T/AppTranslocation/06694151-1FB8-46A7-A41D-9B56D3477747/d/Arduino.app/Contents/Java/libraries/Adafruit_Circuit_Playground/Adafruit_CircuitPlayground.cpp:239:3: error: 'TCCR4A' was not declared in this scope
TCCR4A = _BV(COM4A0) | _BV(PWM4A); // Clear on match, PWMA on
^~~~~~
/private/var/folders/pf/zwvwb5n93qj972ltxgc558j40000gp/T/AppTranslocation/06694151-1FB8-46A7-A41D-9B56D3477747/d/Arduino.app/Contents/Java/libraries/Adafruit_Circuit_Playground/Adafruit_CircuitPlayground.cpp:239:3: note: suggested alternative: 'TCCR0A'
TCCR4A = _BV(COM4A0) | _BV(PWM4A); // Clear on match, PWMA on
^~~~~~
TCCR0A
In file included from /private/var/folders/pf/zwvwb5n93qj972ltxgc558j40000gp/T/AppTranslocation/06694151-1FB8-46A7-A41D-9B56D3477747/d/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/io.h:99:0,
from /private/var/folders/pf/zwvwb5n93qj972ltxgc558j40000gp/T/AppTranslocation/06694151-1FB8-46A7-A41D-9B56D3477747/d/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/pgmspace.h:90,
from /private/var/folders/pf/zwvwb5n93qj972ltxgc558j40000gp/T/AppTranslocation/06694151-1FB8-46A7-A41D-9B56D3477747/d/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:28,
from /private/var/folders/pf/zwvwb5n93qj972ltxgc558j40000gp/T/AppTranslocation/06694151-1FB8-46A7-A41D-9B56D3477747/d/Arduino.app/Contents/Java/libraries/Adafruit_Circuit_Playground/utility/Adafruit_CPlay_LIS3DH.h:30,
from /private/var/folders/pf/zwvwb5n93qj972ltxgc558j40000gp/T/AppTranslocation/06694151-1FB8-46A7-A41D-9B56D3477747/d/Arduino.app/Contents/Java/libraries/Adafruit_Circuit_Playground/Adafruit_Circuit_Playground.h:21,
from /private/var/folders/pf/zwvwb5n93qj972ltxgc558j40000gp/T/AppTranslocation/06694151-1FB8-46A7-A41D-9B56D3477747/d/Arduino.app/Contents/Java/libraries/Adafruit_Circuit_Playground/Adafruit_CircuitPlayground.cpp:30:
/private/var/folders/pf/zwvwb5n93qj972ltxgc558j40000gp/T/AppTranslocation/06694151-1FB8-46A7-A41D-9B56D3477747/d/Arduino.app/Contents/Java/libraries/Adafruit_Circuit_Playground/Adafruit_CircuitPlayground.cpp:239:16: error: 'COM4A0' was not declared in this scope
TCCR4A = _BV(COM4A0) | _BV(PWM4A); // Clear on match, PWMA on
^
/private/var/folders/pf/zwvwb5n93qj972ltxgc558j40000gp/T/AppTranslocation/06694151-1FB8-46A7-A41D-9B56D3477747/d/Arduino.app/Contents/Java/libraries/Adafruit_Circuit_Playground/Adafruit_CircuitPlayground.cpp:239:16: note: suggested alternative: 'COM0A0'
/private/var/folders/pf/zwvwb5n93qj972ltxgc558j40000gp/T/AppTranslocation/06694151-1FB8-46A7-A41D-9B56D3477747/d/Arduino.app/Contents/Java/libraries/Adafruit_Circuit_Playground/Adafruit_CircuitPlayground.cpp:239:30: error: 'PWM4A' was not declared in this scope
TCCR4A = _BV(COM4A0) | _BV(PWM4A); // Clear on match, PWMA on
^
/private/var/folders/pf/zwvwb5n93qj972ltxgc558j40000gp/T/AppTranslocation/06694151-1FB8-46A7-A41D-9B56D3477747/d/Arduino.app/Contents/Java/libraries/Adafruit_Circuit_Playground/Adafruit_CircuitPlayground.cpp:239:30: note: suggested alternative: 'PWM'
/private/var/folders/pf/zwvwb5n93qj972ltxgc558j40000gp/T/AppTranslocation/06694151-1FB8-46A7-A41D-9B56D3477747/d/Arduino.app/Contents/Java/libraries/Adafruit_Circuit_Playground/Adafruit_CircuitPlayground.cpp:240:3: error: 'TCCR4B' was not declared in this scope
TCCR4B = _BV(PWM4X) | scalebits; // PWM invert
^~~~~~
/private/var/folders/pf/zwvwb5n93qj972ltxgc558j40000gp/T/AppTranslocation/06694151-1FB8-46A7-A41D-9B56D3477747/d/Arduino.app/Contents/Java/libraries/Adafruit_Circuit_Playground/Adafruit_CircuitPlayground.cpp:240:3: note: suggested alternative: 'TCCR0B'
TCCR4B = _BV(PWM4X) | scalebits; // PWM invert
^~~~~~
TCCR0B
In file included from /private/var/folders/pf/zwvwb5n93qj972ltxgc558j40000gp/T/AppTranslocation/06694151-1FB8-46A7-A41D-9B56D3477747/d/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/io.h:99:0,
from /private/var/folders/pf/zwvwb5n93qj972ltxgc558j40000gp/T/AppTranslocation/06694151-1FB8-46A7-A41D-9B56D3477747/d/Arduino.app/Contents/Java/hardware/tools/avr/avr/include/avr/pgmspace.h:90,
from /private/var/folders/pf/zwvwb5n93qj972ltxgc558j40000gp/T/AppTranslocation/06694151-1FB8-46A7-A41D-9B56D3477747/d/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:28,
from /private/var/folders/pf/zwvwb5n93qj972ltxgc558j40000gp/T/AppTranslocation/06694151-1FB8-46A7-A41D-9B56D3477747/d/Arduino.app/Contents/Java/libraries/Adafruit_Circuit_Playground/utility/Adafruit_CPlay_LIS3DH.h:30,
from /private/var/folders/pf/zwvwb5n93qj972ltxgc558j40000gp/T/AppTranslocation/06694151-1FB8-46A7-A41D-9B56D3477747/d/Arduino.app/Contents/Java/libraries/Adafruit_Circuit_Playground/Adafruit_Circuit_Playground.h:21,
from /private/var/folders/pf/zwvwb5n93qj972ltxgc558j40000gp/T/AppTranslocation/06694151-1FB8-46A7-A41D-9B56D3477747/d/Arduino.app/Contents/Java/libraries/Adafruit_Circuit_Playground/Adafruit_CircuitPlayground.cpp:30:
/private/var/folders/pf/zwvwb5n93qj972ltxgc558j40000gp/T/AppTranslocation/06694151-1FB8-46A7-A41D-9B56D3477747/d/Arduino.app/Contents/Java/libraries/Adafruit_Circuit_Playground/Adafruit_CircuitPlayground.cpp:240:16: error: 'PWM4X' was not declared in this scope
TCCR4B = _BV(PWM4X) | scalebits; // PWM invert
^
/private/var/folders/pf/zwvwb5n93qj972ltxgc558j40000gp/T/AppTranslocation/06694151-1FB8-46A7-A41D-9B56D3477747/d/Arduino.app/Contents/Java/libraries/Adafruit_Circuit_Playground/Adafruit_CircuitPlayground.cpp:240:16: note: suggested alternative: 'PWM'
/private/var/folders/pf/zwvwb5n93qj972ltxgc558j40000gp/T/AppTranslocation/06694151-1FB8-46A7-A41D-9B56D3477747/d/Arduino.app/Contents/Java/libraries/Adafruit_Circuit_Playground/Adafruit_CircuitPlayground.cpp:241:3: error: 'TCCR4D' was not declared in this scope
TCCR4D = 0; // Fast PWM mode
^~~~~~
/private/var/folders/pf/zwvwb5n93qj972ltxgc558j40000gp/T/AppTranslocation/06694151-1FB8-46A7-A41D-9B56D3477747/d/Arduino.app/Contents/Java/libraries/Adafruit_Circuit_Playground/Adafruit_CircuitPlayground.cpp:241:3: note: suggested alternative: 'TCCR0A'
TCCR4D = 0; // Fast PWM mode
^~~~~~
TCCR0A
/private/var/folders/pf/zwvwb5n93qj972ltxgc558j40000gp/T/AppTranslocation/06694151-1FB8-46A7-A41D-9B56D3477747/d/Arduino.app/Contents/Java/libraries/Adafruit_Circuit_Playground/Adafruit_CircuitPlayground.cpp:242:3: error: 'TCCR4E' was not declared in this scope
TCCR4E = 0; // Not enhanced mode
^~~~~~
/private/var/folders/pf/zwvwb5n93qj972ltxgc558j40000gp/T/AppTranslocation/06694151-1FB8-46A7-A41D-9B56D3477747/d/Arduino.app/Contents/Java/libraries/Adafruit_Circuit_Playground/Adafruit_CircuitPlayground.cpp:242:3: note: suggested alternative: 'TCCR0A'
TCCR4E = 0; // Not enhanced mode
^~~~~~
TCCR0A
/private/var/folders/pf/zwvwb5n93qj972ltxgc558j40000gp/T/AppTranslocation/06694151-1FB8-46A7-A41D-9B56D3477747/d/Arduino.app/Contents/Java/libraries/Adafruit_Circuit_Playground/Adafruit_CircuitPlayground.cpp:243:3: error: 'DT4' was not declared in this scope
DT4 = 0; // No dead time
^~~
/private/var/folders/pf/zwvwb5n93qj972ltxgc558j40000gp/T/AppTranslocation/06694151-1FB8-46A7-A41D-9B56D3477747/d/Arduino.app/Contents/Java/libraries/Adafruit_Circuit_Playground/Adafruit_CircuitPlayground.cpp:243:3: note: suggested alternative: 'DD4'
DT4 = 0; // No dead time
^~~
DD4
/private/var/folders/pf/zwvwb5n93qj972ltxgc558j40000gp/T/AppTranslocation/06694151-1FB8-46A7-A41D-9B56D3477747/d/Arduino.app/Contents/Java/libraries/Adafruit_Circuit_Playground/Adafruit_CircuitPlayground.cpp:249:3: error: 'TC4H' was not declared in this scope
TC4H = hi1;
^~~~
/private/var/folders/pf/zwvwb5n93qj972ltxgc558j40000gp/T/AppTranslocation/06694151-1FB8-46A7-A41D-9B56D3477747/d/Arduino.app/Contents/Java/libraries/Adafruit_Circuit_Playground/Adafruit_CircuitPlayground.cpp:249:3: note: suggested alternative: 'PC4'
TC4H = hi1;
^~~~
PC4
/private/var/folders/pf/zwvwb5n93qj972ltxgc558j40000gp/T/AppTranslocation/06694151-1FB8-46A7-A41D-9B56D3477747/d/Arduino.app/Contents/Java/libraries/Adafruit_Circuit_Playground/Adafruit_CircuitPlayground.cpp:250:3: error: 'OCR4C' was not declared in this scope
OCR4C = lo1; // TOP
^~~~~
/private/var/folders/pf/zwvwb5n93qj972ltxgc558j40000gp/T/AppTranslocation/06694151-1FB8-46A7-A41D-9B56D3477747/d/Arduino.app/Contents/Java/libraries/Adafruit_Circuit_Playground/Adafruit_CircuitPlayground.cpp:250:3: note: suggested alternative: 'OCR2A'
OCR4C = lo1; // TOP
^~~~~
OCR2A
/private/var/folders/pf/zwvwb5n93qj972ltxgc558j40000gp/T/AppTranslocation/06694151-1FB8-46A7-A41D-9B56D3477747/d/Arduino.app/Contents/Java/libraries/Adafruit_Circuit_Playground/Adafruit_CircuitPlayground.cpp:252:3: error: 'OCR4A' was not declared in this scope
OCR4A = lo2; // 50% duty
^~~~~
/private/var/folders/pf/zwvwb5n93qj972ltxgc558j40000gp/T/AppTranslocation/06694151-1FB8-46A7-A41D-9B56D3477747/d/Arduino.app/Contents/Java/libraries/Adafruit_Circuit_Playground/Adafruit_CircuitPlayground.cpp:252:3: note: suggested alternative: 'OCR2A'
OCR4A = lo2; // 50% duty
^~~~~
OCR2A
exit status 1
Error compiling for board Arduino Uno.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.