An error occurred while uploading the sketch.

Sketch uses 928 bytes (2%) of program storage space. Maximum is 32,256 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2,039 bytes for local variables. Maximum is 2,048 bytes.
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -carduino -PCOM8 -b115200 -D -Uflash:w:C:\Users\abin\AppData\Local\Temp\build6019b9665d7767adebbe2ffad6f83d6c.tmp/led_blink.ino.hex:i
An error occurred while uploading the sketch


Board: Arduino/Genuino Uno
Port: COM8 (Arduino/Genuino Uno)
Programmer: AVRISPmkll
Arduino: 1.6.10 (Windows 8.1)

error.txt (15.8 KB)

Do you have File > Preferences > Show verbose output during: upload checked?

Yes.

I have a strange question. How did you open the sketch that you're trying to upload? Did you start the IDE by opening the sketch(double clicking on the sketch file or whatever) or did you start the IDE and then open the sketch file(File > Open or File > Sketchbook or File > Examples)?

The reason I ask is that someone reported that they can only upload if they start the IDE the second way: Windows 10 64Bit, Arduino 1.6.10 upload issue. · Issue #5173 · arduino/Arduino · GitHub

Thank you very much. Sketch uploaded successfully.

Uploaded by starting the IDE the second way (File -> Open) : Windows 10 64Bit, Arduino 1.6.10 upload issue. · Issue #5173 · arduino/Arduino · GitHub

Thank you.


Board Model: Arduino UNO R3


Sketch:

void setup() {
  pinMode(13, OUTPUT);
}

void loop() {
  digitalWrite(13, HIGH);
  delay(1000);
  digitalWrite(13, LOW);
  delay(1000);
}

1 Like

Glad to hear it helped!

So when it wouldn't open you had opened the sketch the first way?

1 Like

Yes, the error occurred when the IDE is launched by clicking on the .ino sketch file.

Thank you.

success.txt (3.98 KB)

Glad to know the cause of the issue, there have been multiple reports of this on the forum but it was hard to know the cause since the IDE wasn't displaying any useful information on the error. Now that I know I can help everyone out.

1 Like

Yes.

Thank you.

pert:
I have a strange question. How did you open the sketch that you're trying to upload? Did you start the IDE by opening the sketch(double clicking on the sketch file or whatever) or did you start the IDE and then open the sketch file(File > Open or File > Sketchbook or File > Examples)?

The reason I ask is that someone reported that they can only upload if they start the IDE the second way: Windows 10 64Bit, Arduino 1.6.10 upload issue. · Issue #5173 · arduino/Arduino · GitHub

thanks man!

4 posts were split to a new topic: Upload fails: "avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x33"

6 posts were split to a new topic: Upload fails: 'avrdude: ser_open(): can't set com-state for ".\COM24"'

3 posts were split to a new topic: Upload fails: 'avrdude: ser_open(): can't open device ".\COM9"'

A post was split to a new topic: Upload fails: "error: espcomm_open failed"

I have the same error, when I was testing it I found that it was the bluetooth module, for some reason if it is to the current to program my Arduino gave me that error, my solution was to program the Arduino UNO without a connected module and it worked.

A post was merged into an existing topic: Upload fails: "avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x33"

4 posts were merged into an existing topic: Upload fails: 'avrdude: ser_open(): can't open device ".\COM9"'

30 posts were merged into an existing topic: Upload fails: "avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x33"

10 posts were merged into an existing topic: Upload fails: 'avrdude: ser_open(): can't open device ".\COM9"'

Hi,

I had the same problem and i just went to Tools+Port, and then selected the one that showed Arduino Genuino/UNO, in my case (i switched from port 13 to port 20).
It worked.

Regrads,