Go Down

Topic: Windows 10 can't open device "\\.\COM1" (Read 18879 times) previous topic - next topic

hrh1919

I am using Windows 10, an Arduino Uno and COM port is COM3.  When uploading the Blink  sketch the error message " can't open device "\\.\COM1" " pops up.  I don't understand why Arduino says cam't open COM1.   The Tools menu and the Device Manager both say the Arduino Uno is connected to COM3.  This problem occurs with both the 1.6.5 and !.7.6 versions of the IDE. 

I can't use Device Manager to change the COM port from 3 to 1 as Windows 10 says COM Port 1 is  being used. This  "can't open device "\\.\COM1" " problem appears to be a Windows 10 problem.  No COM port problems occur when using Windows 7.

liuzengqiang

I am using win 10. I didn't encounter this problem. What arduino UNO version do you have? I'll try R2 later to see if it reports similar error. I've used mega 2560 and ftdi based arduinos on win 10 without any problems. What about deleting the com port 3 and reinstalling?
Serial LCD keypad panel,phi_prompt user interface library,SDI-12 USB Adapter

hrh1919

I get the same error message when using a Uno R3 with COM port 3 and a Uno R2 with COM port 4.  Your comment makes e suspect it is a driver problem.  latter today I will try using a Leonardo.

Thank you for your reply
hrh1919

DrAzzy

#3
Aug 24, 2015, 08:44 pm Last Edit: Aug 24, 2015, 08:45 pm by DrAzzy
Not encountering this issue on either of my Win10 machines.

Turn on Verbose Upload in preferences, and post the output.

You should be using 1.6.x; that's the latest version of the real IDE. The 1.7.x are the IDE versions from the renegade arduino people.
ATtiny core for 841+1634+828 and x313/x4/x5/x61/x7/x8 series Board Manager:
http://drazzy.com/package_drazzy.com_index.json
ATtiny breakouts (some assembled), mosfets and awesome prototyping board in my store http://tindie.com/stores/DrAzzy

hrh1919

With both the Arduino Leonardo and the Arduino YUN I can successfully upload and run a sketch if I press the Reset button after initiating the upload.  If I don't press the Reset button the IDE says "Couldn't find a Board on the selected port".


 With a MEGA the IDE says :Problem uploading to board.  See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.

Verbose output when uploading

C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude
 -CC:\Program Files
 (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf
 -v -patmega328p -carduino -PCOM3 -b115200 -D
 -Uflash:w:C:\Users\Howard\AppData\Local\Temp
 \build2820958707507617326.tmp/sketch_aug24a.cpp.hex:i

avrdude: Version 6.0.1, compiled on Apr 15 2015 at 19:59:58
         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                    : COM3
         Using Programmer              : arduino
         Overriding Baud Rate          : 115200
         AVR Part                      : ATmega328P
         Chip Erase delay              : 9000 us
         PAGEL                         : PD7
         BS2                           : PC2
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 200
         StabDelay                     : 100
         CmdexeDelay                   : 25
         SyncLoops                     : 32
         ByteDelay                     : 0
         PollIndex                     : 3
         PollValue                     : 0x53
         Memory Detail                 :

                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom        65    20     4    0 no       1024    4      0  3600  3600 0xff 0xff
           flash         65     6   128    0 yes     32768  128    256  4500  4500 0xff 0xff
           lfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           efuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           lock           0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00

         Programmer Type : Arduino
         Description     : Arduino
         Hardware Version: 3
         Firmware Version: 4.4
         Vtarget         : 0.3 V
         Varef           : 0.3 V
         Oscillator      : 28.800 kHz
         SCK period      : 3.3 us

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e950f
avrdude: reading input file "C:\Users\Howard\AppData\Local\Temp
\build2820958707507617326.tmp/sketch_aug24a.cpp.hex"
avrdude: writing flash (450 bytes):

Writing | ################################################## | 100% 0.08s

avrdude: 450 bytes of flash written
avrdude: verifying flash memory against
 C:\Users\Howard\AppData\Local\Temp\build2820958707507617326.tmp/sketch_aug24a.cpp.hex:
avrdude: load data flash data from input file
 C:\Users\Howard\AppData\Local\Temp\build2820958707507617326.tmp/sketch_aug24a.cpp.hex:
avrdude: input file C:\Users\Howard\AppData\Local\Temp
\build2820958707507617326.tmp/sketch_aug24a.cpp.hex contains 450 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 0.07s

avrdude: verifying ...
avrdude: 450 bytes of flash verified

avrdude done.  Thank you.

But when using the Verbose output format the IDE says "Done Uploading" , The Verbose message was printed in Red and the there is no blinking LED.

Yes I am using 1.6.5 and the Blink sketch.

hrh1919

hrh1919

Following the advice given above I uninstalled the driver and Arduino version 1.6.5.  Reinstalling Arduino version 1.6.5 fixed the problem.  No error messages when uploading and Blink is blinking.

hrh1919

liuzengqiang

Following the advice given above I uninstalled the driver and Arduino version 1.6.5.  Reinstalling Arduino version 1.6.5 fixed the problem.  No error messages when uploading and Blink is blinking.

hrh1919
Do you mean you uninstalled arduino.org IDE 1.7 and installed Arduino.cc IDE 1.6.5? We might see more problems like this so I wanted to make sure we have a viable solution to it. Thanks for reporting back.
Serial LCD keypad panel,phi_prompt user interface library,SDI-12 USB Adapter

hrh1919

The first installation was version 1.6.5 and it produced the "can't open device "\\.\COM1" error message.  After that I switched several times between versions 1.6.5 and 1.7.6.   Each time I switched versions the new version would uninstall the prior version.   It appears that uninstalling and installing does not replace the prior driver. Only with the last uninstall install cycle did I uninstall the driver prior to running a uninstall install cycle   Hence for me the magic bullet was first uninstall the driver.

hrh1919

robin1982

I'm running windows 10 and can't get the ide to load. Keeps telling me the bundled java runtime environment is not installed or is corupt.

liuzengqiang

I'm running windows 10 and can't get the ide to load. Keeps telling me the bundled java runtime environment is not installed or is corupt.
You have a different problem. Start a new thread.
Serial LCD keypad panel,phi_prompt user interface library,SDI-12 USB Adapter

gedarius

I solved this problem running the IDE as Administrator.... worked for me

Muskateer

I think this is an old thread. But, I had the same problem with Windows 10 today. The problem for me was that I didn't set the IDE to the proper board. I have a 2560 Mega board, the default was set to a different development board. You have to go under Tools and select the board (this is separate from selecting the port0.

SenBySen

 :) great help for us to get started. Christmas present works now.

Go Up