My configuration = W10, UNO R3 , IDE 2.0.0
Problem : everything was OK and all of a sudden I got this message « Failed uploading: no upload port provided »
Now W10 proposes only COM1
The IDE asks for selecting another card and port but nothing available ( like port 5 or 6..)
What I did (but no results ):
Several ON/OFF of the PC, plug and deplug the USB cable
Verification of the USB cable
Use of 2 other UNO cards ( original manufacturing)
External power supply instead of USB
I got the problem with IDE 1.8.19, so I changed for 2.0.0
Re-installation of W10
I am having similar problems with 2.0.0 on a MacBook Pro M1 running Monterey. I select the port, it appears to connect, but then immediately disconnects. I tried all USB-C ports, with no change.
Thanks, I got the problem first with IDE 1.8
I have though a moment that it was coming from the UNO but using others it was the same problem which seems to be between W10 and IDE.
Like you no change using the other USB ports.
I don't know much about the necessary drivers ( IDE) : should they "ask" W10 to create Arduino ports 5,6,... ?. The re-installation of my W10 seems to indicate that the problem comes from IDE ??
You don't mention if you could succesfully upload to those boards or not.
Please provide details of your project that you were working on when it failed. A schematic would be great; photo of handdrawn is OK. Don't forget every power connection that you used.
Anything connected to pins 0 and 1?
I'm not sure how it exactly works in IDE2.0. But when you install IDE1.8.x the drivers are installed at that moment.
What does Windows device manager think of your board(s). If they are recognised there, they should also be recognised in the IDE.
The error is IDE2.0 specific; it means that you did not select a port. Select a port and that specific error will go away; it will not solve the upload problem though.
The Arduino IDE 2.x installation does not include a built-in copy of the "Arduino AVR Boards" platform. Instead, on the first run of a fresh installation, Arduino IDE 2.x automatically uses Boards Manager to install "Arduino AVR Boards". The drivers are installed at that time.
From a user perspective, the outcomes are similar (the difference being that Arduino IDE 2.x guarantees the drivers are installed, even when the Arduino IDE package without an installer e.g., ZIP is used). But from a the standpoint of the IDE project architecture and maintenance, the new way is a lot better because the same infrastructure is used for all boards platforms, instead of having to create and maintain a special system just to support a built-in "Arduino AVR Boards" platform.
If I use the 2 other cards I can verify that the sketch is OK but the upload indicates port not provided ( and i have no choice exept COM1
See answer at the end, I tried something new ! Concerning the configuration, as indicated UNO is now powered by an external power supply and no more by the USB
pin 0 & 1 are free
pc device manager shows COM1 , nothing else
no possibility to select a port and then the message remains
Back to sketch and so on :
I just tried to use a portable pc ( IDE 1.8.19 + W10 ) :
1/ I upload my original sketch : same results , same message.
2/ If I upload a very simple code as shown here after, surprise, the port 4 is shown available and the serial monitor works as in the past. The device manager shows port 4 /arduino
3/On that portable Uploading now my original sketch it works too, the port 4 is , in some way, kept in memory somewhere.!
4/ If I useagain now my pc, no miracle the simple sketch don't allow to open a port for arduino...
My conclusion at that stage : the problem seems linked to a " more complicated sketch but also to the pc ( the one with W10 re-installed...)
Thinking back to the past, this problem appeared when the sketch was more and more "sophisticated", at that stage, the arduino port desapeared and never came back.
*Basic sketch used as a test :
#include <EEPROM.h>
int addr = 0; // Store value 24 to Address 0 in EEPROM
int angle0 = 24;
void setup() {
Serial.begin(9600);
}
void loop() {
EEPROM.write(addr, angle0); // Writes 24 to address 0
int angle0 = EEPROM.read(0); // Retrieves value stored in address 0 / EEPROM
Serial.println(angle0);
delay (4000);
}
note : I can send more info if necessary but I don't know much yet how to proceed ( jpeg etc.)
By the way I re-installed IDE 2.0.0 just in case on my computer tower, no change, even with the simple code... " Select other Board and Port" does'nt show other ports exept COM1, Board is my case UNO.
They are not. The drivers used by Arduino IDE 2.x are the ones bundled with the boards platform of your Uno board.
It is not relevant to your problem, but I would be happy to tell you where those drivers are if only for the sake of satisfying your curiosity. I'd need a little more information before I could do that though:
Select File > Preferences from the Arduino IDE menus.
Check the box next to "Show verbose output during: ☐ compilation".
Click the OK button.
Select Sketch > Verify/Compile from the Arduino IDE menus.
Wait for the compilation to finish.
Right click on the black "Output" pane at the bottom of the Arduino IDE 2.x window.
From the context menu, click Copy All.
Open a forum reply here by clicking the Reply button.
Click the </> 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 compilation output into the code block.
Move the cursor outside of the code tags before you add any additional text to your reply.
I am moving soon and will be able to proceed to what you said to morrow.
Before that "The drivers used by Arduino IDE 2.x are the ones bundled with the boards platform of your Uno board." : Does it mean that such a problem could come from the UNO board used ( although I have tested 2 others ) ?
note : I do not quite understand : before (IDE 1.8.xx) the drivers were located in arduino files (programmesX86) but now they are part of "the boards platform of Uno board." ? Sorry but I missed sqomething or do not understand what is this board platform.
You may be have seen in my last posts that with the portable pc ( IDE 1.8.19/ W10 ) I succeeded to get port 4 . Unfortunately further tests are not so successful : this port 4 is no more accepted after compilation...
The IDE supports a variety of boards and can be adjusted to support other boards. Arduino e.g. has boards based on the AVR architecture (e.g. Uno/Mega/Leonardo) as well as on ARM based microcontrollers (e.g. Due); there are also 3rd party boards like Wemos/NodeMCU which are ESP based. The boards package provides all 'stuff' needed to be able to use a specific board or group of boards.
It's in line with what I observed : If the serial link is not connected to the UNO board the device manager do not show any arduino port . When the connection is done an arduino port is created in addition to others ( COM1, LPT1 ) .
Back to my « problem, it seems to be resolved , what I don't like muchis why.
I have reinstalled 3 more times both W10 and IDE 2.0 and arduino ports appeared at the last trial, it seems too that during the IDE installtion i shave seen the installation of the drivers. Since now 2 days no problem after then a seri of ON/OFF. I am not quite reassured but wait and see.
If this occurs again i immediately make a copy of the compilation.
Ptillisch said « ...but I would be happy to tell you where those drivers are if only for the sake of satisfying your curiosity » so I join a copy of the compilation of one program on which i am working. In case of problem again i will check directly on the compilation before calling on you.
copy of compilation :
Using board 'uno' from platform in folder: C:\Users\fount\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5
Using core 'arduino' from platform in folder: C:\Users\fount\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5
Detecting libraries used...
"C:\\Users\\fount\\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=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\fount\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\cores\\arduino" "-IC:\\Users\\fount\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\variants\\standard" "C:\\Users\\fount\\AppData\\Local\\Temp\\arduino-sketch-D3BAC05FC74E8571A405C08E3845FEEB\\sketch\\MAQ-3_sep09b.ino.cpp" -o nul
Alternatives for LiquidCrystal.h: [LiquidCrystal@1.0.7]
ResolveLibrary(LiquidCrystal.h)
-> candidates: [LiquidCrystal@1.0.7]
"C:\\Users\\fount\\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=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\fount\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\cores\\arduino" "-IC:\\Users\\fount\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\variants\\standard" "-IC:\\Users\\fount\\AppData\\Local\\Arduino15\\libraries\\LiquidCrystal\\src" "C:\\Users\\fount\\AppData\\Local\\Temp\\arduino-sketch-D3BAC05FC74E8571A405C08E3845FEEB\\sketch\\MAQ-3_sep09b.ino.cpp" -o nul
Alternatives for Wire.h: [Wire@1.0]
ResolveLibrary(Wire.h)
-> candidates: [Wire@1.0]
"C:\\Users\\fount\\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=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\fount\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\cores\\arduino" "-IC:\\Users\\fount\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\variants\\standard" "-IC:\\Users\\fount\\AppData\\Local\\Arduino15\\libraries\\LiquidCrystal\\src" "-IC:\\Users\\fount\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\libraries\\Wire\\src" "C:\\Users\\fount\\AppData\\Local\\Temp\\arduino-sketch-D3BAC05FC74E8571A405C08E3845FEEB\\sketch\\MAQ-3_sep09b.ino.cpp" -o nul
Alternatives for EEPROM.h: [EEPROM@2.0]
ResolveLibrary(EEPROM.h)
-> candidates: [EEPROM@2.0]
"C:\\Users\\fount\\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=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\fount\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\cores\\arduino" "-IC:\\Users\\fount\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\variants\\standard" "-IC:\\Users\\fount\\AppData\\Local\\Arduino15\\libraries\\LiquidCrystal\\src" "-IC:\\Users\\fount\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\libraries\\Wire\\src" "-IC:\\Users\\fount\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\libraries\\EEPROM\\src" "C:\\Users\\fount\\AppData\\Local\\Temp\\arduino-sketch-D3BAC05FC74E8571A405C08E3845FEEB\\sketch\\MAQ-3_sep09b.ino.cpp" -o nul
Using cached library dependencies for file: C:\Users\fount\AppData\Local\Arduino15\libraries\LiquidCrystal\src\LiquidCrystal.cpp
Using cached library dependencies for file: C:\Users\fount\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\libraries\Wire\src\Wire.cpp
Using cached library dependencies for file: C:\Users\fount\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\libraries\Wire\src\utility\twi.c
Generating function prototypes...
"C:\\Users\\fount\\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=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\fount\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\cores\\arduino" "-IC:\\Users\\fount\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\variants\\standard" "-IC:\\Users\\fount\\AppData\\Local\\Arduino15\\libraries\\LiquidCrystal\\src" "-IC:\\Users\\fount\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\libraries\\Wire\\src" "-IC:\\Users\\fount\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\libraries\\EEPROM\\src" "C:\\Users\\fount\\AppData\\Local\\Temp\\arduino-sketch-D3BAC05FC74E8571A405C08E3845FEEB\\sketch\\MAQ-3_sep09b.ino.cpp" -o "C:\\Users\\fount\\AppData\\Local\\Temp\\arduino-sketch-D3BAC05FC74E8571A405C08E3845FEEB\\preproc\\ctags_target_for_gcc_minus_e.cpp"
"C:\\Users\\fount\\AppData\\Local\\Arduino15\\packages\\builtin\\tools\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\\Users\\fount\\AppData\\Local\\Temp\\arduino-sketch-D3BAC05FC74E8571A405C08E3845FEEB\\preproc\\ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"C:\\Users\\fount\\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=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\fount\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\cores\\arduino" "-IC:\\Users\\fount\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\variants\\standard" "-IC:\\Users\\fount\\AppData\\Local\\Arduino15\\libraries\\LiquidCrystal\\src" "-IC:\\Users\\fount\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\libraries\\Wire\\src" "-IC:\\Users\\fount\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.5\\libraries\\EEPROM\\src" "C:\\Users\\fount\\AppData\\Local\\Temp\\arduino-sketch-D3BAC05FC74E8571A405C08E3845FEEB\\sketch\\MAQ-3_sep09b.ino.cpp" -o "C:\\Users\\fount\\AppData\\Local\\Temp\\arduino-sketch-D3BAC05FC74E8571A405C08E3845FEEB\\sketch\\MAQ-3_sep09b.ino.cpp.o"
Compiling libraries...
Compiling library "LiquidCrystal"
Using previously compiled file: C:\Users\fount\AppData\Local\Temp\arduino-sketch-D3BAC05FC74E8571A405C08E3845FEEB\libraries\LiquidCrystal\LiquidCrystal.cpp.o
Compiling library "Wire"
Using previously compiled file: C:\Users\fount\AppData\Local\Temp\arduino-sketch-D3BAC05FC74E8571A405C08E3845FEEB\libraries\Wire\utility\twi.c.o
Using previously compiled file: C:\Users\fount\AppData\Local\Temp\arduino-sketch-D3BAC05FC74E8571A405C08E3845FEEB\libraries\Wire\Wire.cpp.o
Compiling library "EEPROM"
Compiling core...
Using precompiled core: C:\Users\fount\AppData\Local\Temp\arduino-core-cache\core_arduino_avr_uno_d71337e336b30a5fe94a378f43a5d41d.a
Linking everything together...
"C:\\Users\\fount\\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\\fount\\AppData\\Local\\Temp\\arduino-sketch-D3BAC05FC74E8571A405C08E3845FEEB/MAQ-3_sep09b.ino.elf" "C:\\Users\\fount\\AppData\\Local\\Temp\\arduino-sketch-D3BAC05FC74E8571A405C08E3845FEEB\\sketch\\MAQ-3_sep09b.ino.cpp.o" "C:\\Users\\fount\\AppData\\Local\\Temp\\arduino-sketch-D3BAC05FC74E8571A405C08E3845FEEB\\libraries\\LiquidCrystal\\LiquidCrystal.cpp.o" "C:\\Users\\fount\\AppData\\Local\\Temp\\arduino-sketch-D3BAC05FC74E8571A405C08E3845FEEB\\libraries\\Wire\\Wire.cpp.o" "C:\\Users\\fount\\AppData\\Local\\Temp\\arduino-sketch-D3BAC05FC74E8571A405C08E3845FEEB\\libraries\\Wire\\utility\\twi.c.o" "C:\\Users\\fount\\AppData\\Local\\Temp\\arduino-sketch-D3BAC05FC74E8571A405C08E3845FEEB/..\\arduino-core-cache\\core_arduino_avr_uno_d71337e336b30a5fe94a378f43a5d41d.a" "-LC:\\Users\\fount\\AppData\\Local\\Temp\\arduino-sketch-D3BAC05FC74E8571A405C08E3845FEEB" -lm
"C:\\Users\\fount\\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\\fount\\AppData\\Local\\Temp\\arduino-sketch-D3BAC05FC74E8571A405C08E3845FEEB/MAQ-3_sep09b.ino.elf" "C:\\Users\\fount\\AppData\\Local\\Temp\\arduino-sketch-D3BAC05FC74E8571A405C08E3845FEEB/MAQ-3_sep09b.ino.eep"
"C:\\Users\\fount\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy" -O ihex -R .eeprom "C:\\Users\\fount\\AppData\\Local\\Temp\\arduino-sketch-D3BAC05FC74E8571A405C08E3845FEEB/MAQ-3_sep09b.ino.elf" "C:\\Users\\fount\\AppData\\Local\\Temp\\arduino-sketch-D3BAC05FC74E8571A405C08E3845FEEB/MAQ-3_sep09b.ino.hex"
Using library LiquidCrystal at version 1.0.7 in folder: C:\Users\fount\AppData\Local\Arduino15\libraries\LiquidCrystal
Using library Wire at version 1.0 in folder: C:\Users\fount\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\libraries\Wire
Using library EEPROM at version 2.0 in folder: C:\Users\fount\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.5\libraries\EEPROM
"C:\\Users\\fount\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-size" -A "C:\\Users\\fount\\AppData\\Local\\Temp\\arduino-sketch-D3BAC05FC74E8571A405C08E3845FEEB/MAQ-3_sep09b.ino.elf"
Sketch uses 6410 bytes (19%) of program storage space. Maximum is 32256 bytes.
Global variables use 643 bytes (31%) of dynamic memory, leaving 1405 bytes for local variables. Maximum is 2048 bytes.
`
ⓘ If looking for it with your file browser or command line, note that the C:\Users\fount\AppData\ folder is hidden by default. On Windows "File Explorer", you can make it visible by opening the "View" menu, then checking the box next to "☐ Hidden items".
So what is the problem in reply #13? : I don't understand ? I tried to say that now i have a much better understanding of how it works after your explanation and i checked that the Arduino drivers are uploaded each time when i plug my UNO card. The ( or these) arduino port remains in grey, in the device manager, if the board is not plugged ( after checking the Hidden items of the view menu ).
Now concerning the drivers i don't find where the line :
Drivers have nothing to do with compilation; the output that you show in reply #13 and reply #16 is the output of the verify (compilation) process. There is no sign of an upload attempt in that output.
Drivers are also not uploaded and you will never see them in the verification output or the upload output. They are installed on your computer and that is it.
You might not have installed them. If windows shows an unknown device, you can install them (not sure of the steps as I'mnot behind a PC) by telling device manager where they are (see reply by @ptillisch).
OK sorry, i misunderstood , drivers are as said located in " users/ ..."
ptillishsaid " I'd need a little more information before I could do that though: showing me how to post the "verify/compile" stuff, and then i was expecting to find some proof of the action of the drivers there.
As i said for the moment everything works fine again , the device manager shows in grey the arduino port as far as the UNO is not connected to the pc.
If the problem mentionned initially occurs again, I conclude that i have then no way to find a trace of the use of these drivers ( assuming that drivers have already been installed in " users/ ..." ).
The only way is to ask you again some help ...
You can see that i am not familiar with how things operate but I learned a bit, thanks again.