Go Down

Topic: An error occurred while uploading the sketch. (Read 140773 times) previous topic - next topic

abik1


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)


pert

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


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: https://github.com/arduino/Arduino/issues/5173

abik1

Thank you very much.  Sketch uploaded successfully.

Uploaded by starting the IDE the second way (File -> Open) : https://github.com/arduino/Arduino/issues/5173

Thank you.


----
Board Model: Arduino UNO R3

----
Sketch:

Code: [Select]

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

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


----

pert

Glad to hear it helped!

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

abik1

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

Thank you.

pert

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.


Mugiwara303

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: https://github.com/arduino/Arduino/issues/5173
thanks man!

wilsona24

Arduino: 1.8.5 (Mac OS X), Board: "Arduino/Genuino Uno"

Sketch uses 2282 bytes (7%) of program storage space. Maximum is 32256 bytes.
Global variables use 212 bytes (10%) of dynamic memory, leaving 1836 bytes for local variables. Maximum is 2048 bytes.
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00
Problem uploading to board.  See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.
/Volumes/elegoo/English/Lesson 1 Make The Car Move/AUTO_GO_/AUTO_GO_.ino
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
 

This is what it said any suggestions?

Alsllami

While uploading the sketch, the Arduino compiler print this kind of error !  How can I solve this problem of error.

pert

While uploading the sketch, the Arduino compiler print this kind of error !  How can I solve this problem of error.
Please do this:
  • File > Preferences > Show verbose output during: > compilation (uncheck) > upload (check) > OK
  • Sketch > Upload
  • After the upload fails you'll see a button on the right side of the orange bar "Copy error messages". Click that button.
  • Paste the error messages in a reply here USING CODE TAGS (</> button on the toolbar).

KALYANARAMAN

While uploading the sketch "it shows error"


Arduino: 1.8.5 (Windows 7), Board: "Arduino/Genuino Uno"

Sketch uses 1388 bytes (4%) of program storage space. Maximum is 32256 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x33
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x33
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x33
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x33
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x33
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x33
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x33
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x33
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x33
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x33
Problem uploading to board.  See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences

knhyagupta786

Arduino: 1.8.5 (Windows 8), Board: "Arduino/Genuino Uno"

Sketch uses 3196 bytes (9%) of program storage space. Maximum is 32256 bytes.
Global variables use 218 bytes (10%) of dynamic memory, leaving 1830 bytes for local variables. Maximum is 2048 bytes.
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x23
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x23
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x23
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x23
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x23
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x23
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x23
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x23
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x23
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x23
Problem uploading to board.  See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Go Up