Uploading error: exit status 1

#include "ServoEasing.hpp" 
ServoEasing servoTop; 
ServoEasing 
servoBottom;

const int action_pin = 2; 
const int ledPin = 6; 
const int potPin = A0; 
int location = 31;
int bottom_closed = 107; 
int top_closed = 167;
int bottom_open = 20; 
int top_open = 20;
int value;
int maxBrightness;

void setup() 
{
  pinMode(action_pin, INPUT_PULLUP);
pinMode(potPin, INPUT);
servoTop.attach(9);
servoBottom.attach(10);
setSpeedForAllServos(190); servoTop.setEasingType(EASE_CUBIC_IN_OUT); 
servoBottom.setEasingType(EASE_CUBIC_IN_OUT); 
synchronizeAllServosStartAndWaitForAllServosToStop();

}

void loop() 
{
  value = analogRead(potPin);
maxBrightness = map(value, 250, 750, 0, 255); 
int proximity = digitalRead(action_pin);
if (proximity == LOW)
{
  if (location > bottom_open) { servoTop.setEaseTo(top_open); 
  servoBottom.setEaseTo(bottom_open); 
  synchronizeAllServosStartAndWaitForAllServosToStop(); 
  location = bottom_open;
  delay(10);
  analogWrite(ledPin, 0);
  } else {
servoTop.setEaseTo(top_closed); 
servoBottom.setEaseTo(bottom_closed); 
synchronizeAllServosStartAndWaitForAllServosToStop(); 
location = bottom_closed;
delay(50);
analogWrite(ledPin, maxBrightness / 3); 
delay(100);
analogWrite(ledPin, maxBrightness / 5); 
delay(100);
analogWrite(ledPin, maxBrightness / 2); 
delay(100);
analogWrite(ledPin, maxBrightness / 3); 
delay(100);
analogWrite(ledPin, maxBrightness); 
delay(100);
  } 
 }
}
 

I keep getting an error when trying to upload my code to my arduino nano every can anyone help me?

this Is the error mesage

Sketch uses 8366 bytes (17%) of program storage space. Maximum is 49152 bytes.
Global variables use 180 bytes (2%) of dynamic memory, leaving 5964 bytes for local variables. Maximum is 6144 bytes.
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): sign-on command: status -1
avrdude: jtagmkII_getsync(): timeout/error communicating with programmer (status -1)
Failed uploading: uploading error: exit status 1

Seems a basic connection problem, "timeout/error communicating with programmer".
You might try a basic blink program from the IDE and see how you go there.

I've moved your topic to a section of the forum that is more tailored to upload problems.

getting the same error

Did you select the correct serial port?
Is your board properly detected by your operating system?
Which operating system?
Did it work in the past? Or is this your first experience with the board?

Your Nano Every has a micro-USB connector. Micro-USB cables come in two flavours, charge only and data/sync; make sure you have the latter, the former ones come with e.g. power banks or bluetooth speakers.

Note:
I don't have experience with the Nano Every.

Under File> Preferences, select "Show Verbose Output During Upload" and attach what you get.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.