I'm stuck in Uploading

I have created a project, a simple door chime, and the coding is fine. There is a melody and I have changed the notes, note durations, and the number of notes a number of times. Each time the uploads were successful, until they suddenly weren't. Now, I am unable to upload any previously successful project. Trying a simple button-controlled relay program or even a "new sketch" with no added code yields the same error messages:

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x9d

I have tried any number of fixes I have read on various forums: restarting the computer, trying various timing tricks, downloading the latest IDE, and uploading a bare minimum sketch (mentioned above). I am green as grass and stuck.

IDE >> TOOLS >> BOARD >> AVR BOARDS >> your board
IDE >> TOOLS >> PORT >> your port

When you post code or errors, you should post the complete code or error in a <CODE> block. You should also give the board you are using (there are many).

Hope this helps. Have fun.

Welcome. Your topic is lacking all necessary details.

In random order

  • Operating system
  • Version of the IDE
  • Board
  • Wiring / schematic diagram
  • Code (probably not that relevant)
  • Things I might have forgotten.

Does the port that you have selected in the IDE disappear from the IDE when you disconnect the board? If not you have the wrong port selected.

This is what I get from "Copy All."
sketch uses 3544 bytes (10%)of program storage space. Maximum is 32256 bytes.
Global variables use 80 bytes (3%) of dynamic memory, leaving 1958 bytes for local variables. Maximum
is 2048 bytes.
"C:\Users\manni\AppData\Loca l\ArduinoL5\packages\arduino\tools\avrdude\6.3.0-
arduino!7 /bin/avrdude" "-
cc:\Users\manni\AppData\Local\ArduinoL5\packages\arduino\tools\avrdude\8.3.0-
arduinolT/etc/avrdude.conf" -v -v -patmega328p -carduino "-pcoM1" -bLL520o -D "-
Uflash:w:C:\Users\manni\AppData\Local\a rduino\sketches\ E}OBFT 4FE27D813290D62 FDE j.9288 9LC/pie
rPo i nte Doo rBel l-copy-2 a250614094607 _copy _2025061.4094737. i no. hex: i "
avrdude: Version 6.3-20190619
Co pyright (c) 2000-2005 Bria n Dean, http: / /www. bd m ic r o.com f
Copyright (cl 20A7 -20t4 Joerg Wunsch
System wide configuration file is
"C:\Users\manni\AppData\t-ocal\nrduinol5\packages\arduino\tools\avrdude\G.3.0-
a rdu ino 17/etc/avrdude.conf"
Using Port : COM1
Using Programmer : arduino
Overriding Baud Rate : 115200
avrdude: stk500_recv0: programmer is not responding
avrdude: stk500_getsync{) attempt 1 of 10: not in sync: resp:eygd

I'm using a pc with Windows 10

My Door Bell still works with the last program I was able to upload.

I'm using Version IDE 2.3.6.

Does COM1 disappear from the IDE (and device manager) when you disconnect the board? If not, it's not the Arduino.

I'm reasonably sure that that indicates an Uno or a Nano with new bootloader. Please confirm the board.


You should answer all questions :wink:

It keeps putting up Arduino Uno COM 1 as the only available Board.

From the Device Manager, only one port listed: Communication Port (COM 1)

If it is disconnected?

And please don't put every answer in a separate reply.

Further we still don't know whicg board you are using !!

Sorry, I'm reading your questions too hastily. Apparently I don't understand the term "Board." I'm physically using a ELEGOO UNO R3 Board ATmega328P with USB Cable(Arduino-Compatible) for Arduino.

OK, that is what is usually referred to as "board". It's a true clone in that it has a 16U2 serial-to-usb converter.

It's still not clear (to me) if COM1 disappears when you disconnect the board.

If it does, you can run the loop back test to determine if the 16U2 is still functioning properly.

Let me try to understand. I connected the board and tried to upload the program with just some changes in the melody notes. I clicked next to "Arduino Uno" and a little pop-up appeared showing Arduino Uno COM 1 and an option to change the board and port, which I ignored. The sketch did not upload , so I canceled it and the pop-up window showing Arduino Uno COM1 and the other option "disappeared." Clicking on Arduino Uno brings the pop-up window back.

I repeated this process and just disconnected the Board instead of canceling the upload. The pop-up window showing Arduino Uno COM 1 and the option did not disappear. So I'm not sure what you mean by "disappear."

Clicked what?

Show the popup.

Show this option.

Clicking where? Show this.

This is for a Nano on COM20 but that is not relevant.

Connected

Disconnected

The port option is greyed out and you can not select COM20 if you click on the > next to it.

Your description sounds like you can still click on the > next to COM1 and see that (like the COM20 in the first screenshot).

If so (COM1 is still visible after disconnecting) COM1 is not your Arduino.

In which case you need to dig into Windows device manager to see what is happening there.

Yes, I seem to be able to edit and look into COM1 even after disconnecting (see attached), but according to the Device Manager, which shows only COM 1, the port is working properly.

(attachments)

If it does not disappear from device manager when the board is disconnected it's not your Uno.

Depending on the computer hardware COM1 can be (and in the past always was) a serial port on your motherbiard.

There are 2 possible reasons that Windows does not see your board

  1. Faulty USB cable.
  2. Faulty 16U2 (the IC closest to the USB port).

//Edit
3rd reason is that your PC hardware is broken.

OK, it's not the cable - I tried two, one was still sealed. But I was successful with another board.

Thanks for your help.

1 Like