Uno led stays on

Guys I am starting my very first trip into this field, I know nothing,,,,,,I have downloaded the software 10 times and the board led is on and stays on. it was flashing the first time I connected the USB. I have been going through a simple code intro that turns on the led and off but I get "error occurred while uploading sketch"
Invalaid library found

downloaded 1.8.13
Uno R3 sy1950

HELP

It now is failing to load a port,,,,,,,is the uno bad ??

Welcome to the community. Are you following the Getting Started guide? It is the first place to begin your journey.

yes to the best of my ability. I found a guy that walks you though the whole thing on you tube, been doing what he shows and mine had the flashing LED as soon as I powered up, his did not ???
I have moved to the BLINK example in tools. the coding is different bu it still wont respond. "problem uploading board"

Once you get an error, you should see an orange bar above the status / compiler output section at the bottom of the IDE. Click the "Copy error messages" button on the right side of that bar and paste it in this forum so that we can see the error. You should also cut and paste the exact contents of the program you are trying to upload.

Please enable Verbose Output during upload under file-> preferences in the IDE.

Next compile / upload.

The error message is usually saying more that just "error uploading to board". When the error occurs, there will be a "copy error messages" button at the right hand side just above the output window. It copies the error messages to the clipboard and next you can past it here; see above reply as well. Note that if the output exceeds 9000 characters, you will need to paste to a file, save it and attach it here.

Are you sure that you have the correct serial port selected? Which operating system? For Linux you will need to add yourself to the dialout group; under Windows, COM1 is usually not the Arduino.

"Invalid library found" can be ignored for now.

  • Describe the behavior of L Led on pressing Reset Button. (It must Blink twice very fast)

  • Go to: Arduino IDE > File > Preferences > Show verbose output: Select both options: "Compilation" and "Upload". Then try to upload the Blink example (Arduino IDE > Files > Examples > Basics > Blink) and please send to us the copy of the whole text shown in the console.

Arduino: 1.8.13 (Windows 7), Board: "Arduino Uno"

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\DAD\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\DAD\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\DAD\Documents\Arduino\libraries -fqbn=arduino:avr:uno -vid-pid=2341_0043 -ide-version=10813 -build-path C:\Users\DAD\AppData\Local\Temp\arduino_build_957358 -warnings=none -build-cache C:\Users\DAD\AppData\Local\Temp\arduino_cache_241412 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=C:\Users\DAD\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Users\DAD\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.avrdude.path=C:\Users\DAD\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17 -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Users\DAD\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17 -prefs=runtime.tools.avr-gcc.path=C:\Users\DAD\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Users\DAD\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7 -verbose C:\Users\DAD\AppData\Local\Temp\arduino_modified_sketch_625443\Blink.ino

C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\DAD\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\DAD\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\DAD\Documents\Arduino\libraries -fqbn=arduino:avr:uno -vid-pid=2341_0043 -ide-version=10813 -build-path C:\Users\DAD\AppData\Local\Temp\arduino_build_957358 -warnings=none -build-cache C:\Users\DAD\AppData\Local\Temp\arduino_cache_241412 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=C:\Users\DAD\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Users\DAD\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.avrdude.path=C:\Users\DAD\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17 -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Users\DAD\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17 -prefs=runtime.tools.avr-gcc.path=C:\Users\DAD\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7 -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Users\DAD\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7 -verbose C:\Users\DAD\AppData\Local\Temp\arduino_modified_sketch_625443\Blink.ino

Using board 'uno' from platform in folder: C:\Users\DAD\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.3

Using core 'arduino' from platform in folder: C:\Users\DAD\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.3

Detecting libraries used...

"C:\Users\DAD\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Users\DAD\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.3\cores\arduino" "-IC:\Users\DAD\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.3\variants\standard" "C:\Users\DAD\AppData\Local\Temp\arduino_build_957358\sketch\Blink.ino.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE

Generating function prototypes...

"C:\Users\DAD\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Users\DAD\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.3\cores\arduino" "-IC:\Users\DAD\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.3\variants\standard" "C:\Users\DAD\AppData\Local\Temp\arduino_build_957358\sketch\Blink.ino.cpp" -o "C:\Users\DAD\AppData\Local\Temp\arduino_build_957358\preproc\ctags_target_for_gcc_minus_e.cpp" -DARDUINO_LIB_DISCOVERY_PHASE

"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\DAD\AppData\Local\Temp\arduino_build_957358\preproc\ctags_target_for_gcc_minus_e.cpp"

Compiling sketch...

"C:\Users\DAD\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Users\DAD\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.3\cores\arduino" "-IC:\Users\DAD\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.3\variants\standard" "C:\Users\DAD\AppData\Local\Temp\arduino_build_957358\sketch\Blink.ino.cpp" -o "C:\Users\DAD\AppData\Local\Temp\arduino_build_957358\sketch\Blink.ino.cpp.o"

Compiling libraries...

Compiling core...

Using precompiled core: C:\Users\DAD\AppData\Local\Temp\arduino_cache_241412\core\core_arduino_avr_uno_8859bde7ed5bacf530f0cfd13d905c12.a

Linking everything together...

"C:\Users\DAD\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega328p -o "C:\Users\DAD\AppData\Local\Temp\arduino_build_957358/Blink.ino.elf" "C:\Users\DAD\AppData\Local\Temp\arduino_build_957358\sketch\Blink.ino.cpp.o" "C:\Users\DAD\AppData\Local\Temp\arduino_build_957358/..\arduino_cache_241412\core\core_arduino_avr_uno_8859bde7ed5bacf530f0cfd13d905c12.a" "-LC:\Users\DAD\AppData\Local\Temp\arduino_build_957358" -lm

"C:\Users\DAD\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 "C:\Users\DAD\AppData\Local\Temp\arduino_build_957358/Blink.ino.elf" "C:\Users\DAD\AppData\Local\Temp\arduino_build_957358/Blink.ino.eep"

"C:\Users\DAD\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy" -O ihex -R .eeprom "C:\Users\DAD\AppData\Local\Temp\arduino_build_957358/Blink.ino.elf" "C:\Users\DAD\AppData\Local\Temp\arduino_build_957358/Blink.ino.hex"

"C:\Users\DAD\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino7/bin/avr-size" -A "C:\Users\DAD\AppData\Local\Temp\arduino_build_957358/Blink.ino.elf"

Sketch uses 922 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\DAD\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude -CC:\Users\DAD\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf -v -patmega328p -carduino -PCOM7 -b115200 -D -Uflash:w:C:\Users\DAD\AppData\Local\Temp\arduino_build_957358/Blink.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\DAD\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"

Using Port : COM7

Using Programmer : arduino

Overriding Baud Rate : 115200

avrdude: ser_open(): can't set com-state for "\.\COM7"

avrdude done. Thank you.

An error occurred while uploading the sketch

I dont know what this means but the above is what copied during the upload of Blink,.
Also, I set the verbose settings and the led blinks twice , very fast, when I push the reset.

Thanks for posting the error. It appears your board is having problems communicating with your Windows system. Are you using an Arduino clone by chance? I found the following links which may be helpful for you.

https://forum.arduino.cc/index.php?topic=54796.30

thank you for those links. Unfortunately they did not work. mine has the ATMEL chip, so the china I did not try. anyway the download would not work run ??
I have requested a replacement from the vendor. I know not what I am doing so I desperately need something that just works. Its the only way I will learn anything.

thank you guys

Since you are just beginning your Arduino journey, I would strongly suggest you start with purchasing an authentic Uno directly from the Arduino site. This will end up easing general compatibility issues in the future.

I thought I did,,,sadly that may not be the case.
Ya just don't know what ya don't know.
thanks, I am sure to be back pestering you guys soon. :smiley: