Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/date/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用Kubuntu上载Arduino Mirco草图时出错_Ubuntu_Arduino_Arduino Ide - Fatal编程技术网

使用Kubuntu上载Arduino Mirco草图时出错

使用Kubuntu上载Arduino Mirco草图时出错,ubuntu,arduino,arduino-ide,Ubuntu,Arduino,Arduino Ide,我有一个arduino micro,我想从我的Kubuntu 15.10系统中编程。我使用apt get安装了arduino软件,但当我尝试上载程序时(出于测试目的,我使用基本\BareMinimum草图),我得到以下错误: Found programmer: Id = "0.00 V1"; type = Software Version = 0..; Hardware Version = 0.0 avrdude: error: buffered memory access not

我有一个arduino micro,我想从我的Kubuntu 15.10系统中编程。我使用apt get安装了arduino软件,但当我尝试上载程序时(出于测试目的,我使用基本\BareMinimum草图),我得到以下错误:

Found programmer: Id = "0.00 V1"; type =  
    Software Version = 0..; Hardware Version = 0.0
avrdude: error: buffered memory access not supported. Maybe it isn't
a butterfly/AVR109 but a AVR910 device?
选择了正确的设备“Arduino Micro”,并选择了正确的端口“/tty/ACM0”。我在互联网上发现有人有同样的错误,可以通过使用另一个USB端口或电缆来解决。但我用两条不同的电缆和不同的端口尝试了一下,但没有成功。我甚至在我的笔记本电脑上试用了Kubuntu的旧版本,也产生了同样的错误

因此,我在Arduino主页上试用了最新版本的Arduino软件。有了这个,我得到了一个不同的错误:

avrdude: ser_open(): can't open device "/dev/ttyACM0": Device or resource busy
avrdude: ser_send(): write error: Bad file descriptor
我的用户已添加到拨号组,因此我应该可以访问该端口。它也是正确的端口,因为当我拔下电路板时,端口从arduino菜单中消失

arduino本身不应该是问题,因为我可以从另一台windows笔记本电脑上传草图,不会有问题

编辑:当我插入arduino时,以下内容被添加到
dmesg
输出中:

[ 8390.293960] usb 1-2: new full-speed USB device number 6 using xhci_hcd
[ 8390.424861] usb 1-2: New USB device found, idVendor=2341, idProduct=8037
[ 8390.424863] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 8390.424864] usb 1-2: Product: Arduino Micro
[ 8390.424865] usb 1-2: Manufacturer: Arduino LLC
[ 8390.425283] cdc_acm 1-2:1.0: ttyACM0: USB ACM device
[ 8390.426815] input: Arduino LLC Arduino Micro as /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.2/0003:2341:8037.0007/input/input21
[ 8390.482163] hid-generic 0003:2341:8037.0007: input,hidraw4: USB HID v1.01 Mouse [Arduino LLC Arduino Micro] on usb-0000:00:14.0-2/input2

你刷新了Arduino引导程序吗?当你给电路板供电时,你可以通过发光的LED来识别它。它会发光几秒钟,然后开始当前闪烁的草图

如果您没有看到发光的LED,则需要先闪烁引导加载程序

avrdude
中,您应该使用
AVR109
bootloader-这是正确的


您可以观察
dmesg
命令输出,查看如何检测主板。

我可以从windows pc对arduino进行编程,因此我认为arduino上的引导加载程序应该在那里。错误显示“设备或资源忙”。使用
lsof
查看挂起的进程
/dev/ttyACM0
。我相信Ubuntu有(或过去有)一些调制解调器守护进程,它像水蛭一样连接到任何看起来像串行线的东西上。Slurp…所以我应该调用
lsof/dev/ttyACM0
?没有arduino软件运行时,这不会产生任何输出,只是什么也不做。是的,我有。这没什么区别。当arduino连接时,我得到一个空输出,如果它断开连接,我在/dev/ttyACM0上得到一个
状态错误:没有这样的文件或目录
错误。连接设备后,你能粘贴
dmesg
输出吗?