Arduino Uno and Windows 10 Device Manager are showing different port connections. There is only one choice in the IDE > tools > port, being Com4. However at the bottom of the IDE it says "Arduino Uno on Com1"
In Windows device manager under ports it shows Arduino Uno being connected to Com4. Com4 is the only port showing up in device manager > ports so I cannot upload any sketches at all and get this error with verbose output. Can anyone help me please. I am using an old version 1.6.0 but this also happens with the latest version too. I need the older version for a specific project.
Com4 is the only port showing up in device manager > ports so I cannot upload any sketches at all and get this error with verbose output.
Which error?
Did you actually select com4 in the Ports menu? Just because it’s the only port listed doesn’t mean that the ide will select it automatically for you.
sterretje:
Which error?
Opps sorry about that. I will post the error when I get back to work tomorrow.
westfw:
Did you actually select com4 in the Ports menu? Just because it’s the only port listed doesn’t mean that the ide will select it automatically for you.
When I click ports in the IDE, Com4 is the only port available. I will post the error output that I am getting in the morning and thanks for the replies gents.
COM 1 and 2 are DEFAULT ports that windows installs.
You can almost certainly IGNORE those.
Arduino's tend to show up from COM 3 upwards depending on what else has been also installed as a COM port.
If you unplug you Arduino with device manager open and also have the correct drivers / board cores installed you will see the proper com port appear of dissapear.
Some clones require you to not only select the board but also the COM port in order to use it.
Simply telling windows that it is an arduino on that port if more often the WRONG way to do it.
ALWAYS use the IDE to do that.
westfw:
Did you actually select com4 in the Ports menu? Just because it’s the only port listed doesn’t mean that the ide will select it automatically for you.
OP did not Still shows COM1 in the status bar at the bottom of the IDE
sterretje:
OP did notStill shows COM1 in the status bar at the bottom of the IDE
Well actually when I click Ports in the IDE only Com4 shows which is the port that Windows shows in device manager. Refer to my two images There are no other ports available to select. Error message with verbose output enabled for upload is
Arduino: 1.6.0 (Windows 8), Board: "Arduino Uno"
Sketch uses 1,030 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\PETERN~1\AppData\Local\Temp\build3931605540031484721.tmp/Blink.cpp.hex:i
avrdude: Version 6.0.1, compiled on Apr 3 2014 at 23:12:16
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2009 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.
This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
The sketch will compile OK (just using blink to test)
The way that I see it, for some reason the IDE is expecting to see the UNO on COM1 whereas it is on Com4 I.E - "avrdude: ser_open(): can't open device "\.\COM1": The system cannot find the file specified"
I have never had any Arduino device assigned to Com1, it never happens in my experience
You will have to click on that port in the IDE menu.
sterretje:
You will have to click on that port in the IDE menu.
Sorry not understanding. If I click on ports in the IDE, Com4 is the only one available. If I click on Com4 nothing else is made available but from my recollection nothing ever was. I haven't used all of this for about 18 months but I am sure that my memory isn't that bad I even went into device manager, right clicked on Com4 > Properties > Port settings > Advanced and changed the Port to Com1 seeing as that seems to be a what was showing at the bottom of the IDE. Still compiles OK but this error on upload
Using Port : COM1
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=0x01
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x01
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x01
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x01
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x01
avrdude: ser_open(): can't open device "\\.\COM1": The system cannot find the file specified
"
DO NOT SELECT COM 1 !
DO NOT SELECT COM 1 !
I normally wouldn't but in the light of any other suggestions I thought that I would give it a try seeing as the IDE seemed to be indicating that is the Com port it was connected to ? Well actually the IDE was showing Com4 in the ports menu and Com1 at the bottom. The error code suggest that it is seeing the Uno on Com1 the way that I read it ?
That looks like you have MANUALLY changed the COM ports inside windows.
You might as well reset the COM STACK to undo any changes you may have made..
Open the command windows as ADMINISTRATOR.
set DEVMGR_SHOW_NONPRESENT_DEVICES=1
devmgmt.msc
Remove ALL COM ports manually.
Restart the computer.
So open command prompt as Admin an run this command ?
set DEVMGR_SHOW_NONPRESENT_DEVICES=1
then
devmgmt.msc
All that does is open Device manager which I already know how to do or am I misunderstanding (most likely)
You say "Remove ALL COM ports manually" How do I do that please?
In all six pages of that Microsoft Answers link that you referred me to I fail to see a feasible answer but maybe I missed it.
So I went to device manager > view > show hidden devices and uninstalled the two devices that had been assigned to ports. Still having the same issue after a restart
You remove the com ports the same way you remove any other item from device manager. (google it if needed)
Yes I missed the SHOW HIDDEN DEVICES part. My bad but it is mentioned via the link which is the best method out there to remove unused and other hardware. You should remove ALL the COM ports !
Also missed that it is SAFE to also tick the REMOVE DRIVERS too as windows will pick up drivers after the restart.
Make sure you certainly RESTART the computer as soon as you have finished removing hardware from DM.
Thanks for all the suggestions but none of it does anything. Now shows Com3 in IDE ports tab and Com1 at the bottom of the IDE
Ok so NOW in the BOARD MANAGER in the IDE select both the board type AND the correct COM port being COM 3.
Then select from the EXAMPLES SKETCHES BLINK and change the delay times so you can be sure it is your version of BLINK and try to upload.
Com 3 is almost always the first Arduino to be connected to a fresh windows system with a CLEAN COM STACK.
Note that my COM 3 was an Arduino 101 which was the first board I connected.
There is no board manager tab, never has been that I can recall. Only Tools and there you can select board which I have set at Uno. For Com port there are no choices available, only Com3. It still says Com1 at the bottom of the IDE and I will guarantee that if I try and upload blink I will get the same error code as before. For some reason it appears that the IDE is looking for it on Com1. DM still showing Uno on Com3
did you actually select com 3 in the IDE ?
Also is there any reason you are using such an OLD IDE ?