How to get Uno to "factory condition"

Hi,
in advance - I'm still a greenhorn when it comes to arduino.
I made mistakes and probably uploaded bad sketches (such a MCUFRIEND graphics test) to the ATmega328 CH340 board. When compiling, there was a warning that it requires over 97% memory and can lead to problems. The upload was not successful and there were loads of error messages like:
avrdude: stk500_recv (): programmer is not responding etc.
Uploading something no longer works, the same message over and over again. I'm not sure, but maybe I destroyed the bootloader?
How do I get the board back to "factory condition"? I found a mention somewhere in the net that you could use a second Uno board to repair / delete this one and rewrite bootloader on it, but haven't found a precise description yet, or is there another trick?

here is error message what I have now

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                    : COM6
         Using Programmer              : arduino
         Overriding Baud Rate          : 115200
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x45
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x45
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x45
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x45
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x45
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x45
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x45
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x45
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x45
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x45

avrdude done.  Thank you.

Problem uploading to board.  See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.

alanccr:
Uploading something no longer works, the same message over and over again. I'm not sure, but maybe I destroyed the bootloader?

I don't think there is any way you could damage the bootloader by uploading a sketch, no matter what went wrong. The area of flash memory the bootloader is stored in is specifically protected from being modified.

This sort of error is more likely to occur either from something like having the wrong port selected in the Arduino IDE's Tools > Port menu.

A quick way to check on your Uno's bootloader is to press and release the reset button while the board is powered. You should then see the board's "L" LED blink several times quickly. That is done by the bootloader's code as an indication that it's running. If you don't see the blink then there is definitely a problem.

alanccr:
How do I get the board back to "factory condition"? I found a mention somewhere in the net that you could use a second Uno board to repair / delete this one and rewrite bootloader on it, but haven't found a precise description yet

Here it is:

Hello,
Thank you for your quick reply.
"L" Led burn all the time, there is no response to pressing the reset button. I will now read into the link what you have sent.

OK, that behavior definitely indicates the next thing to try is burning the bootloader.

Hi,

new UN has just arrived. I tried to burn the bootloader as in the description. It doesn't work. Same error message (new Uno runs before and after the attempt)

Arduino: 1.8.13 (Windows 7), Board: "Arduino Uno"

C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -cstk500v1 -PCOM14 -b19200 -e -Ulock:w:0x3F:m -Uefuse:w:0xFD:m -Uhfuse:w:0xDE:m -Ulfuse:w:0xFF:m 



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                    : COM14

         Using Programmer              : stk500v1

         Overriding Baud Rate          : 19200

avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xff

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0xff

avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0xff

avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0xff

avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0xff

avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0xff

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0xff

avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0xff

avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0xff

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0xff



avrdude done.  Thank you.



Error while burning bootloader.

Ok, I have not use the capasitator, maybe that is the reason why it is not work.

alanccr:

avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xff

avrdude: stk500_recv(): programmer is not responding

Make sure you uploaded the File > Examples > 11.ArduinoISP > ArduinoISP sketch to the programmer board.

yes, I loaded the Sketch. did everything according to the description, just overlooked the capacitor.
There were also messages like "bootloader is being uploaded". aborted at the end with an error message.
I have to get a capacitor first and then try again.

And ....Programmer needs to be set as “ Arduino as isp” and not “Arduino isp” when it comes to selecting the programmer.

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