Arduino Forum

Using Arduino => Installation & Troubleshooting => Topic started by: Holografik on Feb 20, 2015, 07:54 pm

Title: avrdude: ser_open(): can't open device "\\.\com3":
Post by: Holografik on Feb 20, 2015, 07:54 pm
Hi,

here is my situation - I got my first Arduino(Uno) last week. I successfully uploaded and ran quite a few programs on it. Only today when I connected it to my computer, I got this error-avrdude: ser_open(): can't open device "\\.\com3": the system cannot find the file specified....

 The "port" under tools menu is grayed out, even with the board connected. It used list COM3, if I had the board connected before. Now I can't find the Arduino in the device manager either!

I was working on an obstacle avoiding bot, and I uploaded a code for it last night. When I connect the Arduino to my computer, the power LED glows and that code runs. I wanted to change the code a bit tonight, but couldn't because of this problem.

I am running 64 bit Windows 8.1. My brother has the same OS. After some frustration with this, I connected the Arduino to his laptop for the first time only to get more frustrated - its the same problem there. No drivers start getting installed, the device manager doesn't show any new devices. It's as if the computers don't know if anything got connected to them!

I hope I could make my problem clear. Any help would be greatly appreciated. As I already said, this is my first Arduino, so you can assume I have virtually no experience with micro-controllers before.
Title: Re: avrdude: ser_open(): can't open device "\\.\com3":
Post by: ChilliTronix on Feb 20, 2015, 11:26 pm
Is there anything other than the computer connected to the board? For example the robot?
Title: Re: avrdude: ser_open(): can't open device "\\.\com3":
Post by: Holografik on Feb 21, 2015, 08:09 am
I've tried plugging it to the computer keeping it connected to the robot, and also without keeping it connected to anything else. When I have the robot connected I can see the last program running (the motors turn the way they should). But in either case the computer doesn't recognize anything new plugged to it.
Title: Re: avrdude: ser_open(): can't open device "\\.\com3":
Post by: ChilliTronix on Feb 21, 2015, 09:27 am
OK... Do you know what USB to serial chip it has? It is the one closest the USB to serial port. If you can't tell post a picture of the board or a link to where the board came from.
Title: Re: avrdude: ser_open(): can't open device "\\.\com3":
Post by: Holografik on Feb 21, 2015, 11:06 am
This is where I got it from - https://www.techshopbd.com/product-categories/boards/1253/arduino-uno-r3-china-techshop-bangladesh

It is an UNO R3, so is it supposed to be 16u2? I think I can faintly read 16u2 on the chip.
Title: Re: avrdude: ser_open(): can't open device "\\.\com3":
Post by: Holografik on Feb 22, 2015, 08:47 am
After looking up a bit, I found this - http://forums.adafruit.com/viewtopic.php?f=25&t=25146. So I tried following the instruction here - http://arduino.cc/en/Hacking/DFUProgramming8U2.

But now, when I run FLIP and try to select usb as my connection, I get a "atlibusbdfu.dll not found" error, although the file is there in both C:\Program Files (x86)\Atmel\Flip 3.4.7\bin and System32.

What do I do now? I am utterly clueless.
Title: Re: avrdude: ser_open(): can't open device "\\.\com3":
Post by: peki on Feb 22, 2015, 10:35 am
folks, I have the same problem. a months unable to alive arduino on my home comp. think problem is Win8.1 and driver. yesterday uploaded new driver 1.6.0, and first success. part. I am now testing 3 MEGA boards, 2 USB cables. problem is in COM ports, the same report. one board is running. on bottom status line is Arduino ... on COM4, Tools/Port says COM4, WIndows says Arduino on COM4. this one is working. Unplug and plug next MEGA : bottom status line : Arduino ...on COM4, Tools/Port says COM5, WIndows Arduino COM5. : can't open device "\\.\COM4":
Unplug and plug next MEGA, result :  bottom status line : Arduino ...on COM4, Tools/Port says COM3, WIndows Arduino COM3. : can't open device "\\.\COM4":
switch off and on software, switch off and on windows donĀ“t help, the same result.
how to match bottom status line and Tools/Port report?
Title: Re: avrdude: ser_open(): can't open device "\\.\com3":
Post by: peki on Feb 24, 2015, 03:33 am
Tested on another comp with XP, and next 3 MEGA boards . Result the same . One board have fit of bottom status bar : Arduino...on com4, and Tools/Port Com4. This one works. All next boards have another Tool/Port - com3, com5, com6, com7, while bottom status line show com4. And no one board response.
What to do?
Title: Re: avrdude: ser_open(): can't open device "\\.\com3":
Post by: ChilliTronix on Feb 24, 2015, 09:37 am
When you disconnect and re connect a board you may need to re select a port in the IDE.
Title: Re: avrdude: ser_open(): can't open device "\\.\com3":
Post by: peki on Feb 26, 2015, 11:00 pm
YES. Chilli, thanks. fix this is just click on Tools/Port info about port - this will match COM port in status line. this took me about 8 hours of testing = some days to find. hmmm
Title: Re: avrdude: ser_open(): can't open device "\\.\com3":
Post by: ChilliTronix on Feb 26, 2015, 11:57 pm
YES. Chilli, thanks. fix this is just click on Tools/Port info about port - this will match COM port in status line. this took me about 8 hours of testing = some days to find. hmmm
I am pleased you know have it fixed...
Title: Re: avrdude: ser_open(): can't open device "\\.\com3":
Post by: DanEGood on Apr 16, 2015, 06:51 pm
I've got the same problem. It worked fine and then it stopped.
It says COM3 at the bottom of the IDE but get this error when I try to upload the file. The Com Port options are greyed out and so can't select it under TOOLS.
I'm still not sure what you did to fix this.
I'm running Windows 8.1 and Arduino IDE 1.6.1
Title: Re: avrdude: ser_open(): can't open device "\\.\com3":
Post by: DanEGood on Apr 16, 2015, 07:33 pm
I upgraded to IDE 1.6.3 and rebooted.  When I ran the IDE, I had the COM3 under the Ports but as soon as I try to upload a file to the Arduino, i get the error and the Port selection grays out. even after shutting down and restarting, the Ports are grayed out.

UGH !!!
Title: Re: avrdude: ser_open(): can't open device "\\.\com3":
Post by: DanEGood on Apr 16, 2015, 08:31 pm
Never Mind......
There was a wiring error, shorting the Vcc. My Bad.
Note to self, "Check your hardware !!"
Title: Re: avrdude: ser_open(): can't open device "\\.\com3":
Post by: innavoig3 on Apr 26, 2015, 05:23 pm
Has anybody solved this problem?

I got almost an exact problem. But, mine is on Windows 7-32bit. I'm using arduino uno R3. The last time i use the board, it was fine. Today, i was just trying to blink an LED, but the program wont upload to the board and there's the message: "avrdude: ser_open(): can't open device "\\.\COM3": The system cannot find the file specified."

Ports menu is greyed out. Device manager wont show anything connected, anywhere i plugged it wont be detected.




Title: Re: avrdude: ser_open(): can't open device "\\.\com3":
Post by: FredKD on Apr 26, 2015, 05:49 pm
Had similar problem yesterday with my UNO R3. See my reply comment (#3 - FredKD) on "port selection in tools is grayed out". Once I refreshed my "ports" driver on my PC everything began running ok. I ran across a comment somewhere that said that, sometimes, communications with the Serial Monitor gets corrupted and may cause this "port" issue.
Title: Re: avrdude: ser_open(): can't open device "\\.\com3":
Post by: pgscherer on Apr 27, 2015, 01:59 pm
Guys, sorry to insist on the same issue, but I've tried pretty much everything in every forum or tutorial and no success.
I borrowed my brother's Arduino, actually Makerduino Uno V3, from Makerstudio. Their site says it uses FT232 instead of ATMega 16u2.
When I first plugged the board to my laptop, Windows 8.1 64 bits, it automatically completed the instalation and I was able to upload Blink. After disconnecting the board and reconnecting, it no longer worked. When I connect it, device manager shows 'FT232R UART' as an unknown device. If I install Arduino Uno R3 driver, or any other Arduino driver, it will give me an error message, device manager will show the yellow exclamation mark (as in attached pic1.jpg), and Arduino IDE Ports menu will appear grayed out (pic2.jpg). If I change the driver to FTDI, it won't show the error message or the yellow mark. Device manager will show USB Serial Port (pic3.jpg) and the port number will appear normally on Arduino IDE Ports menu (pic4.jpg). But it won't upload anything to the board! Now the error messages appear on the IDE, and are different when I try to upload a sketch (pic5.jpg) or the bootloader (pic6.jpg).

Could  you, please, help?

Thanks!
Title: Re: avrdude: ser_open(): can't open device "\\.\com3":
Post by: paralaile on Jun 11, 2015, 09:17 am
Hello,
have you selected in Tools the type of the board?
(sorry for my English)
Title: Re: avrdude: ser_open(): can't open device "\\.\com3":
Post by: csmiley on Aug 03, 2015, 06:24 pm
I am having the same problem with my Arduino UNO...it was working fine the first day I installed it, but then the next day my PORT was grayed out and when I tried to upload the sketch, the same error message appeared. 
I think the problem lies with Windows 8.  I found a u-tube video through another post that seems to temporarily work: https://www.youtube.com/watch?v=CdE72XUYC7k
Basically you are tricking the computer to think your arduino is a modem...I have no idea how they figured that all out.
The problem is, I have to repeat this whole procedure every time I restart my computer.  I switch to another COM # every time.  I'm really hoping Windows 10 doesn't have this issue.   
Title: Re: avrdude: ser_open(): can't open device "\\.\com3":
Post by: pdd33734 on Oct 12, 2015, 11:43 pm
  I purchased a "Genuine" Arduino Uno and played around with it, and did not have communication problems with it. I put it into a project while I purchased a replacement for it so that I could get it back, and, continue to experiment with it.
  I bought the "replacement" Arduino from the same location that I bought my parts for the project. The replacement(s), an aftermarket Nano and ATMega2560 are both giving me "avrdude: ser_open(): can't open device "\\.\COM3": The system cannot find the file specified."
  Soooo, my questions are: (1) What file is it looking for?, and (2) Why does this problem still exist (since 2009)? Clearly I am not the first person to encounter this problem, but, I sit here researching this problem on the web, and in this forum for a solution, none of which seem to apply to my situation.
  I am using a Dell laptop w/ Windows 7, Arduino IDE 1.6.5, and a Nano ATMega328 v3 compatible. I was simply trying to verify operational state before I substitute this device in place of my Uno. This device has never been tampered with by me. I just opened the ESD bag, plugged it into the computer/IDE and tried to load "Blink". I did identify the "board" and "processor" for the IDE, but, COM was (and still is) grayed out. It identified the connection as a "USB2.0-Serial" device on COM 3. No existing COM conflicts appear to exist. It does say the driver is not installed! Soooo, where is the driver?
  I have tried every feasible driver search and install, to no avail. What do I do next?
Title: Re: avrdude: ser_open(): can't open device "\\.\com3":
Post by: Bella1 on Oct 15, 2015, 01:14 pm
Hi!

I have a pretty similar problem. Arduino MEGA 2560 R3 and RAMPS 1.4 board came to me with "Prusa i2 3D printer DIY set" to plug in like on this schematics: http://3dprinter.my/abante/resources/image/18/a2/9.png (http://3dprinter.my/abante/resources/image/18/a2/9.png). Working on Win7 (64bit) MSI laptop, I downloaded newest stable Marlin package, putted it into Arduino IDE, picked right board and processor type, and finally tried to upload, but 'Tools/Ports' was greyed out from very beginning, so it turned back with an error:
Code: [Select]


avrdude: ser_open(): can't open device "\\.\COM1": can't open device.

(and in effect:)

avrdude: ser_drain(): read error: invalid path.

When plugging printer to laptop, it's identified as "USB2.0-Serial", localised in Port_#0002.Hub_#0001 and cant's find drivers (code 28). You can switch it's ID in properties to Arduino Mega 2560 and update drivers, but then it can't start (code 10).

I tried updating drivers in Device Manager, disabling WiFi and Bluetooth, hiting Restart button on MEGA, restarting IDE, printer and laptop (it's Windows after all) and nothing changed. I'm out of ideas. Please help!
Title: Re: avrdude: ser_open(): can't open device "\\.\com3":
Post by: Revoir on Oct 28, 2015, 11:13 am
I had this same problem but I went into device manager unistalled the drivers for the "faulty" board and it automatically switched from com8 to com3 and it seemed to be working fine.
Title: Re: avrdude: ser_open(): can't open device "\\.\com3":
Post by: stevo4705 on Mar 10, 2016, 07:40 pm
i actually had the same problem that all of you have, and my fix was as simple as uploading the sketch with out anything connected to the arduino except the USB cable.
Title: Re: avrdude: ser_open(): can't open device "\\.\com3":
Post by: vbbartlett on Mar 17, 2016, 04:40 am
I also have the same problem.  My board was working fine and then in the device manager I disabled it.  That is when everything became problematic.  Im on windows 10 and the device manager acts differently than previous version.  I constantly get "Unknown USB Device( Device Description Request Failed)"  To get it to show I had to hold the reset down while plugging in and then release it (Timing is everything...).  Once I was able to get it connected, I had to enable it again.
But I now have to use the same reset technique to connect. This allows the Arduino Uno to be somehow get a Device Description and it is registered to Com3. 

But this still doesn't fix the can't set com-state msg, which is what I get when attempt to upload an empty program.

Any one have similar problems?


Title: Re: avrdude: ser_open(): can't open device "\\.\com3":
Post by: SivaN on Apr 06, 2016, 03:01 am
could not get my USB 3 to work. switched to USB 2 and......works
Title: Re: avrdude: ser_open(): can't open device "\\.\com3":
Post by: ljfaraci on Apr 10, 2016, 09:31 pm
had the same problem with com1: in Windows 10


avrdude: ser_open(): can't open device "\\.\COM1": The system cannot find the file specified.


updated all my drivers - still an issue.

Looked at the device manager (devmgmt.msc) for "ports (COM & LPT)" and found Arduino was on COM3.

Had to modify the preferences.txt file to fix the problem

preferences.txt file path found in file>preferences menu when Arduino is running.

To modify the text file, shut down Arduino and modify the file in notepad.

Line to modify is "serial.port=COM1"  changed to "serial.port=COM3" and saved file

Fixed.


Title: Re: avrdude: ser_open(): can't open device "\\.\com3":
Post by: padmanabhank on Apr 29, 2016, 07:30 am
Hi,

here is my situation - I got my first Arduino(Uno) last week. I successfully uploaded and ran quite a few programs on it. Only today when I connected it to my computer, I got this error-avrdude: ser_open(): can't open device "\\.\com3": the system cannot find the file specified....

 The "port" under tools menu is grayed out, even with the board connected. It used list COM3, if I had the board connected before. Now I can't find the Arduino in the device manager either!

I was working on an obstacle avoiding bot, and I uploaded a code for it last night. When I connect the Arduino to my computer, the power LED glows and that code runs. I wanted to change the code a bit tonight, but couldn't because of this problem.

I am running 64 bit Windows 8.1. My brother has the same OS. After some frustration with this, I connected the Arduino to his laptop for the first time only to get more frustrated - its the same problem there. No drivers start getting installed, the device manager doesn't show any new devices. It's as if the computers don't know if anything got connected to them!

I hope I could make my problem clear. Any help would be greatly appreciated. As I already said, this is my first Arduino, so you can assume I have virtually no experience with micro-controllers before.
********PROBLEM SOLVED (For me atleast)********
1. Reconnect the board to another USB port.
2. Look at the bottom left corner of the screen once the board is connected. It should display a message on the lines of - "Installed Drivers Successfully for Arduino COM(*number*)
3. Note down the number attached to COM. In my case it was 7.
4. Open the file "preferences.txt" from the preferences menu in the arduino console, and then close the console.
5. Scroll down to - serial.port = COM1. Change the '1' to the number that you noted down earlier.
6. Reopen Arduino and it should work. Voila.
Hope this helps :-)
Title: Re: avrdude: ser_open(): can't open device "\\.\com3":
Post by: hassen_tayech on May 11, 2016, 10:54 am
 i did solve the problem guys,

go to control panel in windows, and uninstall the com driver that arduino is using

unplug the arduino and plug it again and it will install the com driver automatically

go in arduino software to TOOLS then PORT and check the new com that says where the arduino board is connected

and done :)
Title: Re: avrdude: ser_open(): can't open device "\\.\com3":
Post by: xrabidkatzx on Jun 30, 2016, 05:47 am
THANKS SO MUCH Peki SERIOUSLY I WAS ABOUT TO BUY A NEW ATMEGA
Title: Re: avrdude: ser_open(): can't open device "\\.\com3":
Post by: LanGenz on Feb 06, 2017, 04:17 pm
I have a simple solution that worked for me ... I changed my USB cable and it worked again
Title: Re: avrdude: ser_open(): can't open device "\\.\com3":
Post by: SAnwandter1 on Mar 26, 2017, 11:58 pm
Try This it Worked for me.
Good Luck!!  ;)

http://www.jormc.es/2014/10/24/arduino-avrdude-ser_open-cant-open-device-com3-access-is-denied/
Title: Re: avrdude: ser_open(): can't open device "\\.\com3":
Post by: aadhyachukkala on Aug 23, 2017, 04:20 pm
arduino-builder/arduino-builder -compile -core-api-version 10611 -build-path /tmp/515525502 -hardware arduino-builder/hardware -hardware arduino-builder/packages/cores -tools arduino-builder/tools -tools arduino-builder/packages/tools -built-in-libraries arduino-builder/latest -libraries /tmp/390776795/pinned -libraries /tmp/390776795/custom -fqbn arduino:avr:uno -build-cache /tmp -verbose=false /tmp/390776795/Blink

Sketch uses 928 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.

Flashing with command:C:/Users/WELCOME/.arduino-create/arduino/avrdude/6.3.0-arduino9/bin/avrdude.exe -CC:/Users/WELCOME/.arduino-create/arduino/avrdude/6.3.0-arduino9/etc/avrdude.conf -q -q -patmega328p -carduino -PCOM3 -b115200 -D -Uflash:w:C:/Users/WELCOME/AppData/Local/Temp/arduino-create-agent905352751/Blink.hex:i

avrdude: ser_open(): can't open device "\\.\COM3": Access is denied.

Executing command: exit status 1
I REALLY DONT KNO WHAT TO DO WITH MY ARDUINO UNO R3 RYT NOW!!!!!
Title: Re: avrdude: ser_open(): can't open device "\\.\com3":
Post by: TTicecube on May 01, 2019, 08:05 pm
I got to this topic and found no help what so every to fix the error.

Then i looked at the windows drivers at the com-port named "RAMPS"
Seems wrong and i downloaded "serieel chip (CH340) drivers" at:
https://sparks.gogo.co.nz/ch340.html
This fixed my problems

Re-plug the USB after install.
and it seem i have a "UNO R3 ATmega328P"

I hoop this is helpful.