Can't upload to arduino

Hi, I have been having communication problems between my computer and my arduino. I tried the loopback test and it failed, I check the drivers, reinstalled the IDE , cleck for the correct COM port but it still failed (This has been happening to 2 of my boards) Do you guys have any way of fixing it or if its user problem, please tell me what I shouldn't do . P.S. the light at pin 13 is on (yellow ) and so is the ON LED, TX and RX LEDS are not on even when upload, nothing blinks. Thanks in advance! :)

Here's the error messages: C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\GAMING\Documents\Arduino\libraries -fqbn=arduino:avr:uno -vid-pid=0X2341_0X0043 -ide-version=10805 -build-path C:\Users\GAMING\AppData\Local\Temp\arduino_build_508223 -warnings=none -build-cache C:\Users\GAMING\AppData\Local\Temp\arduino_cache_20891 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -verbose C:\Program Files (x86)\Arduino\examples\01.Basics\AnalogReadSerial\AnalogReadSerial.ino C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\GAMING\Documents\Arduino\libraries -fqbn=arduino:avr:uno -vid-pid=0X2341_0X0043 -ide-version=10805 -build-path C:\Users\GAMING\AppData\Local\Temp\arduino_build_508223 -warnings=none -build-cache C:\Users\GAMING\AppData\Local\Temp\arduino_cache_20891 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -verbose C:\Program Files (x86)\Arduino\examples\01.Basics\AnalogReadSerial\AnalogReadSerial.ino Using board 'uno' from platform in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr Using core 'arduino' from platform in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr Detecting libraries used... "C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard" "C:\Users\GAMING\AppData\Local\Temp\arduino_build_508223\sketch\AnalogReadSerial.ino.cpp" -o "nul" Generating function prototypes... "C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard" "C:\Users\GAMING\AppData\Local\Temp\arduino_build_508223\sketch\AnalogReadSerial.ino.cpp" -o "C:\Users\GAMING\AppData\Local\Temp\arduino_build_508223\preproc\ctags_target_for_gcc_minus_e.cpp" "C:\Program Files (x86)\Arduino\tools-builder\ctags\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\Users\GAMING\AppData\Local\Temp\arduino_build_508223\preproc\ctags_target_for_gcc_minus_e.cpp" Compiling sketch... "C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard" "C:\Users\GAMING\AppData\Local\Temp\arduino_build_508223\sketch\AnalogReadSerial.ino.cpp" -o "C:\Users\GAMING\AppData\Local\Temp\arduino_build_508223\sketch\AnalogReadSerial.ino.cpp.o" Compiling libraries... Compiling core... Using precompiled core Linking everything together... "C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc" -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega328p -o "C:\Users\GAMING\AppData\Local\Temp\arduino_build_508223/AnalogReadSerial.ino.elf" "C:\Users\GAMING\AppData\Local\Temp\arduino_build_508223\sketch\AnalogReadSerial.ino.cpp.o" "C:\Users\GAMING\AppData\Local\Temp\arduino_build_508223/..\arduino_cache_20891\core\core_arduino_avr_uno_0c812875ac70eb4a9b385d8fb077f54c.a" "-LC:\Users\GAMING\AppData\Local\Temp\arduino_build_508223" -lm "C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 "C:\Users\GAMING\AppData\Local\Temp\arduino_build_508223/AnalogReadSerial.ino.elf" "C:\Users\GAMING\AppData\Local\Temp\arduino_build_508223/AnalogReadSerial.ino.eep" "C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-objcopy" -O ihex -R .eeprom "C:\Users\GAMING\AppData\Local\Temp\arduino_build_508223/AnalogReadSerial.ino.elf" "C:\Users\GAMING\AppData\Local\Temp\arduino_build_508223/AnalogReadSerial.ino.hex" Sketch uses 1888 bytes (5%) of program storage space. Maximum is 32256 bytes. Global variables use 188 bytes (9%) of dynamic memory, leaving 1860 bytes for local variables. Maximum is 2048 bytes. C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -carduino -PCOM3 -b115200 -D -Uflash:w:C:\Users\GAMING\AppData\Local\Temp\arduino_build_508223/AnalogReadSerial.ino.hex:i

avrdude: Version 6.3, compiled on Jan 17 2017 at 12:00:53 Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/ Copyright (c) 2007-2014 Joerg Wunsch

System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"

Using Port : COM3 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=0xf5 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0xf5 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0xf5 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0xf5 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0xf5 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0xf5 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0xf5 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0xf5 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0xf5 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0xf5

avrdude done. Thank you.

Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.

Some good detail but not everything so these are general issue fixes below.

Try avoid USB 3.0 and stick with 2.0 where possible.

Turn off any additional security just for testing as some software has been seen to cause issues with uploads.

Supply the sketch being used inside code tags ( </> )

What and how are you powering anything (schematic needed)

Remove anything else connected to the board.

Maybe google CH340 if its a CLONE board as they are not part of the Arduino line up drivers.

This post may of help in the future.

I tried uploading the analog serial example through USB 2.0 but the same error pops up Disabling avast antivirus shields also has no effect(same error) I am powering the arduino only via usb , nothing else is connected apart from the usb cable i checked and it says it is a 16U2 chip -I don't know whether it can be fixed, if I do get a new one what can i do to avoid situations like this? Thanks

Failed loopback test indicates the serial adapter isn't working. If you can't get the loopback test to work, the board will not be made to work. Either get that to work, or determine that there's hardware failure and get a replacement board - the USB-serial adapter, particularly on official and faithful (16u2-based) clones is fairly fragile, and is a common point of failure (I recommend clones with CP2102 or CH340G usb serial adapters - we seem to get far fewer reports of failed usb serial adapters on those boards than with genuine boards with the 16u2).

When you get a serial port, but the loopback test fails, that tell you exactly what is wrong (assuming you did the loopback test right) - and it's a bad prognosis for the board. Fortunately uno compatible boards are under 10 bucks on ebay, and nano/pro mini clones are under $3).

Maybe a bad or broken cable.

sterretje: Maybe a bad or broken cable.

Only if you mean the cable used to connect tx and rx for the loopback test - he's able to talk to the usb serial adapter, so you know the USB cable is okay.