Arduino uno uploading stuck

Arduino: 1.8.17 Hourly Build 2021/09/06 02:33 (Windows 10), Board: "Arduino Uno"

An error occurred while uploading the sketch

Sketch uses 1928 bytes (5%) of program storage space. Maximum is 32256 bytes.

Global variables use 192 bytes (9%) of dynamic memory, leaving 1856 bytes for local variables. Maximum is 2048 bytes.

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

Correct port selected?
Did it work in the past?
What is all connected to the board? Anything on pins 0 and/or 1?

Please enable show verbose output during upload under file -> preferences in the IDE; please keep Show verbose output during compilation disabled.

Attempt an upload and copy the full error message here (use the copy error messages button in the orange bar in the IDE); please use code tags (the 'circled' button in below image)

YES PORT IS CORRECT
YES WORKED IN PAST BUT FROM SOME DAYS SOMETIMES UPLOADED SOMETIMES NOT
NOTHING CONNECTED TO BOARD NOW BUT PREVIOSLY MOTOR SHIELD CONNECTED AND WORKED FINE

PLZ FIND VERBOSE OUTPUT SELECTED MESSAGE BELOW

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

Sketch uses 1928 bytes (5%) of program storage space. Maximum is 32256 bytes.

Global variables use 192 bytes (9%) of dynamic memory, leaving 1856 bytes for local variables. Maximum is 2048 bytes.

An error occurred while uploading the sketch

C:\Users\NEERAJ\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude -CC:\Users\NEERAJ\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf -v -patmega328p -carduino -PCOM3 -b115200 -D -Uflash:w:C:\Users\NEERAJ\AppData\Local\Temp\arduino_build_298064/timer.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\NEERAJ\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"



     Using Port                    : COM3

     Using Programmer              : arduino

     Overriding Baud Rate          : 115200

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

Talking in all caps is not necessary and is discouraged in this forum.

This is a hint.
We cannot help until you do this. Just like @sterretje explained.

Then use the code tags in your replay; this was also explained clearly in reply 2.

Please follow the directions of those who are trying to help you. :slight_smile:

But it's the wrong hint :cry:

  • Yes, port is correct
    -Yes, worked in past
    -Nothing connected to board

This is the error message with verbose output during upload ticked and verbose output during compilation unticked

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

Sketch uses 1928 bytes (5%) of program storage space. Maximum is 32256 bytes.

Global variables use 192 bytes (9%) of dynamic memory, leaving 1856 bytes for local variables. Maximum is 2048 bytes.

C:\Users\NEERAJ\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude -CC:\Users\NEERAJ\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf -v -patmega328p -carduino -PCOM3 -b115200 -D -Uflash:w:C:\Users\NEERAJ\AppData\Local\Temp\arduino_build_1248/timer.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\NEERAJ\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"



         Using Port                    : COM3

         Using Programmer              : arduino

         Overriding Baud Rate          : 115200

An error occurred while uploading the sketch



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

Do you know which TTL-to-USB converter is on your board? If the board does not have the CH340 TTL-to-USB converter, have you tried the Loop-Back Test Instructions? What is / was the result?

Is there anuthing in Windows device manager indicating a problem?

1 Like
  • TTL to USB converter on board not mentioned anywhere
    -Loop back test failed
    -No device manager seems fine

Should board be replaced?

The chip 'circled' in red. This one is a 16U2.

You can also find relevant information about the TTL-to-USB converter in device manager. Right click on the device and select properties. Below are two possibilities but there are a few more.

Uno with 16U2 TTL-to-USB converter
image

Uno with CH340 TTL-to-USB converter
image

You can also navigate to the details tab in above images (in case it shows as unknown device), select Hardware Ids and find the VID and the PID; those can be used to determine the chip and hence the needed driver. Below is for the CH340; if you have the CH340, the loopback test is non-conclusive as it will always fail.
image

Maybe. It never harms to have a spare board.

Below are images, it seems its not CH340

Those are the correct IDs for an Arduino UNO R3 according to the PCI database.

Do you see a new device appear in Device Manager when you connect the board?

EDIT: If the VID & PID are showing in Device Manager, then hopefully it's not listed as unknown device.

EDIT2: It looks like Windows has correctly detected the UNO and loaded the drivers for it as it has assigned COM3 to the USB interface for the board.

Summing it up

  1. Your board is recognised as an Uno.
  2. Your board has a 16U2 so the loopback test should work.

Two possible conclusions in my opinion

  1. Driver issue; have you tried to reinstall the driver?
  2. The 16U2 is (partially) malfunctioning. You can try to burn the firmware of the 16U2 (not the 328P) using Atmel flip (never done it so can't advise) and see if it solves the issue.

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