Arduino Nano dont appera in "port"

image

I got my first arduino (nano) a few days ago but I can't put any code on it.
The "port" category is grayed out and cannot be selected.
My arduino is well connected (continuous green light and a flashing orange).

When I try to upload, I get this error :
Failed uploading: no upload port provided

As I am a beginner, don't hesitate to ask me for more information if needed, thanks in advance

no driver installed for your particular board

1 Like

If you have official Arduino nano, just install IDE 2.1.0 and all the dependencies that show up after the installation. After this, use a good data USB cable(very important) to connect the board to your PC, the new IDE will auto detect it.

But if your board is a clone, make sure you install the right driver for it, like https://www.instructables.com/Arduino-Nano-USB-Not-Recognizing-Fix/

I normally have an official version (the box looks official anyway).
I am already on the IDE 2.1.0.
And my usb cable works normally because when I connect my arduino the leds light up, and when I connect a phone with the same cable, the telephone starts to charge, so I conclude that the cable works

I'm not sure what a driver is.
I installed the Arduino AVR Boards extension because I understood that I needed it.

show pictures of the board



I think I have a lead.
I just noticed that there are arduinos nano and every nano.
So I tried to select every nano.
But now the code does not compile anymore, I have the following errors:
C:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp: In static member function 'static void PWMServo::seizeTimer1()':
C:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:44:3: error: 'TCCR1A' was not declared in this scope
TCCR1A = _BV(WGM11); /* Fast PWM, ICR1 is top /
^~~~~~
C:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:44:3: note: suggested alternative: 'TCB1'
TCCR1A = _BV(WGM11); /
Fast PWM, ICR1 is top /
^~~~~~
TCB1
In file included from c:\users\cb\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\cb\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5\avr\include\avr\pgmspace.h:90,
from C:\Users\CB\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.8\cores\arduino/api/String.h:31,
from C:\Users\CB\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.8\cores\arduino/api/IPAddress.h:24,
from C:\Users\CB\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.8\cores\arduino/api/ArduinoAPI.h:30,
from C:\Users\CB\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.8\cores\arduino/Arduino.h:23,
from C:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:1:
C:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:44:16: error: 'WGM11' was not declared in this scope
TCCR1A = _BV(WGM11); /
Fast PWM, ICR1 is top /
^
C:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:45:3: error: 'TCCR1B' was not declared in this scope
TCCR1B = _BV(WGM13) | _BV(WGM12) /
Fast PWM, ICR1 is top /
^~~~~~
C:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:45:3: note: suggested alternative: 'TCB1'
TCCR1B = _BV(WGM13) | _BV(WGM12) /
Fast PWM, ICR1 is top /
^~~~~~
TCB1
In file included from c:\users\cb\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\cb\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5\avr\include\avr\pgmspace.h:90,
from C:\Users\CB\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.8\cores\arduino/api/String.h:31,
from C:\Users\CB\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.8\cores\arduino/api/IPAddress.h:24,
from C:\Users\CB\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.8\cores\arduino/api/ArduinoAPI.h:30,
from C:\Users\CB\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.8\cores\arduino/Arduino.h:23,
from C:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:1:
C:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:45:16: error: 'WGM13' was not declared in this scope
TCCR1B = _BV(WGM13) | _BV(WGM12) /
Fast PWM, ICR1 is top /
^
C:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:45:29: error: 'WGM12' was not declared in this scope
TCCR1B = _BV(WGM13) | _BV(WGM12) /
Fast PWM, ICR1 is top /
^
C:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:46:9: error: 'CS11' was not declared in this scope
| _BV(CS11) /
div 8 clock prescaler /
^
C:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:46:9: note: suggested alternative: 'B111'
C:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:48:3: error: 'OCR1A' was not declared in this scope
OCR1A = 3000;
^~~~~
C:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:49:3: error: 'OCR1B' was not declared in this scope
OCR1B = 3000;
^~~~~
C:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:50:3: error: 'ICR1' was not declared in this scope
ICR1 = clockCyclesPerMicrosecond()
(20000L/8); // 20000 uS is a bit fast for the refresh, 20ms, but
^~~~
C:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:50:3: note: suggested alternative: 'TCB1'
ICR1 = clockCyclesPerMicrosecond()*(20000L/8); // 20000 uS is a bit fast for the refresh, 20ms, but
^~~~
TCB1
C:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:56:3: error: 'TIMSK1' was not declared in this scope
TIMSK1 &= ~(_BV(OCIE1A) | _BV(OCIE1B) | _BV(TOIE1) );
^~~~~~
C:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:56:3: note: suggested alternative: 'TIMERB1'
TIMSK1 &= ~(_BV(OCIE1A) | _BV(OCIE1B) | _BV(TOIE1) );
^~~~~~
TIMERB1
In file included from c:\users\cb\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\cb\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5\avr\include\avr\pgmspace.h:90,
from C:\Users\CB\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.8\cores\arduino/api/String.h:31,
from C:\Users\CB\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.8\cores\arduino/api/IPAddress.h:24,
from C:\Users\CB\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.8\cores\arduino/api/ArduinoAPI.h:30,
from C:\Users\CB\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.8\cores\arduino/Arduino.h:23,
from C:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:1:
C:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:56:20: error: 'OCIE1A' was not declared in this scope
TIMSK1 &= ~(_BV(OCIE1A) | _BV(OCIE1B) | _BV(TOIE1) );
^
C:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:56:34: error: 'OCIE1B' was not declared in this scope
TIMSK1 &= ~(_BV(OCIE1A) | _BV(OCIE1B) | _BV(TOIE1) );
^
C:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:56:48: error: 'TOIE1' was not declared in this scope
TIMSK1 &= ~(_BV(OCIE1A) | _BV(OCIE1B) | _BV(TOIE1) );
^
C:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp: In member function 'uint8_t PWMServo::attach(int, int, int)':
C:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:90:5: error: 'TCCR1A' was not declared in this scope
TCCR1A = (TCCR1A & ~_BV(COM1A0)) | _BV(COM1A1);
^~~~~~
C:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:90:5: note: suggested alternative: 'TCB1'
TCCR1A = (TCCR1A & ~_BV(COM1A0)) | _BV(COM1A1);
^~~~~~
TCB1
In file included from c:\users\cb\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\cb\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5\avr\include\avr\pgmspace.h:90,
from C:\Users\CB\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.8\cores\arduino/api/String.h:31,
from C:\Users\CB\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.8\cores\arduino/api/IPAddress.h:24,
from C:\Users\CB\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.8\cores\arduino/api/ArduinoAPI.h:30,
from C:\Users\CB\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.8\cores\arduino/Arduino.h:23,
from C:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:1:
C:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:90:29: error: 'COM1A0' was not declared in this scope
TCCR1A = (TCCR1A & ~_BV(COM1A0)) | _BV(COM1A1);
^
C:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:90:44: error: 'COM1A1' was not declared in this scope
TCCR1A = (TCCR1A & ~_BV(COM1A0)) | _BV(COM1A1);
^
C:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:95:5: error: 'TCCR1A' was not declared in this scope
TCCR1A = (TCCR1A & ~_BV(COM1B0)) | _BV(COM1B1);
^~~~~~
C:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:95:5: note: suggested alternative: 'TCB1'
TCCR1A = (TCCR1A & ~_BV(COM1B0)) | _BV(COM1B1);
^~~~~~
TCB1
In file included from c:\users\cb\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\cb\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5\avr\include\avr\pgmspace.h:90,
from C:\Users\CB\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.8\cores\arduino/api/String.h:31,
from C:\Users\CB\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.8\cores\arduino/api/IPAddress.h:24,
from C:\Users\CB\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.8\cores\arduino/api/ArduinoAPI.h:30,
from C:\Users\CB\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.8\cores\arduino/Arduino.h:23,
from C:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:1:
C:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:95:29: error: 'COM1B0' was not declared in this scope
TCCR1A = (TCCR1A & ~_BV(COM1B0)) | _BV(COM1B1);
^
C:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:95:44: error: 'COM1B1' was not declared in this scope
TCCR1A = (TCCR1A & ~_BV(COM1B0)) | _BV(COM1B1);
^
C:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp: In member function 'void PWMServo::detach()':
C:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:112:5: error: 'TCCR1A' was not declared in this scope
TCCR1A = TCCR1A & ~_BV(COM1A0) & ~_BV(COM1A1);
^~~~~~
C:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:112:5: note: suggested alternative: 'TCB1'
TCCR1A = TCCR1A & ~_BV(COM1A0) & ~_BV(COM1A1);
^~~~~~
TCB1
In file included from c:\users\cb\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\cb\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5\avr\include\avr\pgmspace.h:90,
from C:\Users\CB\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.8\cores\arduino/api/String.h:31,
from C:\Users\CB\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.8\cores\arduino/api/IPAddress.h:24,
from C:\Users\CB\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.8\cores\arduino/api/ArduinoAPI.h:30,
from C:\Users\CB\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.8\cores\arduino/Arduino.h:23,
from C:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:1:
C:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:112:28: error: 'COM1A0' was not declared in this scope
TCCR1A = TCCR1A & ~_BV(COM1A0) & ~_BV(COM1A1);
^
C:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:112:43: error: 'COM1A1' was not declared in this scope
TCCR1A = TCCR1A & ~_BV(COM1A0) & ~_BV(COM1A1);
^
C:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:118:5: error: 'TCCR1A' was not declared in this scope
TCCR1A = TCCR1A & ~_BV(COM1B0) & ~_BV(COM1B1);
^~~~~~
C:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:118:5: note: suggested alternative: 'TCB1'
TCCR1A = TCCR1A & ~_BV(COM1B0) & ~_BV(COM1B1);
^~~~~~
TCB1
In file included from c:\users\cb\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\cb\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5\avr\include\avr\pgmspace.h:90,
from C:\Users\CB\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.8\cores\arduino/api/String.h:31,
from C:\Users\CB\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.8\cores\arduino/api/IPAddress.h:24,
from C:\Users\CB\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.8\cores\arduino/api/ArduinoAPI.h:30,
from C:\Users\CB\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.8\cores\arduino/Arduino.h:23,
from C:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:1:
C:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:118:28: error: 'COM1B0' was not declared in this scope
TCCR1A = TCCR1A & ~_BV(COM1B0) & ~_BV(COM1B1);
^
C:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:118:43: error: 'COM1B1' was not declared in this scope
TCCR1A = TCCR1A & ~_BV(COM1B0) & ~_BV(COM1B1);
^
C:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp: In member function 'void PWMServo::write(int)':
C:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:149:27: error: 'OCR1A' was not declared in this scope
if (pin == SERVO_PIN_A) OCR1A = p;
^~~~~
C:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:150:27: error: 'OCR1B' was not declared in this scope
if (pin == SERVO_PIN_B) OCR1B = p;
^~~~~

exit status 1

Compilation error: exit status 1

You don't have a Nano, you have a Nano Every. You will need to install the megaAVR board package.

Regarding your error messages during compile, not all 3rd party libraries will work with the Nano Every. PWMServo is probably one of them.


yep, I just did it but still errors

OK, that screenshot from post #10 is fine. I did edit my previous reply adding some additional information.

I've moved your topic to the Nano Every section of the forum.

//Edit: still no port, I see.

Your conclusion is wrong; probably a charge-only cable. Get a cable that you can also use to download files from your phone to the PC (it's called a sync cable or data cable).

2 Likes

thanks for your help, the problem was indeed the cable that did not send the data (but I still have my compilation problem, I'll try to search by myself)

i knew it. normally Nano makes no trouble.

Good luck; it's not the easiest to fix that except when you start using a different library.

You may want to consider using MegaCoreX instead of the Arduino megaavr core.

MegaCoreX contains a Servo Library which uses Timer interrupts in the same fashion as PWMServo.h

When running MegaCoreX with a #include Servo.h you want to make certain that the standard servo library is not used by the compiler. Check in preferences to enable verbose output during compile and verify the libraries used. You may need to rename or temporarily quarantine the standard Servo library not tied to MegaCoreX.

I don't know what standard bookstore you are talking about, or where it is located.
But for the board, I tried the 8 (I don't know which one to choose)
Here are my outputs if it can help:

Using board '808' from platform in folder: C:\Users\CB\AppData\Local\Arduino15\packages\MegaCoreX\hardware\megaavr\1.1.2
Using core 'coreX-corefiles' from platform in folder: C:\Users\CB\AppData\Local\Arduino15\packages\MegaCoreX\hardware\megaavr\1.1.2

Detecting libraries used...
"C:\\Users\\CB\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++17 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -mrelax -w -x c++ -E -CC -mmcu=atmega808 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_ATmega808 -DARDUINO_ARCH_MEGAAVR "-IC:\\Users\\CB\\AppData\\Local\\Arduino15\\packages\\MegaCoreX\\hardware\\megaavr\\1.1.2\\cores\\coreX-corefiles/api/deprecated" "-IC:\\Users\\CB\\AppData\\Local\\Arduino15\\packages\\MegaCoreX\\hardware\\megaavr\\1.1.2\\cores\\coreX-corefiles" "-IC:\\Users\\CB\\AppData\\Local\\Arduino15\\packages\\MegaCoreX\\hardware\\megaavr\\1.1.2\\variants\\32pin-standard" "C:\\Users\\CB\\AppData\\Local\\Temp\\arduino\\sketches\\F625492BD2757AB4BF29FFC5490ACF29\\sketch\\mk5_sketch_ADJUSTABLE.ino.cpp" -o nul
Alternatives for PWMServo.h: [PWMServo@2.1]
ResolveLibrary(PWMServo.h)
  -> candidates: [PWMServo@2.1]
"C:\\Users\\CB\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++17 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -mrelax -w -x c++ -E -CC -mmcu=atmega808 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_ATmega808 -DARDUINO_ARCH_MEGAAVR "-IC:\\Users\\CB\\AppData\\Local\\Arduino15\\packages\\MegaCoreX\\hardware\\megaavr\\1.1.2\\cores\\coreX-corefiles/api/deprecated" "-IC:\\Users\\CB\\AppData\\Local\\Arduino15\\packages\\MegaCoreX\\hardware\\megaavr\\1.1.2\\cores\\coreX-corefiles" "-IC:\\Users\\CB\\AppData\\Local\\Arduino15\\packages\\MegaCoreX\\hardware\\megaavr\\1.1.2\\variants\\32pin-standard" "-Ic:\\Users\\CB\\Documents\\Arduino\\libraries\\PWMServo" "C:\\Users\\CB\\AppData\\Local\\Temp\\arduino\\sketches\\F625492BD2757AB4BF29FFC5490ACF29\\sketch\\mk5_sketch_ADJUSTABLE.ino.cpp" -o nul
Alternatives for Wire.h: [Wire@1.0]
ResolveLibrary(Wire.h)
  -> candidates: [Wire@1.0]
"C:\\Users\\CB\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++17 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -mrelax -w -x c++ -E -CC -mmcu=atmega808 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_ATmega808 -DARDUINO_ARCH_MEGAAVR "-IC:\\Users\\CB\\AppData\\Local\\Arduino15\\packages\\MegaCoreX\\hardware\\megaavr\\1.1.2\\cores\\coreX-corefiles/api/deprecated" "-IC:\\Users\\CB\\AppData\\Local\\Arduino15\\packages\\MegaCoreX\\hardware\\megaavr\\1.1.2\\cores\\coreX-corefiles" "-IC:\\Users\\CB\\AppData\\Local\\Arduino15\\packages\\MegaCoreX\\hardware\\megaavr\\1.1.2\\variants\\32pin-standard" "-Ic:\\Users\\CB\\Documents\\Arduino\\libraries\\PWMServo" "-IC:\\Users\\CB\\AppData\\Local\\Arduino15\\packages\\MegaCoreX\\hardware\\megaavr\\1.1.2\\libraries\\Wire\\src" "C:\\Users\\CB\\AppData\\Local\\Temp\\arduino\\sketches\\F625492BD2757AB4BF29FFC5490ACF29\\sketch\\mk5_sketch_ADJUSTABLE.ino.cpp" -o nul
Alternatives for Adafruit_PWMServoDriver.h: [Adafruit PWM Servo Driver Library@2.4.1]
ResolveLibrary(Adafruit_PWMServoDriver.h)
  -> candidates: [Adafruit PWM Servo Driver Library@2.4.1]
"C:\\Users\\CB\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++17 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -mrelax -w -x c++ -E -CC -mmcu=atmega808 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_ATmega808 -DARDUINO_ARCH_MEGAAVR "-IC:\\Users\\CB\\AppData\\Local\\Arduino15\\packages\\MegaCoreX\\hardware\\megaavr\\1.1.2\\cores\\coreX-corefiles/api/deprecated" "-IC:\\Users\\CB\\AppData\\Local\\Arduino15\\packages\\MegaCoreX\\hardware\\megaavr\\1.1.2\\cores\\coreX-corefiles" "-IC:\\Users\\CB\\AppData\\Local\\Arduino15\\packages\\MegaCoreX\\hardware\\megaavr\\1.1.2\\variants\\32pin-standard" "-Ic:\\Users\\CB\\Documents\\Arduino\\libraries\\PWMServo" "-IC:\\Users\\CB\\AppData\\Local\\Arduino15\\packages\\MegaCoreX\\hardware\\megaavr\\1.1.2\\libraries\\Wire\\src" "-Ic:\\Users\\CB\\Documents\\Arduino\\libraries\\Adafruit_PWM_Servo_Driver_Library" "C:\\Users\\CB\\AppData\\Local\\Temp\\arduino\\sketches\\F625492BD2757AB4BF29FFC5490ACF29\\sketch\\mk5_sketch_ADJUSTABLE.ino.cpp" -o nul
"C:\\Users\\CB\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++17 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -mrelax -w -x c++ -E -CC -mmcu=atmega808 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_ATmega808 -DARDUINO_ARCH_MEGAAVR "-IC:\\Users\\CB\\AppData\\Local\\Arduino15\\packages\\MegaCoreX\\hardware\\megaavr\\1.1.2\\cores\\coreX-corefiles/api/deprecated" "-IC:\\Users\\CB\\AppData\\Local\\Arduino15\\packages\\MegaCoreX\\hardware\\megaavr\\1.1.2\\cores\\coreX-corefiles" "-IC:\\Users\\CB\\AppData\\Local\\Arduino15\\packages\\MegaCoreX\\hardware\\megaavr\\1.1.2\\variants\\32pin-standard" "-Ic:\\Users\\CB\\Documents\\Arduino\\libraries\\PWMServo" "-IC:\\Users\\CB\\AppData\\Local\\Arduino15\\packages\\MegaCoreX\\hardware\\megaavr\\1.1.2\\libraries\\Wire\\src" "-Ic:\\Users\\CB\\Documents\\Arduino\\libraries\\Adafruit_PWM_Servo_Driver_Library" "c:\\Users\\CB\\Documents\\Arduino\\libraries\\PWMServo\\PWMServo.cpp" -o nul
"C:\\Users\\CB\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++17 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -mrelax -w -x c++ -E -CC -mmcu=atmega808 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_ATmega808 -DARDUINO_ARCH_MEGAAVR "-IC:\\Users\\CB\\AppData\\Local\\Arduino15\\packages\\MegaCoreX\\hardware\\megaavr\\1.1.2\\cores\\coreX-corefiles/api/deprecated" "-IC:\\Users\\CB\\AppData\\Local\\Arduino15\\packages\\MegaCoreX\\hardware\\megaavr\\1.1.2\\cores\\coreX-corefiles" "-IC:\\Users\\CB\\AppData\\Local\\Arduino15\\packages\\MegaCoreX\\hardware\\megaavr\\1.1.2\\variants\\32pin-standard" "-Ic:\\Users\\CB\\Documents\\Arduino\\libraries\\PWMServo" "-IC:\\Users\\CB\\AppData\\Local\\Arduino15\\packages\\MegaCoreX\\hardware\\megaavr\\1.1.2\\libraries\\Wire\\src" "-Ic:\\Users\\CB\\Documents\\Arduino\\libraries\\Adafruit_PWM_Servo_Driver_Library" "C:\\Users\\CB\\AppData\\Local\\Arduino15\\packages\\MegaCoreX\\hardware\\megaavr\\1.1.2\\libraries\\Wire\\src\\Wire.cpp" -o nul
"C:\\Users\\CB\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++17 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -mrelax -w -x c++ -E -CC -mmcu=atmega808 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_ATmega808 -DARDUINO_ARCH_MEGAAVR "-IC:\\Users\\CB\\AppData\\Local\\Arduino15\\packages\\MegaCoreX\\hardware\\megaavr\\1.1.2\\cores\\coreX-corefiles/api/deprecated" "-IC:\\Users\\CB\\AppData\\Local\\Arduino15\\packages\\MegaCoreX\\hardware\\megaavr\\1.1.2\\cores\\coreX-corefiles" "-IC:\\Users\\CB\\AppData\\Local\\Arduino15\\packages\\MegaCoreX\\hardware\\megaavr\\1.1.2\\variants\\32pin-standard" "-Ic:\\Users\\CB\\Documents\\Arduino\\libraries\\PWMServo" "-IC:\\Users\\CB\\AppData\\Local\\Arduino15\\packages\\MegaCoreX\\hardware\\megaavr\\1.1.2\\libraries\\Wire\\src" "-Ic:\\Users\\CB\\Documents\\Arduino\\libraries\\Adafruit_PWM_Servo_Driver_Library" "C:\\Users\\CB\\AppData\\Local\\Arduino15\\packages\\MegaCoreX\\hardware\\megaavr\\1.1.2\\libraries\\Wire\\src\\utility\\twi.c" -o nul
"C:\\Users\\CB\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++17 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -mrelax -w -x c++ -E -CC -mmcu=atmega808 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_ATmega808 -DARDUINO_ARCH_MEGAAVR "-IC:\\Users\\CB\\AppData\\Local\\Arduino15\\packages\\MegaCoreX\\hardware\\megaavr\\1.1.2\\cores\\coreX-corefiles/api/deprecated" "-IC:\\Users\\CB\\AppData\\Local\\Arduino15\\packages\\MegaCoreX\\hardware\\megaavr\\1.1.2\\cores\\coreX-corefiles" "-IC:\\Users\\CB\\AppData\\Local\\Arduino15\\packages\\MegaCoreX\\hardware\\megaavr\\1.1.2\\variants\\32pin-standard" "-Ic:\\Users\\CB\\Documents\\Arduino\\libraries\\PWMServo" "-IC:\\Users\\CB\\AppData\\Local\\Arduino15\\packages\\MegaCoreX\\hardware\\megaavr\\1.1.2\\libraries\\Wire\\src" "-Ic:\\Users\\CB\\Documents\\Arduino\\libraries\\Adafruit_PWM_Servo_Driver_Library" "c:\\Users\\CB\\Documents\\Arduino\\libraries\\Adafruit_PWM_Servo_Driver_Library\\Adafruit_PWMServoDriver.cpp" -o nul
Generating function prototypes...
"C:\\Users\\CB\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++17 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -mrelax -w -x c++ -E -CC -mmcu=atmega808 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_ATmega808 -DARDUINO_ARCH_MEGAAVR "-IC:\\Users\\CB\\AppData\\Local\\Arduino15\\packages\\MegaCoreX\\hardware\\megaavr\\1.1.2\\cores\\coreX-corefiles/api/deprecated" "-IC:\\Users\\CB\\AppData\\Local\\Arduino15\\packages\\MegaCoreX\\hardware\\megaavr\\1.1.2\\cores\\coreX-corefiles" "-IC:\\Users\\CB\\AppData\\Local\\Arduino15\\packages\\MegaCoreX\\hardware\\megaavr\\1.1.2\\variants\\32pin-standard" "-Ic:\\Users\\CB\\Documents\\Arduino\\libraries\\PWMServo" "-IC:\\Users\\CB\\AppData\\Local\\Arduino15\\packages\\MegaCoreX\\hardware\\megaavr\\1.1.2\\libraries\\Wire\\src" "-Ic:\\Users\\CB\\Documents\\Arduino\\libraries\\Adafruit_PWM_Servo_Driver_Library" "C:\\Users\\CB\\AppData\\Local\\Temp\\arduino\\sketches\\F625492BD2757AB4BF29FFC5490ACF29\\sketch\\mk5_sketch_ADJUSTABLE.ino.cpp" -o "C:\\Users\\CB\\AppData\\Local\\Temp\\arduino\\sketches\\F625492BD2757AB4BF29FFC5490ACF29\\preproc\\ctags_target_for_gcc_minus_e.cpp"
"C:\\Users\\CB\\AppData\\Local\\Arduino15\\packages\\builtin\\tools\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\\Users\\CB\\AppData\\Local\\Temp\\arduino\\sketches\\F625492BD2757AB4BF29FFC5490ACF29\\preproc\\ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"C:\\Users\\CB\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++17 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mrelax -mmcu=atmega808 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_ATmega808 -DARDUINO_ARCH_MEGAAVR "-IC:\\Users\\CB\\AppData\\Local\\Arduino15\\packages\\MegaCoreX\\hardware\\megaavr\\1.1.2\\cores\\coreX-corefiles/api/deprecated" "-IC:\\Users\\CB\\AppData\\Local\\Arduino15\\packages\\MegaCoreX\\hardware\\megaavr\\1.1.2\\cores\\coreX-corefiles" "-IC:\\Users\\CB\\AppData\\Local\\Arduino15\\packages\\MegaCoreX\\hardware\\megaavr\\1.1.2\\variants\\32pin-standard" "-Ic:\\Users\\CB\\Documents\\Arduino\\libraries\\PWMServo" "-IC:\\Users\\CB\\AppData\\Local\\Arduino15\\packages\\MegaCoreX\\hardware\\megaavr\\1.1.2\\libraries\\Wire\\src" "-Ic:\\Users\\CB\\Documents\\Arduino\\libraries\\Adafruit_PWM_Servo_Driver_Library" "C:\\Users\\CB\\AppData\\Local\\Temp\\arduino\\sketches\\F625492BD2757AB4BF29FFC5490ACF29\\sketch\\mk5_sketch_ADJUSTABLE.ino.cpp" -o "C:\\Users\\CB\\AppData\\Local\\Temp\\arduino\\sketches\\F625492BD2757AB4BF29FFC5490ACF29\\sketch\\mk5_sketch_ADJUSTABLE.ino.cpp.o"
Compiling libraries...
Compiling library "PWMServo"
"C:\\Users\\CB\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++17 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mrelax -mmcu=atmega808 -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_ATmega808 -DARDUINO_ARCH_MEGAAVR "-IC:\\Users\\CB\\AppData\\Local\\Arduino15\\packages\\MegaCoreX\\hardware\\megaavr\\1.1.2\\cores\\coreX-corefiles/api/deprecated" "-IC:\\Users\\CB\\AppData\\Local\\Arduino15\\packages\\MegaCoreX\\hardware\\megaavr\\1.1.2\\cores\\coreX-corefiles" "-IC:\\Users\\CB\\AppData\\Local\\Arduino15\\packages\\MegaCoreX\\hardware\\megaavr\\1.1.2\\variants\\32pin-standard" "-Ic:\\Users\\CB\\Documents\\Arduino\\libraries\\PWMServo" "-IC:\\Users\\CB\\AppData\\Local\\Arduino15\\packages\\MegaCoreX\\hardware\\megaavr\\1.1.2\\libraries\\Wire\\src" "-Ic:\\Users\\CB\\Documents\\Arduino\\libraries\\Adafruit_PWM_Servo_Driver_Library" "c:\\Users\\CB\\Documents\\Arduino\\libraries\\PWMServo\\PWMServo.cpp" -o "C:\\Users\\CB\\AppData\\Local\\Temp\\arduino\\sketches\\F625492BD2757AB4BF29FFC5490ACF29\\libraries\\PWMServo\\PWMServo.cpp.o"
c:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp: In static member function 'static void PWMServo::seizeTimer1()':
c:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:44:3: error: 'TCCR1A' was not declared in this scope
   TCCR1A = _BV(WGM11); /* Fast PWM, ICR1 is top */
   ^~~~~~
c:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:44:3: note: suggested alternative: 'TCB1'
   TCCR1A = _BV(WGM11); /* Fast PWM, ICR1 is top */
   ^~~~~~
   TCB1
In file included from c:\users\cb\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\avr\include\avr\io.h:99:0,
                 from c:\users\cb\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\avr\include\avr\pgmspace.h:90,
                 from C:\Users\CB\AppData\Local\Arduino15\packages\MegaCoreX\hardware\megaavr\1.1.2\cores\coreX-corefiles/api/String.h:30,
                 from C:\Users\CB\AppData\Local\Arduino15\packages\MegaCoreX\hardware\megaavr\1.1.2\cores\coreX-corefiles/api/IPAddress.h:25,
                 from C:\Users\CB\AppData\Local\Arduino15\packages\MegaCoreX\hardware\megaavr\1.1.2\cores\coreX-corefiles/api/Client.h:22,
                 from C:\Users\CB\AppData\Local\Arduino15\packages\MegaCoreX\hardware\megaavr\1.1.2\cores\coreX-corefiles/api/ArduinoAPI.h:29,
                 from C:\Users\CB\AppData\Local\Arduino15\packages\MegaCoreX\hardware\megaavr\1.1.2\cores\coreX-corefiles/Arduino.h:23,
                 from c:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:1:
c:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:44:16: error: 'WGM11' was not declared in this scope
   TCCR1A = _BV(WGM11); /* Fast PWM, ICR1 is top */
                ^
c:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:45:3: error: 'TCCR1B' was not declared in this scope
   TCCR1B = _BV(WGM13) | _BV(WGM12) /* Fast PWM, ICR1 is top */
   ^~~~~~
c:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:45:3: note: suggested alternative: 'TCB1'
   TCCR1B = _BV(WGM13) | _BV(WGM12) /* Fast PWM, ICR1 is top */
   ^~~~~~
   TCB1
In file included from c:\users\cb\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\avr\include\avr\io.h:99:0,
                 from c:\users\cb\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\avr\include\avr\pgmspace.h:90,
                 from C:\Users\CB\AppData\Local\Arduino15\packages\MegaCoreX\hardware\megaavr\1.1.2\cores\coreX-corefiles/api/String.h:30,
                 from C:\Users\CB\AppData\Local\Arduino15\packages\MegaCoreX\hardware\megaavr\1.1.2\cores\coreX-corefiles/api/IPAddress.h:25,
                 from C:\Users\CB\AppData\Local\Arduino15\packages\MegaCoreX\hardware\megaavr\1.1.2\cores\coreX-corefiles/api/Client.h:22,
                 from C:\Users\CB\AppData\Local\Arduino15\packages\MegaCoreX\hardware\megaavr\1.1.2\cores\coreX-corefiles/api/ArduinoAPI.h:29,
                 from C:\Users\CB\AppData\Local\Arduino15\packages\MegaCoreX\hardware\megaavr\1.1.2\cores\coreX-corefiles/Arduino.h:23,
                 from c:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:1:
c:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:45:16: error: 'WGM13' was not declared in this scope
   TCCR1B = _BV(WGM13) | _BV(WGM12) /* Fast PWM, ICR1 is top */
                ^
c:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:45:29: error: 'WGM12' was not declared in this scope
   TCCR1B = _BV(WGM13) | _BV(WGM12) /* Fast PWM, ICR1 is top */
                             ^
c:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:46:9: error: 'CS11' was not declared in this scope
   | _BV(CS11) /* div 8 clock prescaler */
         ^
c:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:46:9: note: suggested alternative: 'A11'
c:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:48:3: error: 'OCR1A' was not declared in this scope
   OCR1A = 3000;
   ^~~~~
c:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:49:3: error: 'OCR1B' was not declared in this scope
   OCR1B = 3000;
   ^~~~~
c:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:50:3: error: 'ICR1' was not declared in this scope
   ICR1 = clockCyclesPerMicrosecond()*(20000L/8);  // 20000 uS is a bit fast for the refresh, 20ms, but
   ^~~~
c:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:50:3: note: suggested alternative: 'TCB1'
   ICR1 = clockCyclesPerMicrosecond()*(20000L/8);  // 20000 uS is a bit fast for the refresh, 20ms, but
   ^~~~
   TCB1
c:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:56:3: error: 'TIMSK1' was not declared in this scope
   TIMSK1 &=  ~(_BV(OCIE1A) | _BV(OCIE1B) | _BV(TOIE1) );
   ^~~~~~
c:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:56:3: note: suggested alternative: 'TIMERB1'
   TIMSK1 &=  ~(_BV(OCIE1A) | _BV(OCIE1B) | _BV(TOIE1) );
   ^~~~~~
   TIMERB1
In file included from c:\users\cb\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\avr\include\avr\io.h:99:0,
                 from c:\users\cb\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\avr\include\avr\pgmspace.h:90,
                 from C:\Users\CB\AppData\Local\Arduino15\packages\MegaCoreX\hardware\megaavr\1.1.2\cores\coreX-corefiles/api/String.h:30,
                 from C:\Users\CB\AppData\Local\Arduino15\packages\MegaCoreX\hardware\megaavr\1.1.2\cores\coreX-corefiles/api/IPAddress.h:25,
                 from C:\Users\CB\AppData\Local\Arduino15\packages\MegaCoreX\hardware\megaavr\1.1.2\cores\coreX-corefiles/api/Client.h:22,
                 from C:\Users\CB\AppData\Local\Arduino15\packages\MegaCoreX\hardware\megaavr\1.1.2\cores\coreX-corefiles/api/ArduinoAPI.h:29,
                 from C:\Users\CB\AppData\Local\Arduino15\packages\MegaCoreX\hardware\megaavr\1.1.2\cores\coreX-corefiles/Arduino.h:23,
                 from c:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:1:
c:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:56:20: error: 'OCIE1A' was not declared in this scope
   TIMSK1 &=  ~(_BV(OCIE1A) | _BV(OCIE1B) | _BV(TOIE1) );
                    ^
c:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:56:34: error: 'OCIE1B' was not declared in this scope
   TIMSK1 &=  ~(_BV(OCIE1A) | _BV(OCIE1B) | _BV(TOIE1) );
                                  ^
c:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:56:48: error: 'TOIE1' was not declared in this scope
   TIMSK1 &=  ~(_BV(OCIE1A) | _BV(OCIE1B) | _BV(TOIE1) );
                                                ^
c:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp: In member function 'uint8_t PWMServo::attach(int, int, int)':
c:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:90:5: error: 'TCCR1A' was not declared in this scope
     TCCR1A = (TCCR1A & ~_BV(COM1A0)) | _BV(COM1A1);
     ^~~~~~
c:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:90:5: note: suggested alternative: 'TCB1'
     TCCR1A = (TCCR1A & ~_BV(COM1A0)) | _BV(COM1A1);
     ^~~~~~
     TCB1
In file included from c:\users\cb\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\avr\include\avr\io.h:99:0,
                 from c:\users\cb\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\avr\include\avr\pgmspace.h:90,
                 from C:\Users\CB\AppData\Local\Arduino15\packages\MegaCoreX\hardware\megaavr\1.1.2\cores\coreX-corefiles/api/String.h:30,
                 from C:\Users\CB\AppData\Local\Arduino15\packages\MegaCoreX\hardware\megaavr\1.1.2\cores\coreX-corefiles/api/IPAddress.h:25,
                 from C:\Users\CB\AppData\Local\Arduino15\packages\MegaCoreX\hardware\megaavr\1.1.2\cores\coreX-corefiles/api/Client.h:22,
                 from C:\Users\CB\AppData\Local\Arduino15\packages\MegaCoreX\hardware\megaavr\1.1.2\cores\coreX-corefiles/api/ArduinoAPI.h:29,
                 from C:\Users\CB\AppData\Local\Arduino15\packages\MegaCoreX\hardware\megaavr\1.1.2\cores\coreX-corefiles/Arduino.h:23,
                 from c:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:1:
c:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:90:29: error: 'COM1A0' was not declared in this scope
     TCCR1A = (TCCR1A & ~_BV(COM1A0)) | _BV(COM1A1);
                             ^
c:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:90:44: error: 'COM1A1' was not declared in this scope
     TCCR1A = (TCCR1A & ~_BV(COM1A0)) | _BV(COM1A1);
                                            ^
c:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:95:5: error: 'TCCR1A' was not declared in this scope
     TCCR1A = (TCCR1A & ~_BV(COM1B0)) | _BV(COM1B1);
     ^~~~~~
c:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:95:5: note: suggested alternative: 'TCB1'
     TCCR1A = (TCCR1A & ~_BV(COM1B0)) | _BV(COM1B1);
     ^~~~~~
     TCB1
In file included from c:\users\cb\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\avr\include\avr\io.h:99:0,
                 from c:\users\cb\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\avr\include\avr\pgmspace.h:90,
                 from C:\Users\CB\AppData\Local\Arduino15\packages\MegaCoreX\hardware\megaavr\1.1.2\cores\coreX-corefiles/api/String.h:30,
                 from C:\Users\CB\AppData\Local\Arduino15\packages\MegaCoreX\hardware\megaavr\1.1.2\cores\coreX-corefiles/api/IPAddress.h:25,
                 from C:\Users\CB\AppData\Local\Arduino15\packages\MegaCoreX\hardware\megaavr\1.1.2\cores\coreX-corefiles/api/Client.h:22,
                 from C:\Users\CB\AppData\Local\Arduino15\packages\MegaCoreX\hardware\megaavr\1.1.2\cores\coreX-corefiles/api/ArduinoAPI.h:29,
                 from C:\Users\CB\AppData\Local\Arduino15\packages\MegaCoreX\hardware\megaavr\1.1.2\cores\coreX-corefiles/Arduino.h:23,
                 from c:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:1:
c:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:95:29: error: 'COM1B0' was not declared in this scope
     TCCR1A = (TCCR1A & ~_BV(COM1B0)) | _BV(COM1B1);
                             ^
c:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:95:44: error: 'COM1B1' was not declared in this scope
     TCCR1A = (TCCR1A & ~_BV(COM1B0)) | _BV(COM1B1);
                                            ^
c:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp: In member function 'void PWMServo::detach()':
c:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:112:5: error: 'TCCR1A' was not declared in this scope
     TCCR1A = TCCR1A & ~_BV(COM1A0) & ~_BV(COM1A1);
     ^~~~~~
c:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:112:5: note: suggested alternative: 'TCB1'
     TCCR1A = TCCR1A & ~_BV(COM1A0) & ~_BV(COM1A1);
     ^~~~~~
     TCB1
In file included from c:\users\cb\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\avr\include\avr\io.h:99:0,
                 from c:\users\cb\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\avr\include\avr\pgmspace.h:90,
                 from C:\Users\CB\AppData\Local\Arduino15\packages\MegaCoreX\hardware\megaavr\1.1.2\cores\coreX-corefiles/api/String.h:30,
                 from C:\Users\CB\AppData\Local\Arduino15\packages\MegaCoreX\hardware\megaavr\1.1.2\cores\coreX-corefiles/api/IPAddress.h:25,
                 from C:\Users\CB\AppData\Local\Arduino15\packages\MegaCoreX\hardware\megaavr\1.1.2\cores\coreX-corefiles/api/Client.h:22,
                 from C:\Users\CB\AppData\Local\Arduino15\packages\MegaCoreX\hardware\megaavr\1.1.2\cores\coreX-corefiles/api/ArduinoAPI.h:29,
                 from C:\Users\CB\AppData\Local\Arduino15\packages\MegaCoreX\hardware\megaavr\1.1.2\cores\coreX-corefiles/Arduino.h:23,
                 from c:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:1:
c:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:112:28: error: 'COM1A0' was not declared in this scope
     TCCR1A = TCCR1A & ~_BV(COM1A0) & ~_BV(COM1A1);
                            ^
c:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:112:43: error: 'COM1A1' was not declared in this scope
     TCCR1A = TCCR1A & ~_BV(COM1A0) & ~_BV(COM1A1);
                                           ^
c:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:118:5: error: 'TCCR1A' was not declared in this scope
     TCCR1A = TCCR1A & ~_BV(COM1B0) & ~_BV(COM1B1);
     ^~~~~~
c:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:118:5: note: suggested alternative: 'TCB1'
     TCCR1A = TCCR1A & ~_BV(COM1B0) & ~_BV(COM1B1);
     ^~~~~~
     TCB1
In file included from c:\users\cb\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\avr\include\avr\io.h:99:0,
                 from c:\users\cb\appdata\local\arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7\avr\include\avr\pgmspace.h:90,
                 from C:\Users\CB\AppData\Local\Arduino15\packages\MegaCoreX\hardware\megaavr\1.1.2\cores\coreX-corefiles/api/String.h:30,
                 from C:\Users\CB\AppData\Local\Arduino15\packages\MegaCoreX\hardware\megaavr\1.1.2\cores\coreX-corefiles/api/IPAddress.h:25,
                 from C:\Users\CB\AppData\Local\Arduino15\packages\MegaCoreX\hardware\megaavr\1.1.2\cores\coreX-corefiles/api/Client.h:22,
                 from C:\Users\CB\AppData\Local\Arduino15\packages\MegaCoreX\hardware\megaavr\1.1.2\cores\coreX-corefiles/api/ArduinoAPI.h:29,
                 from C:\Users\CB\AppData\Local\Arduino15\packages\MegaCoreX\hardware\megaavr\1.1.2\cores\coreX-corefiles/Arduino.h:23,
                 from c:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:1:
c:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:118:28: error: 'COM1B0' was not declared in this scope
     TCCR1A = TCCR1A & ~_BV(COM1B0) & ~_BV(COM1B1);
                            ^
c:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:118:43: error: 'COM1B1' was not declared in this scope
     TCCR1A = TCCR1A & ~_BV(COM1B0) & ~_BV(COM1B1);
                                           ^
c:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp: In member function 'void PWMServo::write(int)':
c:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:149:27: error: 'OCR1A' was not declared in this scope
   if (pin == SERVO_PIN_A) OCR1A = p;
                           ^~~~~
c:\Users\CB\Documents\Arduino\libraries\PWMServo\PWMServo.cpp:150:27: error: 'OCR1B' was not declared in this scope
   if (pin == SERVO_PIN_B) OCR1B = p;
                           ^~~~~

Using library PWMServo at version 2.1 in folder: C:\Users\CB\Documents\Arduino\libraries\PWMServo 
Using library Wire at version 1.0 in folder: C:\Users\CB\AppData\Local\Arduino15\packages\MegaCoreX\hardware\megaavr\1.1.2\libraries\Wire 
Using library Adafruit PWM Servo Driver Library at version 2.4.1 in folder: C:\Users\CB\Documents\Arduino\libraries\Adafruit_PWM_Servo_Driver_Library 
exit status 1

Compilation error: exit status 1

You should use the 4809 on top in your screenshot, that is the processor on your Nano Every.

But the library that you use will not work on it because it directly accesses the processor hardware without considering which processor family it exactly is. So you need to find a library that has support for the 4809. Or raise an issue with AdaFruit.

1 Like

After you select the 4809 board, you will need to check the Nano Every pinout.

You can not use the PWMServo.h library with the Nano Every. Use #include Servo.h.

As I am a beginner, don't hesitate to ask me for more information if needed, thanks in advance

You are going down a path which is unfamiliar to you, inorder to use a timer driven servo library like PWM.h. Why to you think you need to do this, instead of using the standard Servo library with the Nano Every and the Arduino megaavr core?

I started cosplaying recently, I saw a tutorial that explained how to make an automated helmet, in the tutorial there was already the script for the arduino, I only had to touch the soldering afterwards and trust the arduino script

If you are a beginner and trying to use code found online, you will find it easier to get a Classic Nano to run the code you have, rather than trying to adopt the Nano Every.

You are not the first beginner to run into problems with Arduino having decided to call the Every a Nano based on the footprint.

1 Like