[Solved] IDE not uploading code to Arduino uno

I was hoping to figure this out on my own but I have tried everything.
Recently I got a Feather Huzzah Microcontroller. I downloaded the libraries required to use it for my project. (Adafruit Unified Sensor and ESP32) It didn't work. So I thought no problem I'll just go back to my Arduino uno because it worked before with that. Now my Arduino uno gets the error:
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xda

This happens ten times until:
Failed uploading: uploading error: exit status 1

Keep in mine my Arduino uno worked perfectly before this. So here is what I have tried:

  1. Reset button on Arduino
  2. Uninstalled Libraries
  3. Changed my port in device manager to com 24 instead of com 3
  4. Updated drivers
  5. Reset button again
  6. Attempted to delete Arduino IDE and reinstall. (Not sure if I did this correctly)

Unfortunately to no avail. Your help would be so appreciated!
Also I have tried different code and it works for none so I didn't think uploading my code would be very helpful.

Welcome to the forum

Obvious questions

  • Does the PC recognise the board when it us plugged in ?
  • Which COM port is allocated to the board by the PC ?
  • Have you got that port selected in the IDE ?
  • Which board have you got selected in the IDE ?

Hi, thank you for the welcome.

  1. Yes when I go to ports on device manager I can see com24 is connect Arduino uno.
  2. Com 24 was com 3 before changing it
  3. Yes, the port 24 is selected in the IDE
  4. I believe I have selected the Arduino Uno. The Arduino uno is lit up blue next to the name.
    Thanks
  1. Which operating system are you using.
  2. What is the serial-to-usb converter on the board (it's the chip closest to the USP port); e.g. 16U2 (original Uno, some clones) or CH340 (most clones) or ...
  3. Please enable verbose output during upload and disable verbose output during compilation. Perform an upload and post the complete result here using code tags as described in how-to-get-the-best-out-of-this-forum#use-code-tags.

There are two places that are easy to check; in the tools menu and in the tool bar under the menu.

1.I am using Windows 11
2. Mega 16 U2
3.

Sketch uses 8424 bytes (26%) of program storage space. Maximum is 32256 bytes.
Global variables use 633 bytes (30%) of dynamic memory, leaving 1415 bytes for local variables. Maximum is 2048 bytes.
"C:\Users\Sof\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude" "-CC:\Users\Sof\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf" -v -V -patmega328p -carduino "-PCOM24" -b115200 -D "-Uflash:w:C:\Users\Sof\AppData\Local\Temp\arduino\sketches\336987332678BC5546845179D0A1DA62/si7021.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:\Users\Sof\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"

         Using Port                    : COM24
         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\Sof\AppData\Local\Temp\arduino\sketches\336987332678BC5546845179D0A1DA62/si7021.ino.hex"
avrdude: writing flash (8424 bytes):

Writing | ################################################## | 100% 1.35s

avrdude: 8424 bytes of flash written

avrdude done.  Thank you.

I have checked the board the way you have instructed and it is in fact the Arduino uno
Thank you for your help

The output in post #5 does not indicate upload errors.

Note
I've fixed the code tags as I could see an attempt to use them. Code tags are three backticks (```) on their own line before and after the code block; you ended up with single backticks, not sure why.

What do you think it might be then?
I have successfully uploaded code from a school computer with no errors if that helps to know.
Thanks again

I do not know; your topic title was about uploading and that seems to work. If your sketch does not work as expected, that's another story.

The only thing that is missing in your output is verification of the uploaded code, probably because it is not enabled.

In file/preferences, enable verify code after upload and perform an upload. Post the results here if needed.

Same code?

[Solution]
When I attempted to uninstall the Arduino IDE I didn't do it correctly. I needed to go to the windows button and uninstall from there THEN delete Arduino15 and Arduino-ide from file explorer. Then instead of using the same installer exe file I went to the Arduino website and installed the latest version from there. All fixed! Thanks for the help!

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