arduino nano-avrdude: ser_open():system can't open device”\\。系统无法找到指定的文件

时间:2022-09-06 13:29:52

I am working with arduino nano.

我正在和arduino nano合作。

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

avrdude: ser_open():系统不能打开设备”\。系统无法找到指定的文件

This error appears just after uploading the program on the arduino board. I have checked my port in my device manager, it says com11 and in the arduino software as well com11 is selected. I have arduino nano board selected in my arduino software. Also there mustn't be any specification error while downloading the software file. Is there anything that i am missing?? Please help!! I am unable to solve this error.

在arduino板上上传程序后出现此错误。我在设备管理器中检查了我的端口,它说com11,在arduino软件中也选择了com11。我在arduino软件中选择了arduino nano板。在下载软件文件时,也不能有任何的规格错误。有什么东西我遗漏了吗?请帮助! !我无法解决这个错误。

5 个解决方案

#1


100  

I know this is an old post, but this is how I solved the problem. In device manager you will find the Arduino COM port.

我知道这是一个老帖子,但这就是我解决问题的方法。在设备管理器中,您将找到Arduino COM端口。

arduino nano-avrdude: ser_open():system can't open device”\\。系统无法找到指定的文件

Go to the Advance properties of the port

转到端口的高级属性

arduino nano-avrdude: ser_open():system can't open device”\\。系统无法找到指定的文件

Set the COM port number to COM1

将COM端口号设置为COM1。

arduino nano-avrdude: ser_open():system can't open device”\\。系统无法找到指定的文件

Then replug the USB.

然后replug USB。

#2


8  

Instead of changing the COM port in Device manager, if you're using the Arduino software, I had to set the port in Tools > Port menu.

如果您正在使用Arduino软件,而不是在设备管理器中更改COM端口,我必须在Tools >端口菜单中设置端口。

arduino nano-avrdude: ser_open():system can't open device”\\。系统无法找到指定的文件

#3


1  

My issue was due to what physical USB female port I plugged the Arduino cable into on my D-Link DUB-H7 (USB hub) on Windows 10. I had my Arduino plugged into one of the two ports way on the right (in the image below). The USB cable fit, and it powers the Arduino fine, but the Arduino wasn't seeing the port for some reason.

我的问题是,在Windows 10上,我将Arduino电缆插入到我的D-Link DUB-H7 (USB集线器)上,这是由什么物理USB接口连接的。我让我的Arduino接入右边的两个端口中的一个(如下图)。USB连接线,它为Arduino供电,但是Arduino由于某种原因没有看到端口。

arduino nano-avrdude: ser_open():system can't open device”\\。系统无法找到指定的文件

Windows does not recognize these two ports. Any of the other ports are fair game. In my case, the Tools > Port menu was grayed out. In this scenario, the "Ports" section in the object explorer was hidden. So to show the hidden devices, I chose View > show hidden. COM1 was what showed up originally. When I changed it to COM3, it didn't work.

Windows无法识别这两个端口。其他任何一个港口都是公平竞争的。在我的例子中,工具>端口菜单是灰色的。在此场景中,对象资源管理器中的“端口”部分被隐藏。为了显示隐藏的设备,我选择了view> show hidden。COM1是最初出现的。当我把它改成COM3时,它不起作用。

There are many places where the COM port can be configured.

有许多地方可以配置COM端口。

Windows > Control Panel > Device Manager > Ports > right click Arduino > Properties > Port Settings > Advanced > COM Port Number: [choose port]

Windows >控制面板>设备管理器>端口>右击Arduino >属性>端口设置>高级> COM端口号:[选择端口]

Windows > Start Menu > Arduino > Tools > Ports > [choose port]

Windows >开始菜单> Arduino > Tools >端口>【选择端口】

Windows > Start Menu > Arduino > File > Preferences > @ very bottom, there is a label named "More preferences can be edited directly in the file".

Windows >开始菜单> Arduino > File > Preferences > @非常底端,有一个标签叫做“更多的首选项可以直接在文件中编辑”。

C:\Users{user name}\AppData\Local\Arduino15\preferences.txt

C:\用户{用户名} \ AppData \ \ Arduino15 \ preferences.txt

target_package = arduino
target_platform = avr
board = uno
software=ARDUINO
# Warn when data segment uses greater than this percentage
build.warn_data_percentage = 75

programmer = arduino:avrispmkii

upload.using = bootloader
upload.verify = true

serial.port=COM3
serial.databits=8
serial.stopbits=1
serial.parity=N
serial.debug_rate=9600

# I18 Preferences

# default chosen language (none for none)
editor.languages.current = 

The user preferences.txt overrides this one:

用户的偏好。三种覆盖这个:

C:\Users{user name}\Desktop\avrdude.conf

C:\ {用户名} \ \ avrdude.conf桌面用户

... search for "com" ... "com1" is the default

…搜索“com”……“com1”是默认的

#4


0  

I was having this same issue this morning. When I checked my Device Manager, it showed COM4 properly, and when I checked in the Arduino IDE COM4 just wasn't an option. Only COM1 was listed.
I tried unplugging and plugging my Arduino in and out a couple more times and eventually COM4 showed up again in the IDE. I didn't have to change any settings.
Hopefully that helps somebody.

今天早上我也有同样的问题。当我检查我的设备管理器时,它显示了正确的COM4,当我检查Arduino IDE COM4时,它不是一个选项。只有COM1上市。我试着拔掉我的Arduino的插头,然后把它堵上几次,最终COM4再次出现在IDE中。我不需要改变任何设置。希望可以帮助别人。

#5


0  

Changing the port in Device Manager works for me. I was also able to fix it by finding the port that Arduino was using and then select it from the Adruion IDE from tools menu Tools>Port>Com Port

在设备管理器中更改端口对我来说是可行的。我还可以通过找到Arduino使用的端口来修复它,然后从工具菜单工具>端口>Com端口上从Adruion IDE中选择它。

arduino nano-avrdude: ser_open():system can't open device”\\。系统无法找到指定的文件

#1


100  

I know this is an old post, but this is how I solved the problem. In device manager you will find the Arduino COM port.

我知道这是一个老帖子,但这就是我解决问题的方法。在设备管理器中,您将找到Arduino COM端口。

arduino nano-avrdude: ser_open():system can't open device”\\。系统无法找到指定的文件

Go to the Advance properties of the port

转到端口的高级属性

arduino nano-avrdude: ser_open():system can't open device”\\。系统无法找到指定的文件

Set the COM port number to COM1

将COM端口号设置为COM1。

arduino nano-avrdude: ser_open():system can't open device”\\。系统无法找到指定的文件

Then replug the USB.

然后replug USB。

#2


8  

Instead of changing the COM port in Device manager, if you're using the Arduino software, I had to set the port in Tools > Port menu.

如果您正在使用Arduino软件,而不是在设备管理器中更改COM端口,我必须在Tools >端口菜单中设置端口。

arduino nano-avrdude: ser_open():system can't open device”\\。系统无法找到指定的文件

#3


1  

My issue was due to what physical USB female port I plugged the Arduino cable into on my D-Link DUB-H7 (USB hub) on Windows 10. I had my Arduino plugged into one of the two ports way on the right (in the image below). The USB cable fit, and it powers the Arduino fine, but the Arduino wasn't seeing the port for some reason.

我的问题是,在Windows 10上,我将Arduino电缆插入到我的D-Link DUB-H7 (USB集线器)上,这是由什么物理USB接口连接的。我让我的Arduino接入右边的两个端口中的一个(如下图)。USB连接线,它为Arduino供电,但是Arduino由于某种原因没有看到端口。

arduino nano-avrdude: ser_open():system can't open device”\\。系统无法找到指定的文件

Windows does not recognize these two ports. Any of the other ports are fair game. In my case, the Tools > Port menu was grayed out. In this scenario, the "Ports" section in the object explorer was hidden. So to show the hidden devices, I chose View > show hidden. COM1 was what showed up originally. When I changed it to COM3, it didn't work.

Windows无法识别这两个端口。其他任何一个港口都是公平竞争的。在我的例子中,工具>端口菜单是灰色的。在此场景中,对象资源管理器中的“端口”部分被隐藏。为了显示隐藏的设备,我选择了view> show hidden。COM1是最初出现的。当我把它改成COM3时,它不起作用。

There are many places where the COM port can be configured.

有许多地方可以配置COM端口。

Windows > Control Panel > Device Manager > Ports > right click Arduino > Properties > Port Settings > Advanced > COM Port Number: [choose port]

Windows >控制面板>设备管理器>端口>右击Arduino >属性>端口设置>高级> COM端口号:[选择端口]

Windows > Start Menu > Arduino > Tools > Ports > [choose port]

Windows >开始菜单> Arduino > Tools >端口>【选择端口】

Windows > Start Menu > Arduino > File > Preferences > @ very bottom, there is a label named "More preferences can be edited directly in the file".

Windows >开始菜单> Arduino > File > Preferences > @非常底端,有一个标签叫做“更多的首选项可以直接在文件中编辑”。

C:\Users{user name}\AppData\Local\Arduino15\preferences.txt

C:\用户{用户名} \ AppData \ \ Arduino15 \ preferences.txt

target_package = arduino
target_platform = avr
board = uno
software=ARDUINO
# Warn when data segment uses greater than this percentage
build.warn_data_percentage = 75

programmer = arduino:avrispmkii

upload.using = bootloader
upload.verify = true

serial.port=COM3
serial.databits=8
serial.stopbits=1
serial.parity=N
serial.debug_rate=9600

# I18 Preferences

# default chosen language (none for none)
editor.languages.current = 

The user preferences.txt overrides this one:

用户的偏好。三种覆盖这个:

C:\Users{user name}\Desktop\avrdude.conf

C:\ {用户名} \ \ avrdude.conf桌面用户

... search for "com" ... "com1" is the default

…搜索“com”……“com1”是默认的

#4


0  

I was having this same issue this morning. When I checked my Device Manager, it showed COM4 properly, and when I checked in the Arduino IDE COM4 just wasn't an option. Only COM1 was listed.
I tried unplugging and plugging my Arduino in and out a couple more times and eventually COM4 showed up again in the IDE. I didn't have to change any settings.
Hopefully that helps somebody.

今天早上我也有同样的问题。当我检查我的设备管理器时,它显示了正确的COM4,当我检查Arduino IDE COM4时,它不是一个选项。只有COM1上市。我试着拔掉我的Arduino的插头,然后把它堵上几次,最终COM4再次出现在IDE中。我不需要改变任何设置。希望可以帮助别人。

#5


0  

Changing the port in Device Manager works for me. I was also able to fix it by finding the port that Arduino was using and then select it from the Adruion IDE from tools menu Tools>Port>Com Port

在设备管理器中更改端口对我来说是可行的。我还可以通过找到Arduino使用的端口来修复它,然后从工具菜单工具>端口>Com端口上从Adruion IDE中选择它。

arduino nano-avrdude: ser_open():system can't open device”\\。系统无法找到指定的文件