PROBLEM SOLVED - DEFECTIVE ARDURINO BOARD - I'm stumped. Can't upload any sketches to Uno or Mega, I could 9 years ago

THANK YOU ALL - Uno Problem solved - Over the years a component must have failed or a component of trace became corroded or there's a cold solder joint. I was able to find 3 other Arduino Unos I had and they are working perfectly. First think I noticed was when I went to select the port, it showed the Uno was connected.

Still having an issue with the Mega. But it's looking like if I upload the same Blink sketch I get an error, but the sketch works as it should. (I'll deal with this later).

I was into Arduino about 9 years ago and had to step away. For the past 9 years the two computers with all of my sketches, an Uno and Mega that and the 2 USB cables sat untouched.

I'm getting back into Arduino and opened the box thinking I could pickup where I left off.
Neither computer has been connected to the Internet, so NO UPDATES.
I'm running IDE 1.8.12

When I try and upload a sketch that was working to I'm getting the following error
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x24

I'm getting this with both computer, both usb cables and the Uno and the Mega.
Tried swapping USB cables and Arduinos between the two computers.
I have tried another USB cable, and the USB cables I have work with other devices.
Verified I'm using the correct board and USB port in IDE.
And yes the USB ports are working fine. Tested with a keyboard and mouse.
But what's interesting.... Is if I move the Arduino USB cable to a different USB port, IDE sees it.
No USB errors in Windows Device Manager.
Tried updating the boot loader, but since I can communicate with the Arduinos, I can't.
There are no shields on either board.
Both Arduinos are still running the code I last uploaded nearly 10 years ago.

I have a new (3rd) computer, Windows 10 where I downloaded the current IDE, 2.3.8 and it won't communicate either. Tried another USB cable, didn't work either.

I've can't even load something as simple as the the Blink sketch.
In every attempt the code complies without errors.

I have even gone so far as to install the CH340 driver. Which makes no sense as the software was everything was working perfectly 9 years ago.

Any suggestions?
Thank you

Unless both boards are damaged, the situation is strange... but first of all: are we talking about original Arduinos or clones? Both?
And what IDE settings are you using for the board? Could you post a screenshot of the settings?

Also, the only strange thing that drives me crazy is:

I believe (hopefully) your PC has been updated frequently over the past 9 years, so it seems the problem lies with something you're using (from the USB drivers to the IDE). Have you tried completely uninstalling and reinstalling the USB-serial drivers (using the latest version)?

You need a programmer for that.

Which is the version of the AVR board package that is installed on the old computers. You can find that out by enabling verbose output during compilation and checking the first few lines; you don't need to upload, just verify/compile.
For IDE 2.3.8 it is more than likely 1.8.7.

Somewhere along the line there was a change when Arduino introduced a Nano with a newer version of the bootloader.
In the tools menu you can check the available processors. If there is only 328P and 168, you're using an older version of the board package; if it also lists a 328P old bootloader you can try that. Try all two / three options.

// Edit: for some reason I thought that this was about a Nano. You can ignore most of this post.

There was a post I just saw with the same issue. It is a windows/driver issue and the fix is a little painful.
Start HERE

Is that code acting as a HID device? In which case you might have modified the code on the USB-to-serial chip rendering it unusable for the normal programming function.

Do you remember if you ever programmed the boards using an ISP programmer? You may have left the boards without a bootloader installed when you stopped using them.

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

I think they are clones. Attaching a pic of the Uno. I'm not sure about the Mega, but assume it is a clone as well. Both were working perfectly 9 years ago and have not been touched. Both are still running IDE 1.8.12.
Using same computer
Same USB cables
If I plug the USB cable in a different USB port in the computer IDE updates to the new USB port.
No errors in Device Manager.

No, not HID device. (And not sure how to do that).
When I last used the computer and Arduino boards I had 8 different sketches.
I was switching between all 8, meaning I was able to one of the eight and upload and run it without any issue.

It will be a CH340 USB<>Serial driver issue.
Windows seems to be on a mission to disrupt anything that comes from China.
If you re-install that driver, it will update in the next boot.

@Wawa that re-update can be blocked by telling Windows the newer version is incompatible with your hardware. It works for me that way, anyway - but I've had to do it twice, IIRC. That information, as well, is in the posts by @pert on this topic.

I think you mean IDE/Tools/Board
and IDE/Tools/Port

Not sure how on a computer that's not been powered on in 9 years would know know we now have an issue China and China drivers. But who knows. Tried that last night. Still getting the same error.

Tried Com1 and Com 4. Still not working.
This is computer has not been on the Internet in 9 years. This is the only software modification that's been made.

Just tried the following... And it looks like I am communicating with the board, but can't upload a sketch.

  1. Power Off the Board: Completely turn off your Arduino board by removing the power source.

  2. Disconnect the USB Cable: Unplug the USB cable from the board.

  3. Hold the Reset Button: Press and hold down the Reset button on the board.

    • Alternatively, you can run a jumper wire from the RESET pin to the GND pin.
  4. Reconnect the USB Cable: While still holding the Reset button, reconnect the USB cable to the board.

    Error message I received is more verbose.

    Arduino: 1.8.12 (Windows 10), Board: "Arduino Uno"

    Sketch uses 924 bytes (2%) of program storage space. Maximum is 32256 bytes.
    Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.
    C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -carduino -PCOM4 -b115200 -D -Uflash:w:C:\Users\dougs\AppData\Local\Temp\arduino_build_246634/Blink.ino.hex:i

    avrdude: Version 6.3-20190619
    Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
    Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"
    
         Using Port                    : COM4
         Using Programmer              : arduino
         Overriding Baud Rate          : 115200
         AVR Part                      : ATmega328P
         Chip Erase delay              : 9000 us
         PAGEL                         : PD7
         BS2                           : PC2
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 200
         StabDelay                     : 100
         CmdexeDelay                   : 25
         SyncLoops                     : 32
         ByteDelay                     : 0
         PollIndex                     : 3
         PollValue                     : 0x53
         Memory Detail                 :
    
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom        65    20     4    0 no       1024    4      0  3600  3600 0xff 0xff
           flash         65     6   128    0 yes     32768  128    256  4500  4500 0xff 0xff
           lfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           efuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           lock           0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00
    
         Programmer Type : Arduino
         Description     : Arduino
         Hardware Version: 3
         Firmware Version: 4.4
         Vtarget         : 0.3 V
         Varef           : 0.3 V
         Oscillator      : 28.800 kHz
         SCK period      : 3.3 us
    

    avrdude: AVR device initialized and ready to accept instructions

    Reading | ################################################## | 100% -0.00s

    avrdude: Device signature = 0x1e950f (probably m328p)
    avrdude: reading input file "C:\Users\dougs\AppData\Local\Temp\arduino_build_246634/Blink.ino.hex"
    avrdude: writing flash (924 bytes):

    Writing | ################################################## | 100% 0.15s

    avrdude: 924 bytes of flash written
    avrdude: verifying flash memory against C:\Users\dougs\AppData\Local\Temp\arduino_build_246634/Blink.ino.hex:
    avrdude: load data flash data from input file C:\Users\dougs\AppData\Local\Temp\arduino_build_246634/Blink.ino.hex:
    avrdude: input file C:\Users\dougs\AppData\Local\Temp\arduino_build_246634/Blink.ino.hex contains 924 bytes
    avrdude: reading on-chip flash data:

    Reading | #####################################An error occurred while uploading the sketch
    ############# | 100% 0.15s

    avrdude: verifying ...
    avrdude: verification error, first mismatch at byte 0x0000
    0x62 != 0x0c
    avrdude: verification error; content mismatch

    avrdude done. Thank you.

    This report would have more information with
    "Show verbose output during compilation"
    option enabled in File -> Preferences.

Okay. Out of complete frustration I just ordered a new Uno board from Amazon. Paid $30, so I'm assuming it's a Genuine board.

I'm as frustrated as frustrated could be.

Corrupt bootloader.

That's for a nano board. I have a Uno and a Mega.
Tried it, and it doesn't work.

The two PC's I had been using have not been powered or updated in 9 years. No updates at all. Haven't been connected to the Internet when I powered them on.

I have a 3rd and a fourth. Both are Windows 10 and are as up to date as a Windows 10 computer can be. I then installed the latest IDE. Getting same error message.

Did you see my other post where I held down the Reset button?

Same microcontroller, I believe. ATmega328P.

Hi @Doug101. I suggest we focus on one board at a time. The information that you are encountering problems with all your boards is interesting, but I think that we will like get too confused if we try to troubleshoot both boards at the same time.

So let's focus on the UNO for now.

When the "Verify code after upload" preference is enabled, after finishing an upload Arduino IDE reads the memory on the Arduino board and compares the read data against the data of the compiled sketch binary file on your computer that was uploaded to the board. When it did that, it found that the data on the Arduino board did not match what should have been there. This means the uploaded program was not written to the memory in the Arduino board during the upload process as expected.

It is possible that a short or external circuitry connected to the Arduino board could cause this type of problem by interfering with the upload process.

Make sure the board is not sitting on anything conductive that could short the contacts on the bottom of the board. Make sure there isn't any conductive debris (e.g., loose beads of solder, strands of wire, or component leads) on the board or on the surface the board is sitting on.

I notice this large blob of solder:

Did you perform a repair on this board at some point, or did it come that way?

If you have another USB cable on hand, try changing the cable. Maybe a damaged or defective USB cable could be the cause. Make sure the USB cable is fully inserted into the USB socket on the board and computer.

If you have a shield or any external circuitry or components connected to your Arduino board, try this experiment:

  1. Disconnect the USB cable of the Arduino board from your computer.
  2. Disconnect any shields, modules, external circuitry, etc. from your board.
  3. Connect the Arduino board to your computer with a USB cable.

Now try uploading a sketch to the board again. Does the upload succeed?

This experiment will determine whether the upload error was caused by interference from your external circuitry. If so, you can then focus your attention on identifying the specific problem with the circuit and resolving it.

ptillisch Thank you very much for your assistance. No repair was done on the board, but thanks to you suggesting there was an issue with the Uno board, I knew I had a couple of other Uno boards somewhere. Found 3 Unos, and each one worked as it should. I guess over the years a component failed, maybe there's some corrasion (I can't see in a trace) or there's a cold solder joint.

After getting the Uno going, I tried the Mega. Some quick testing is looking like it's "sort of" working. It looks like I'm able to upload the blink code, I get an error and but the code runs fine. Or that's what I'm thinking.

Here's something very strange. You identified what looks like sloppy soldering job. Yet when I look at the board, I can't find it. It's looking like it was an artifact from taking the picture. Maybe I used flash and that was a refection. (Sure doesn't look like that). I'm attaching a photo of the same board... Not seeing it.