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
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.
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.
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.
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