I've been using my Arduino UNO for a while. I uploaded several codes and made many simple projects using them. Recently I connected my Arduino to a 12V 2A dc adapter for my project. Everything worked fine for about an hour then it stopped running code. I tried to run the program again and reset the board but none of those work. Even the built-in led didn't blink thrice. When I tried to upload the code the following errors have been shown.
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
The tx led of Arduino is always on now. I tried performing a loopback test using arduino and it failed. Is it a problem with bootloader(sorry I'm new to electronics and know little about these technical terms. The youtube videos advised me to burn the bootloader again and I am not much confident about it.)
This is what my circuit diagram looks like(sorry I'm not experienced in making circuit diagrams:)).
I've tried to use the ATMEGA of the board with the issue with a new board and it doesn't work in that board too. I think the problem is with the processer. I've also done a loopback test which also failed.
When a sketch does a lot of Serial output it can be very hard to upload a new sketch. The uploading program on the PC sends a command to the bootloader and reads a response. The USB input buffer is full of whatever the sketch was sending and that data does not match the expected response. The uploader tries the command a few more times before giving up.
To upload over a sketch that floods the Serial output:
Hold down the reset button on the Arduino.
Unplug the USB cable. This causes the PC to flush the USB receive buffers.
Re-connect the USB cable. (by continuing to hold the reset button we prevent new flooding)
Begin the new sketch upload.
WHEN THE RX LED ON THE ARDUINO BLINKS (or you get a 'not in sync' error): release the reset button.
That RX blink is the first upload command being sent to the bootloader. Releasing the Reset button allows the bootloader to be ready for one of the retries of that command.
Perhaps it would help if you removed all the external serial lines. Its not obvious why this needs to happen but its worth a try.
Also you might have to follow @johnwasser's instructions a few times for it to "take". At least I would consider this before giving up.
Yes, I've disconnected all my connections. The project has to pump water through the motor. I think it was wet once but wiped quickly. Now the board is completely dry. I don't remember anything else I did wrong with my board. The only thing I did was replacing the ATMEGA of the board with the problem, with one with that of a new board. Then the board worked fine. It made me think that the problem is with the processor and not with the board. I had already lost an old model like this. But unlike the one mentioned, even the tx led is not blinking with that. But the board power on led is turning on.