Avrdude: stk500_recv(): programmer is not responding

I had this error from the past few days when im trying to upload my code.

avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00
Failed uploading: uploading error: exit status 1

I tried to upload from different PC (WINDOWS with WEB IDE) and my current pc is a linux pc (arduino IDE v2 flatpak on linux mint 22.04) a few days ago and i got the same error (on windows it showed resp=0x14)

I later unplugged the usb cable , replaced the microcontroller , removed all wires and still the error comes.

Today i bought my friends arduino (my usb cable works with it and code uploads) and flashed a new bootloader as i thought it was broken.

It showed it was successfully done but i get the same error? What should i do

Which board? Clone or original?

It sounds like the TTL-to USB converter is broken. Did you run the loopback test?

If it's a board with CH340, the loopback test is non-conclusive.
If it's an Uno or Mega with 16U2 or a board with FTDI, I suggest that you run the loopback test.

I dont know if its clone or original but the loopback test sure does work.

Below are some images showing my arduino (other arduino is my friends arduino which works and probably is original)


They both look like genuine Arduino UNOs.

If you programmed a new bootloader OK and the loopback works OK, and your friends UNO works OK, then it's a big mystery.

You can run the following test if you have two boards.

  1. On the good one, short the reset pin to ground; this will prevent any code that is on the 328P from running (including bootloader.
  2. Connect TX and RX of the one board to TX and RX of the other board. Also connect the GND.
  3. Select Uno as your target board.
  4. Power both boards.
  5. Select the COM port of the good Arduino.
  6. Try to upload. e.g. blink.

If upload fails, your 328P's TX and RX pins (and maybe others) have been damaged.

Unfortunately i dont have 2 usb cables , will it work without another power supply. It did not work when i only powered the good arduino

Connect the 5V of both boards as well.

The loopback test on the bad board works.
I don't see that your additional hardware debugging adds any additional information or helps isolate he problem.

Same error appears after doing so. Should i try flashing a new usb firmware?

That test didn't check anything you haven't already checked.

One last test you could try.
Connect the two Arduinos as if you were going to burn a bootloader.
Compile the blink example but DON'T upload, instead, use "Upload Using Programmer"
If the LED blinks, then it's a mystery, if it doesn't blink then the ATMega328 is bad or maybe the crystal is bad.

I did explain. OP can burn the bootloader but that doesnot mean that the RX/TXpins are not damaged. The results (by OP) of my test seems to indicate that there is something wrong with the 328P.

The results of the OP's original tests give the same indication.

does not upload. Also should i try swapping the microcontroller?

NO!
So who knows what is wrong with that board.
You might damage a good microcontroller by plugging it into a bad board.

Whether you know it or not, at some point in time you must have done something bad to that board.
I'd save debugging it for a rainy day project.
FYI: You can request 1 or 2 FREE samples of the 328P from the microchip website.
I think you need to create an account and it takes a couple of weeks

Thanks for everyone's responses! Please share the website for it!

The make all the AVR microcontrollers

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