Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.3k views
in Technique[技术] by (71.8m points)

trying to upload code on Arduino and it is giving an error

I was trying to upload code on Arduino and it is giving an error. I didn't connect anything in Arduino but getting an error:

I am getting error like this. every time.

 Sketch uses 1894 bytes (5%) of program storage space. The maximum is 32256 bytes.
 Global variables use 71 bytes (3%) of dynamic memory, leaving 1977 bytes for local variables. The 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.

and I am just reset the whole code.

void setup() {
 // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:

}
question from:https://stackoverflow.com/questions/66063252/trying-to-upload-code-on-arduino-and-it-is-giving-an-error

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...