avrdude:ser_open():无法打开设备“/dev/ttyACM0":设备或资源繁忙 [英] avrdude: ser_open(): can't open device "/dev/ttyACM0": Device or resource busy

查看:31
本文介绍了avrdude:ser_open():无法打开设备“/dev/ttyACM0":设备或资源繁忙的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 Linux Mint 用户.我正在处理 Arduino Yun.我正在编译 Arduino 程序.然后我上传到 Arduino Yun.然后出现这些错误.你能帮我吗?

I am Linux Mint user.I am dealing with Arduino Yun.I am compiling Arduino program.After that I am uploading to Arduino Yun.Then I get these error.Can you help me?

推荐答案

首先需要确保您拥有正确的读/写权限,如这里,基本上输入以下命令:

you first need to make sure you have the correct read/write rights, as described here, esentially enter following commands:

$ sudo adduser <username> dialout
$ sudo chmod a+rw /dev/ttyACM0

'/dev/ttyACM0' 是你的 arduino 连接的端口,它应该列在你根目录的/dev 文件夹中.

the '/dev/ttyACM0' is the port your arduino is connected to, it should be listed in the /dev folder of your root.

第二:在您确定了 arduino 连接到哪个端口并为此端口设置了正确的权限后,您需要运行以下命令.我不确定它的作用,我不确定它是否真的需要,但它使上传对我有好几次

second: after you have identified which port the arduino is connected to and you have set the correct rights for this port, you need to run following command. I am not sure what it does, I am not sure if it's really needed, but it made the uploads work for me on several occasions

$ sudo udevadm trigger

找到这个命令 此处:http://starter-kit.nettigo.eu/2015/serial-port-busy-for-avrdude-on-ubuntu-with-arduino-leonardo-eth/

第三,您会发现上传有时是时间和运气的挑战.继续按重置(有时连续两次),同时按 arduino 草图的上传按钮.在某个时刻,它会起作用.我在不断修改代码中的小片段时运气比较好,所以当我推送上传"时,它必须先编译代码.

and third, you will find the upload sometimes a challenge of timing and luck. Keep pressing the reset (sometimes twice very consecutively) and meanwhile press the upload button of your arduino sketch. At certain moment, it will work. I had more luck when constantly changing small pieces in the code, so when I pushed 'upload', it had to compile the code first.

https://www.arduino.cc/en/Guide/Troubleshooting#upload

在某些计算机上,您可能需要按下重置按钮

on some computers, you may need to push teh reset button

我从来没有搞过引导加载程序,也没有搞过 ICSP 引脚之类的(幸运的是)

I have never messed with the bootloader, nor with ICSP pins and such (luckily)

还可以查看 Arduino 论坛或在链接上自己提供

Also have a look on the Arduino forum or on the link provide by yourself

这篇关于avrdude:ser_open():无法打开设备“/dev/ttyACM0":设备或资源繁忙的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆