Arduino Uno unable to upload sketches

Hi, I just got my Arduino Uno R3 a few days ago and tried doing some stuff with it. However, I now can't seem to upload any code to the board as it will be buffering indefinitely. When I connect the board via a USB cable, the TX light is on permanently, so I am guessing there's something wrong with the serial buffering. However, I've tried multiple options (including the reset button timing) and nothing seems to work. I would appreciate if there are any other ideas that may help fix this issue as buying another Arduino board is slightly out of my budget atm. Thanks :slight_smile:

Here's the error code for reference

avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00
  1. Which operating system?
  2. Which version of the IDE?
  3. Correct board selected in the IDE?
  4. Correct port selected in the IDE?
  5. Anything connected to pins 0 and 1?
  6. What was the last project that you were working on when it started failing.
  1. Windows 10

  2. Arduino IDE 2.3.4

  3. Yes, I double checked

  4. Double checked too, which was COM3

  5. Nothing connected to those pins

  6. I tried a simple project with a button and a LED, when the button was HIGH, the LED would switch on, and vice versa. However, I put a Serial.println in the loop to give me feedback on what state the button was in. I think this caused the Arduino Uno to enter a constant state of serial buffering.

What is the serial-to-usb converter on your board; it's the chip closest to the USB port. It will be a 16U2 on original Unos and CH340 on most clones. Take photo if unsure and post it here.

Does it switch of when you keep the reset pressed?

Not quite sure what that would be. What happens when you keep the reset button pressed during the compile phase of the upload process and release when the IDE reports the memory usage?

Here is a photo of the Arduino I'm using.

Does it switch of when you keep the reset pressed?

When I keep the reset pressed, the LED at L shines and the TX and RX pins emit no light. However, the computer is unable to detect the port when it is its "reset mode".

What happens when you keep the reset button pressed during the compile phase of the upload process and release when the IDE reports the memory usage?

The same error happens unfortunately, and I've tried this out for 20-ish times.

Is that in Windows device manager? If so, that is strange because the reset has no effect on the 16U2, only on the 328P.

1 Like

Both in the Arduino IDE and the Windows Device Manager

If there is anything connected to the Uno, disconnect it (buttons, LEDs etc.) and try again.

If nothing else is connected to the Uno and it fails to upload, I think that the bad news is that your Arduino is dead; I can't tell you why.

You might be able to eliminate some components.

  1. Check the 5V and 3.3V output with a multimeter; they should be close to those values.
  2. If you press and release the reset button, do you get 3 quick flashes of the L-LED after releasing the reset button? If not, the bootloader in the 328P is no longer functioning correctly.
  3. After removing the 328P chip, run Loop-Back Test Instructions. If it passes the test the 16U2 is OK.
  1. Check the 5V and 3.3V output with a multimeter; they should be close to those values.

Sorry I don't have a multimeter at home now

  1. If you press and release the reset button, do you get 3 quick flashes of the L-LED after releasing the reset button?

Yes I do, so the bootloader probably isn't damaged.

  1. After removing the 328P chip, run [Loop-Back Test Instructions]

I am kinda a newbie at electronics so I don't really know how to do that, but I am guessing you need a soldering iron which I currently don't have :frowning:

I did try to do the Loop-Back Test without putting it in reset mode (basically only connecting the RX and TX pins) and it seems to work.

When I see the output in my serial monitor, I see the Arduino printing lots of 1s, so I am assuming that the TX pin is the issue here.

As part of the loop back test you need to wire the reset pin to ground. That will keep the 328P in reset so your program will not be running; I suspect that the '1' that you see come from your program.

If you still see the '1', it might be that the reset circuit is not resetting the 328P. Without a multimeter it will however be difficult to determine that.

It however is still strange that the Uno disappears from Windows device manager when you press the reset.

You don't need to desolder; the 328P is in a socket and you can lift it out carefully with a small screw driver. When you put it back, make sure that you don't put it in the wrong way; use your earlier photo as reference.


I'm not sure what the right advice will be. I would use another Arduino or a programmer to burn the bootloader again; that will wipe your sketch.

I understand your financial constraints; maybe a friend has an Arduino as well or a programmer and he can help.

It however is still strange that the Uno disappears from Windows device manager when you press the reset.

I think it's because it's a third party Arduino as I got it for quite a cheap price. There aren't many genuine Arduinos sold in my country due to the high shipping fee.

I'll try to remove the 328P chip and try the loopback test again and if nothing really works, then I'll guess I'll try find someone with an Uno or Nano to burn the bootloader.

Thanks so much for all your replies, you've really been a great help for a newbie like me :smiley:

You can do the loopback test with the 328P in the socket first. The only reason why I advised to remove the 328P is because the board disappears from device manager when you press the reset button.

Unfortunately I can't seem to do the loopback test with the RESET pin connected to GND as the computer does not detect the Arduino board at all. I can't choose the ports either.

OK

In that case remove the 328P from the socket and test again. With no 328P in the socket you don't need the reset wire to keep the board in reset. I would also test it with the reset wire.

Hello, I managed to find a separate Arduino (from a friend) and I think I managed to burn the bootloader as now when I connect my own Arduino Uno R3 to my computer, only the L light and the ON light is turned on.

However, it seems that I still am unable to upload any sketches to my own Arduino board. It displays the same error
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x3e)

Is my board unsalvageable?

Did you run the loop back test without reset wire and without the 328P in the socket?

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