I know this question has been asked countless times, I looked through over 15 topics but still non of them apply to me, and most don't actually reach

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

Sketch uses 2068 bytes (6%) of program storage space. Maximum is 32256 bytes.

Global variables use 50 bytes (2%) of dynamic memory, leaving 1998 bytes for local variables. Maximum is 2048 bytes.

C:\Users\levar\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude -CC:\Users\levar\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf -v -patmega328p -carduino -PCOM5 -b115200 -D -Uflash:w:C:\Users\levar\AppData\Local\Temp\arduino_build_855220/Knob.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\levar\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: stk500_recv(): programmer is not responding

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

avrdude: stk500_recv(): programmer is not responding

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

avrdude: stk500_recv(): programmer is not responding

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

avrdude: stk500_recv(): programmer is not responding

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

avrdude: stk500_recv(): programmer is not responding

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

avrdude: stk500_recv(): programmer is not responding

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

avrdude: stk500_recv(): programmer is not responding

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

avrdude: stk500_recv(): programmer is not responding

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

avrdude: stk500_recv(): programmer is not responding

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

avrdude: stk500_recv(): programmer is not responding

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



avrdude done.  Thank you.



Problem uploading to board.  See https://support.arduino.cc/hc/en-us/sections/360003198300 for suggestions.



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

What is the question?

Upload error at bottom of posted message ...

Do you have an Arduino Uno connected?

It's not a question though, is it?

the code would note upload to my arduino, the program is stuck on "upload" and this is the error msg

Do you have an Uno connected?

Did you select the correct port before uploading?

Is the previous sketch flooding the serial port with data? Look to see if the TX LED flickers when you plug in your Arduino UNO.

When this happens to me I usually close the IDE, unplug the board.
Restart the IDE then plug in the board. Make sure you hear the Windows USB chime.

Also has this board and IDE installation ever worked?

Suggestion: put your question in the title and if you want to add the "countless times" keep it in the body of the message. And ask your question up front then go on to explain the situation.

the problem is my arduino, not to do with any of my connections or setups, rather i was told to coppy past a certain Error code i was given and share it to the comunity in hopes of someone figuring out why im always stuck on the upload bar stuck at what looks like to be 99%

the only lights that are on are "L" and "ON"

Bad USB cable? Bad serial port? What Operating System on PC? What name of serial port?

Has it worked before? Have you tried with another Arduino?

Have you experimented with burning the bootloader? Presumably not? :slight_smile:

I've found that the IDE works best if I select the type of Arduino board first, then the port, as the port name (at least on Linux) differs depending on the type of Arduino.

You refuse to confirm without a doubt that the Arduino is an Uno. Why? You see, if you tell the IDE to compile for an Uno, and you have connected another Arduino model, there may be problems. The problem is MOST LIKELY not your Arduino, but something with the setup on your PC.

It's a bit like when we programmers decide there is a bug in the compiler. No it never is! :slight_smile:

Fundamentally this error means that the IDE has tried to talk to the Arduino but the Arduino is not responding.

Is this a real Arduino or is it a clone made by some other company?

If it is a clone then it could be that it is using a type of serial to USB converter that your machine doesn't have a driver for.

But all the above could be the problem including a none working Arduino.

or simply a bad cable, or poorly plugged in, or cracked solder pin cable->board.
Any number of problems, the list goes on forever. Try programming another device, see what happens.
C

look for a CH340 chip on your UNO. if you have one, do you have the CH340 driver on your computer?

cable works finw, i use it on ohter arduinos, serial port is correct. windows 11, port 5,(only available option) it has worked before, i have used another arduino i have tried many things, my arduino is from A-Z delivery. i also have all drivers/librarys i need to use this arduino.

Has it ever worked? Maybe it is defective.

yes it has

Try loading and running the basic Blink example. My bet is, same failure. If you can do the same with another Arduino, then I'd say you've got a dud, or you've run into the "old bootloader - new bootloader" problem.
Or something...

Never mind. You've done something similar. I'd vote for a borked item, unless you've changed something so that what "used to work" doesn't anymore.