Hi,
I'm having trouble uploading to Arduino UNO R3 board,
It says:
Problem uploading to board. See https.support.arduino.cc/hc/en-us/sections/360003198300 for suggestions.
Invalid library found in C:\Program Files (x86)\Arduino\libraries build: no headers files (.h) found in C:\Program Files (x86)\dio\libraries\build
It's getting compiled but not uploading to board
What should I do?
pert
October 26, 2023, 2:09pm
2
I moved your topic to an appropriate forum category @divya_chinmay .
In the future, please take some time to pick the forum category that best suits the subject of your topic. There is an "About the _____ category " topic at the top of each category that explains its purpose.
This is an important part of responsible forum usage, as explained in the "How to get the best out of this forum " guide . The guide contains a lot of other useful information. Please read it.
Thanks in advance for your cooperation.
Hi @divya_chinmay . I'm going to ask you to post the full verbose output from an upload attempt.
This procedure is not intended to solve the problem. The purpose is to gather more information.
Please do this:
Select File > Preferences... (or Arduino > Preferences... for macOS users) from the Arduino IDE menus.
The "Preferences " dialog will open.
Uncheck the box next to "Show verbose output during: ☑
compilation " in the "Preferences " dialog.
Check the box next to "Show verbose output during: ☐ upload ".
Click the "OK " button.
Attempt an upload, as you did before.
After the upload fails, you'll see a button on the right side of the orange bar in Arduino IDE: Copy error messages . Click that button.
This copies the full output to the clipboard.
Open a forum reply here by clicking the "Reply " button.
Click the <CODE/>
icon on the post composer toolbar.
This will add the forum's code block markup (```
) to your reply to make sure the error messages are correctly formatted.
Press Ctrl +V .
This will paste the error output from the upload into the code block.
Move the cursor outside of the code tags before you add any additional text to your reply.
Click the "Reply " button to post the output.
1 Like
Thanks for the help looks like microcontroller driver was missing as I installed It's good now.
Thankyou.
You are welcome. I'm glad it is working now. Great job finding a solution to the problem!
Thanks for taking the time to post an update.
Regards, Per
Arduino: 1.6.13 (Windows 10), 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\admin\Documents\Arduino\libraries -fqbn=arduino:avr:uno -ide-version=10613 -build-path C:\Users\admin\AppData\Local\Temp\arduino_build_953643 -warnings=none -prefs=build.warn_data_percentage=75 -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 D:\ARDUINO\arduino_traffic_light_code\arduino_traffic_light_code.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\admin\Documents\Arduino\libraries -fqbn=arduino:avr:uno -ide-version=10613 -build-path C:\Users\admin\AppData\Local\Temp\arduino_build_953643 -warnings=none -prefs=build.warn_data_percentage=75 -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 D:\ARDUINO\arduino_traffic_light_code\arduino_traffic_light_code.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=10613 -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\admin\AppData\Local\Temp\arduino_build_953643\sketch\arduino_traffic_light_code.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=10613 -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\admin\AppData\Local\Temp\arduino_build_953643\sketch\arduino_traffic_light_code.ino.cpp" -o "C:\Users\admin\AppData\Local\Temp\arduino_build_953643\preproc\ctags_target_for_gcc_minus_e.cpp"
"C:\Program Files (x86)\Arduino\tools-builder\ctags\5.8-arduino10/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\Users\admin\AppData\Local\Temp\arduino_build_953643\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=10613 -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\admin\AppData\Local\Temp\arduino_build_953643\sketch\arduino_traffic_light_code.ino.cpp" -o "C:\Users\admin\AppData\Local\Temp\arduino_build_953643\sketch\arduino_traffic_light_code.ino.cpp.o"
Compiling libraries...
Compiling core...
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc" -c -g -x assembler-with-cpp -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10613 -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:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino\wiring_pulse.S" -o "C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\wiring_pulse.S.o"
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\WInterrupts.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\hooks.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\wiring.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\wiring_analog.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\wiring_digital.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\wiring_pulse.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\wiring_shift.c.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\CDC.cpp.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\HardwareSerial.cpp.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\HardwareSerial0.cpp.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\HardwareSerial1.cpp.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\HardwareSerial2.cpp.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\HardwareSerial3.cpp.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\IPAddress.cpp.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\PluggableUSB.cpp.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\Print.cpp.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\Stream.cpp.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\Tone.cpp.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\USBCore.cpp.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\WMath.cpp.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\WString.cpp.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\abi.cpp.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\main.cpp.o
Using previously compiled file: C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\new.cpp.o
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc-ar" rcs "C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\core.a" "C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\wiring_pulse.S.o"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc-ar" rcs "C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\core.a" "C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\WInterrupts.c.o"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc-ar" rcs "C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\core.a" "C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\hooks.c.o"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc-ar" rcs "C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\core.a" "C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\wiring.c.o"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc-ar" rcs "C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\core.a" "C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\wiring_analog.c.o"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc-ar" rcs "C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\core.a" "C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\wiring_digital.c.o"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc-ar" rcs "C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\core.a" "C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\wiring_pulse.c.o"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc-ar" rcs "C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\core.a" "C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\wiring_shift.c.o"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc-ar" rcs "C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\core.a" "C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\CDC.cpp.o"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc-ar" rcs "C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\core.a" "C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\HardwareSerial.cpp.o"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc-ar" rcs "C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\core.a" "C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\HardwareSerial0.cpp.o"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc-ar" rcs "C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\core.a" "C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\HardwareSerial1.cpp.o"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc-ar" rcs "C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\core.a" "C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\HardwareSerial2.cpp.o"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc-ar" rcs "C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\core.a" "C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\HardwareSerial3.cpp.o"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc-ar" rcs "C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\core.a" "C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\IPAddress.cpp.o"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc-ar" rcs "C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\core.a" "C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\PluggableUSB.cpp.o"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc-ar" rcs "C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\core.a" "C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\Print.cpp.o"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc-ar" rcs "C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\core.a" "C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\Stream.cpp.o"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc-ar" rcs "C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\core.a" "C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\Tone.cpp.o"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc-ar" rcs "C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\core.a" "C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\USBCore.cpp.o"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc-ar" rcs "C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\core.a" "C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\WMath.cpp.o"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc-ar" rcs "C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\core.a" "C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\WString.cpp.o"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc-ar" rcs "C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\core.a" "C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\abi.cpp.o"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc-ar" rcs "C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\core.a" "C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\main.cpp.o"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc-ar" rcs "C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\core.a" "C:\Users\admin\AppData\Local\Temp\arduino_build_953643\core\new.cpp.o"
Linking everything together...
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc" -w -Os -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega328p -o "C:\Users\admin\AppData\Local\Temp\arduino_build_953643/arduino_traffic_light_code.ino.elf" "C:\Users\admin\AppData\Local\Temp\arduino_build_953643\sketch\arduino_traffic_light_code.ino.cpp.o" "C:\Users\admin\AppData\Local\Temp\arduino_build_953643/core\core.a" "-LC:\Users\admin\AppData\Local\Temp\arduino_build_953643" -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\admin\AppData\Local\Temp\arduino_build_953643/arduino_traffic_light_code.ino.elf" "C:\Users\admin\AppData\Local\Temp\arduino_build_953643/arduino_traffic_light_code.ino.eep"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-objcopy" -O ihex -R .eeprom "C:\Users\admin\AppData\Local\Temp\arduino_build_953643/arduino_traffic_light_code.ino.elf" "C:\Users\admin\AppData\Local\Temp\arduino_build_953643/arduino_traffic_light_code.ino.hex"
Sketch uses 1,054 bytes (3%) of program storage space. Maximum is 32,256 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2,039 bytes for local variables. Maximum is 2,048 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 -PCOM1 -b115200 -D -Uflash:w:C:\Users\admin\AppData\Local\Temp\arduino_build_953643/arduino_traffic_light_code.ino.hex:i
avrdude: Version 6.3, compiled on Sep 12 2016 at 17:24:16
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 : COM1
Using Programmer : arduino
Overriding Baud Rate : 115200
avrdude: ser_open(): can't open device "\\.\COM1": The system cannot find the file specified.
avrdude done. Thank you.
Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.
@enatalia
From memory, the default port in IDE 1.6 is COM1. But an Arduino is hardly ever on COM1, even if it does not exist.
You need to select the correct port in tools / ports in the IDE. To find the correct port, disconnect your Arduino and go to the above menu. Note the ports and close the menu. Connect the board, go to the above menu again and check if a new port shows. If yes, select that port and do the upload.
If no new port shows, you will need to check in Windows device manager what is going on.
pert
Split this topic
July 30, 2024, 7:41pm
10
pert
Split this topic
October 14, 2024, 1:04pm
11