Arduino uno r3 not getting sketches

Hi, So i recently got a Sunfounder Arduino Uno R3 for christmas and when i try to upload a sketch to it it says "An error occurred while uploading the sketch".

The entire error dialog says:

Arduino: 1.8.0 (Windows 7), Board: "Arduino/Genuino Uno"

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\Boys\Documents\Arduino\libraries -fqbn=arduino:avr:uno -vid-pid=0X2341_0X0043 -ide-version=10800 -build-path C:\Users\Boys\AppData\Local\Temp\arduino_build_596365 -warnings=none -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.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.arduinoOTA.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -verbose C:\Users\Boys\Documents\Arduino\sketch_dec25a\sketch_dec25a.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\Boys\Documents\Arduino\libraries -fqbn=arduino:avr:uno -vid-pid=0X2341_0X0043 -ide-version=10800 -build-path C:\Users\Boys\AppData\Local\Temp\arduino_build_596365 -warnings=none -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.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.arduinoOTA.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -verbose C:\Users\Boys\Documents\Arduino\sketch_dec25a\sketch_dec25a.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=10800 -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\Boys\AppData\Local\Temp\arduino_build_596365\sketch\sketch_dec25a.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=10800 -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\Boys\AppData\Local\Temp\arduino_build_596365\sketch\sketch_dec25a.ino.cpp" -o "C:\Users\Boys\AppData\Local\Temp\arduino_build_596365\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\Boys\AppData\Local\Temp\arduino_build_596365\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=10800 -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\Boys\AppData\Local\Temp\arduino_build_596365\sketch\sketch_dec25a.ino.cpp" -o "C:\Users\Boys\AppData\Local\Temp\arduino_build_596365\sketch\sketch_dec25a.ino.cpp.o"
Compiling libraries...
Compiling core...
Using previously compiled file: C:\Users\Boys\AppData\Local\Temp\arduino_build_596365\core\wiring_pulse.S.o
Using previously compiled file: C:\Users\Boys\AppData\Local\Temp\arduino_build_596365\core\WInterrupts.c.o
Using previously compiled file: C:\Users\Boys\AppData\Local\Temp\arduino_build_596365\core\hooks.c.o
Using previously compiled file: C:\Users\Boys\AppData\Local\Temp\arduino_build_596365\core\wiring.c.o
Using previously compiled file: C:\Users\Boys\AppData\Local\Temp\arduino_build_596365\core\wiring_analog.c.o
Using previously compiled file: C:\Users\Boys\AppData\Local\Temp\arduino_build_596365\core\wiring_digital.c.o
Using previously compiled file: C:\Users\Boys\AppData\Local\Temp\arduino_build_596365\core\wiring_pulse.c.o
Using previously compiled file: C:\Users\Boys\AppData\Local\Temp\arduino_build_596365\core\wiring_shift.c.o
Using previously compiled file: C:\Users\Boys\AppData\Local\Temp\arduino_build_596365\core\CDC.cpp.o
Using previously compiled file: C:\Users\Boys\AppData\Local\Temp\arduino_build_596365\core\HardwareSerial.cpp.o
Using previously compiled file: C:\Users\Boys\AppData\Local\Temp\arduino_build_596365\core\HardwareSerial0.cpp.o
Using previously compiled file: C:\Users\Boys\AppData\Local\Temp\arduino_build_596365\core\HardwareSerial1.cpp.o
Using previously compiled file: C:\Users\Boys\AppData\Local\Temp\arduino_build_596365\core\HardwareSerial2.cpp.o
Using previously compiled file: C:\Users\Boys\AppData\Local\Temp\arduino_build_596365\core\HardwareSerial3.cpp.o
Using previously compiled file: C:\Users\Boys\AppData\Local\Temp\arduino_build_596365\core\IPAddress.cpp.o
Using previously compiled file: C:\Users\Boys\AppData\Local\Temp\arduino_build_596365\core\PluggableUSB.cpp.o
Using previously compiled file: C:\Users\Boys\AppData\Local\Temp\arduino_build_596365\core\Print.cpp.o
Using previously compiled file: C:\Users\Boys\AppData\Local\Temp\arduino_build_596365\core\Stream.cpp.o
Using previously compiled file: C:\Users\Boys\AppData\Local\Temp\arduino_build_596365\core\Tone.cpp.o
Using previously compiled file: C:\Users\Boys\AppData\Local\Temp\arduino_build_596365\core\USBCore.cpp.o
Using previously compiled file: C:\Users\Boys\AppData\Local\Temp\arduino_build_596365\core\WMath.cpp.o
Using previously compiled file: C:\Users\Boys\AppData\Local\Temp\arduino_build_596365\core\WString.cpp.o
Using previously compiled file: C:\Users\Boys\AppData\Local\Temp\arduino_build_596365\core\abi.cpp.o
Using previously compiled file: C:\Users\Boys\AppData\Local\Temp\arduino_build_596365\core\main.cpp.o
Using previously compiled file: C:\Users\Boys\AppData\Local\Temp\arduino_build_596365\core\new.cpp.o
Using previously compiled file: C:\Users\Boys\AppData\Local\Temp\arduino_build_596365\core\core.a
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\Boys\AppData\Local\Temp\arduino_build_596365/sketch_dec25a.ino.elf" "C:\Users\Boys\AppData\Local\Temp\arduino_build_596365\sketch\sketch_dec25a.ino.cpp.o" "C:\Users\Boys\AppData\Local\Temp\arduino_build_596365/core\core.a" "-LC:\Users\Boys\AppData\Local\Temp\arduino_build_596365" -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\Boys\AppData\Local\Temp\arduino_build_596365/sketch_dec25a.ino.elf" "C:\Users\Boys\AppData\Local\Temp\arduino_build_596365/sketch_dec25a.ino.eep"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-objcopy" -O ihex -R .eeprom "C:\Users\Boys\AppData\Local\Temp\arduino_build_596365/sketch_dec25a.ino.elf" "C:\Users\Boys\AppData\Local\Temp\arduino_build_596365/sketch_dec25a.ino.hex"
Sketch uses 928 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.
An error occurred while uploading the sketch

The code i was using goes as follows:

const int ledPin = 9;

void setup() {
pinMode(ledPin,OUTPUT);

}

void loop() {
// put your main code here, to run repeatedly:
digitalWrite(ledPin,HIGH);
delay(500);
digitalWrite(ledPin,LOW);
delay(500);
}

I was using it to make a light blink (if you couldnt tell) on a Breadboard.

i verified/compiled it before uploading, it has a strong connections, all of the drivers are brand new, the arduino is just out of the box, im using everything sunfounder sent me to get started... I DONT UNDERSTAND.

can someone help please? i would really like to use this.

Please use code tags(</> button on the toolbar when you post console output(error/warning messages) or code.

Please do this:

  • File > Preferences > Show verbose output during: > compilation(uncheck), upload(check)
  • Sketch > Upload
  • After the upload fails post the console output here(don’t forget the code tags).

Welp, Now it works, its gunna make a fool out of me, i will be sure to upload any error dialog if it happens again! Thanks for the help.