Unable to upload sketch anymore

Hi, after several weeks of a good working Arduino UNO , it suddenly stops 'working' , with working, I mean : I cannot upload anymore . Even a simple sketch as 'blink' is not willing to upload . Nothing else , exept USB cable' , is connected to Uno board . I changed the USB connector in different USB entry's in my PC (win10) but It ALWAYS shows COM6 in my 'COM and LPT' information on my PC .
I can read without any problem the boardinfo (Arduino uno, ID number, serial number......etc...) via ALL the USB connections in my PC , but uploading a sketch ... no way.
After trying uploading I get always at the bottom the errormessage :

(in dutch....) , sketch was in this case the 'BLINK' sketch....
Arduino: 1.8.13 (Windows 10), Board:"Arduino Uno"
De schets gebruikt 924 bytes (2%) programma-opslagruimte. Maximum is 32256 bytes.
Globale variabelen gebruiken 9 bytes (0%) van het dynamisch geheugen. Resteren 2039 bytes voor lokale variabelen. Maximum is 2048 bytes.
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x30
till....
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x20
Er is een fout opgetreden bij het uploaden van de schets

I tried the UNO on a Linux based PC system (where the UNO programming worked before ) but.... same error result :frowning: Unable to upload .

Is the communication port UNO board defective ???? (direction write/programming....)

But : My old 'original' program is still in the UNO board and running when powerd up , but I cannot modify/update or 'fine-tune' my software anymore !
And yes, I did ALL (?) the 'tricks' (reset , restart , update drivers, re-installed IDE , tried even the IDE 2 beta.....)
THX for helping me :slight_smile:

Try the loop-back test to be sure, here are the instructions: Loop-Back Test Instructions - Installation & Troubleshooting - Arduino Forum
and if it pass, then the problem is with ATmega328P on UNO.

Budvar10:
Try the loop-back test to be sure, here are the instructions: Loop-Back Test Instructions - IDE 1.x - Arduino Forum
and if it pass, then the problem is with ATmega328P on UNO.

Unfortunately , In the 'loop-back' test no 'echo-ing' ..... , serial monitor stay's blank. :frowning: . I suppose it is normal that non of the leds are burning while the 'loop-back' test is running ? My Arduino Uno is still in warranty, I suppose I need to send it back to the vendor. Thanks anyway for helping me out ! Regards.

Hello friend, i have had similar problems. Solution to my problems was simple pressing reset button while uploading the sketch. Maybe it helps you too.

shimunb:
Hello friend, i have had similar problems. Solution to my problems was simple pressing reset button while uploading the sketch. Maybe it helps you too.

No way it helps, but thanks for responding ! ..... While pressing the reset button and try to upload (a simple sketch as BLINK) , the only thing I get are 2 identical error message (see below in bold) . I pressed the reset button until these 2 error message appears . Next try was releasing reset button half-way upload... but then the 10 AVERDUDE error messages appears. (avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x20).....

So back to 'start'..... :frowning:

(in Dutch).... and see 2 bottom lines in 'bold'.....
Arduino: 1.8.13 (Windows 10), Board:"Arduino Uno"
De schets gebruikt 924 bytes (2%) programma-opslagruimte. Maximum is 32256 bytes.
Globale variabelen gebruiken 9 bytes (0%) van het dynamisch geheugen. Resteren 2039 bytes voor lokale variabelen. Maximum is 2048 bytes.
Er is een fout opgetreden bij het uploaden van de schets
avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_recv(): programmer is not responding

Other remark: Following my PC , the Arduino is ALWAYS connected to COM6 , even when I change the USB connection to 7 other USB (mix USB2/USB3) inputs in my PC , my PC configuration (Port/LPT screen) keep saying : Arduino UNO (COM6). Earlier when the UNO was still in 'good shape' the Arduino COM connection changed every time when I connected the UNO in another USB connector (as is shoud do.... ).

Today I dug out my NANO and UNO after being in storage for 3 years. Decided to boot them up and try some new things. Nano is working fine but it's quite the coincidence that I have the same issue with the UNO. All lights come on when given power, when doing a loopback I get a response from serial monitor. But when I try to upload the blink sketch it gives me the same error. As OP said, I too have changed different USB port and cables. Am I wrong to assume that the ATmega328 chip might be faulty? If anyone can shed light on this matter we would appreciate it.

jackal2311:
Today I dug out my NANO and UNO after being in storage for 3 years. Decided to boot them up and try some new things. Nano is working fine but it's quite the coincidence that I have the same issue with the UNO. All lights come on when given power, when doing a loopback I get a response from serial monitor. But when I try to upload the blink sketch it gives me the same error. As OP said, I too have changed different USB port and cables. Am I wrong to assume that the ATmega328 chip might be faulty? If anyone can shed light on this matter we would appreciate it.

In my case , I dit not get any response in the 'loop back' test.... and I suspect (in my case) not the ATmega328 chip but the Mega16u2 chip (in my case....! ). I also saw that my UNO has a date year '2011' and is not genuine ARDUINO , The ARDUINO logo is printed on the board , UNO is printed on the board but there is no 'ARDUINO' printed on the board , and because my UNO board is still in warranty , the vendor told me he will send a brandnew (ARDUINO ?) UNO for free. :slight_smile:

Check if you are connecting to the right com port. If everything was doing right,

Then maybe you can try this, it worked for me when the Arduino failed to program with sync issue.

  1. Open a new blank sketch
  2. Press and hold the reset button on Arduino
  3. Press the upload button at Arduino IDE
  4. Look at the status "Compiling Sketch" once it changed to "Uploading" Release the reset button immediately.

ngbk1993:
Check if you are connecting to the right com port. If everything was doing right,

Then maybe you can try this, it worked for me when the Arduino failed to program with sync issue.

  1. Press the reset button on Arduino
  2. Press the upload button at Arduino IDE
  3. Look at the status "Compiling Sketch" once it changed to "Uploading" Release the reset button immediatel

Nope, no change ....

Today i also have same problem with Nano.
It the first time i use Nano, after installing USB driver in device manager come as COM3, but my Nano still blinking & cannot upload the sketch.
I tray pressing reset button during uploading sketch and still get same problem. and i try pressing reset button before pluging usb until uploading also fail.
I use old bootloader & downgrade board manager have same error.
Then i recheck device manager. ah my COM3 have ! sign

Then i uninstall the driver & reinstall with older driver but still get error.
Then i recheck my device manager again carefully, and it turns out i have 2 COM3 LOL how careless i was.
But why did that happen?
COM3 is already used by bluetooth serial & when Nano is plugged it also occupies the same port

vandenr:
Nope, no change ....

Sorry, you need to press and hold the reset button at step number 1(i updated the reply at step 1). and release immediately once you saw the status "uploading", and you should upload with a new blank sketch.

hendrocah:
Then i uninstall the driver & reinstall with older driver but still get error.
Then i recheck my device manager again carefully, and it turns out i have 2 COM3 LOL how careless i was.
But why did that happen?
COM3 is already used by bluetooth serial & when Nano is plugged it also occupies the same port

Like what @hendrocah sugessted,
@vendenr, Maybe you should check if you connect to the right comport?

  1. Unplug your arduino
  2. Open device manager.
  3. Expend the "Ports(COM & LPT)" and note down what is inside the list
  4. Plug in your arduino
  5. Compare the list.

vandenr:
No way it helps, but thanks for responding ! ..... While pressing the reset button and try to upload (a simple sketch as BLINK) , the only thing I get are 2 identical error message (see below in bold) . I pressed the reset button until these 2 error message appears . Next try was releasing reset button half-way upload... but then the 10 AVERDUDE error messages appears. (avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x20).....

So back to 'start'..... :frowning:

(in Dutch).... and see 2 bottom lines in 'bold'.....
Arduino: 1.8.13 (Windows 10), Board:"Arduino Uno"
De schets gebruikt 924 bytes (2%) programma-opslagruimte. Maximum is 32256 bytes.
Globale variabelen gebruiken 9 bytes (0%) van het dynamisch geheugen. Resteren 2039 bytes voor lokale variabelen. Maximum is 2048 bytes.
Er is een fout opgetreden bij het uploaden van de schets
avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_recv(): programmer is not responding

Other remark: Following my PC , the Arduino is ALWAYS connected to COM6 , even when I change the USB connection to 7 other USB (mix USB2/USB3) inputs in my PC , my PC configuration (Port/LPT screen) keep saying : Arduino UNO (COM6). Earlier when the UNO was still in 'good shape' the Arduino COM connection changed every time when I connected the UNO in another USB connector (as is shoud do.... ).

Do you have any other arduino board at home? If you do, you should try to use it and if you get the same error you know its probably not the UNO that is damaged. If you do not have it, you can try to use another computer and see if maybe there is something wrong with the board itself. After that you should try to reinstall arduino ide, which is maybe causing the problem, and if something is wrong with arduino, I advise you to look and the pinout and use multimeter to determine what is shorted or if one of the chips failed.

shimunb:
Do you have any other arduino board at home? If you do, you should try to use it and if you get the same error you know its probably not the UNO that is damaged. If you do not have it, you can try to use another computer and see if maybe there is something wrong with the board itself. After that you should try to reinstall arduino ide, which is maybe causing the problem, and if something is wrong with arduino, I advise you to look and the pinout and use multimeter to determine what is shorted or if one of the chips failed.

he have tried on win10 & linux

hendrocah:
he have tried on win10 & linux

I expect my 'replacement' Arduino UNO today an I will also order this weekend a MEGA16U2 chip to replace the 'maybe faulty MEGA16U2 'on my defective UNO.
And yes, I tried the UNO on 2 PC's (WIN and LINUX) , and yes, I verified the COM port and yes I pushed the reset button at least a100times while uploading. Program is still running in the 'defective' Arduino , but I cannot modify the program due to the upload error. Reading the UNO boardinformation via USB is possible (so the COM port IS correct (!!!!) , writing/oploading to UNO is not possible. Regards.

vandenr:
I expect my 'replacement' Arduino UNO today an I will also order this weekend a MEGA16U2 chip to replace the 'maybe faulty MEGA16U2 'on my defective UNO.
And yes, I tried the UNO on 2 PC's (WIN and LINUX) , and yes, I verified the COM port and yes I pushed the reset button at least a100times while uploading. Program is still running in the 'defective' Arduino , but I cannot modify the program due to the upload error. Reading the UNO boardinformation via USB is possible (so the COM port IS correct (!!!!) , writing/oploading to UNO is not possible. Regards.

You should not pressing it 100 times while uploading. you need to hit the at exact timing.
Try upload a blank sketch instead of your own program and do this

  1. Hold reset
  2. Press the program button on the ide
  3. once the status of "Compiling Sketch" changes to "Uploading" release the button immediately.

:slight_smile: SOLVED ! I Re-flashed the MEGA16U2 (with good UNO to faulty UNO) via a very good working sketch called "Atmega Bootloader Programmer" by Nick Gammon , and now I can upload my sketches again . The only 'strange' thing is even where I connect the 're-flashed UNO board' in any USB slot in my PC it keep saying it's connected to COM6.....and it is working on every USB slot whitout I have to change the 'gate connection' , while a 'normal' UNO is modifying it's connection depending the USB slot it is put in..... .

But as long I can upload again without the 'AVERDUDE' errors , I feel happy !
Meanwhile I ordered 2 pieces of MEGA16U2 chips (about 8€ total costs) in case of..... :slight_smile:
Thanks to everyone for the helping contrebution.

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