Arduino Uno Upload Hangs IDE 2.0.3

I have some simple code I copied into the IDE that compiles but uploading hangs forever. I am using the Arduino AVR Boards 1.8.5 and my board says "Arduino Uno R3". Pretty new to Arduino boards and I'm not even sure how to get a verbose response on IDE 2.0.3.

Enable verbose output during upload (important to see upload info) and enable verbose output during compilation (impotant to see if board selection matches) in file -> preferences.

Post here using code tags.

Sketch uses 854 bytes (2%) of program storage space. Maximum is 32256 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.
"C:\Users\chris\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude" "-CC:\Users\chris\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf" -v -V -patmega328p -carduino "-PCOM5" -b115200 -D "-Uflash:w:C:\Users\chris\AppData\Local\Temp\arduino-sketch-04EFB6EDFF77F54018B94E89EA1C20E5/base_fan.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\chris\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"

         Using Port                    : COM5
         Using Programmer              : arduino
         Overriding Baud Rate          : 115200
avrdude: ser_open(): can't open device "\\.\COM5": Access is denied.



avrdude done.  Thank you.

Failed uploading: uploading error: exit status 1

I have not solved this problem, but I was able to get everything working by using a different computer.

For note purposes, I was using a laptop that only has USB-C connections, and was connecting a USB cable to an adapter that had multiple USB ports. I think the issue might be there. Not sure.

That is the problem.

Is COM5 indeed the Arduino? Does it disappear when you disconnect the board?

You can try to switch off Bluetooth and see if that helps.

You can try to temporarily switch off your virus scanner and see if it helps.

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