Arduino上传错误“stk500_recv():程序员没有响应”在软呢帽中

发布于 2024-12-07 02:34:01 字数 926 浏览 1 评论 0原文

我正在尝试使用 Fedora Core 15 Linux 中的 Arduino IDE 上传库存 Blink 草图。我收到此错误:

avrdude:stk500_recv():程序员没有响应

要重现问题:

  1. 通过 USB 线插入 Arduino Uno 板
  2. 打开 Arduino IDE
  3. 菜单 文件示例1.基础知识闪烁
  4. 菜单工具串行端口→然后选中/dev/ttyACM0复选框
  5. 菜单ToolsBoardArduino Uno
  6. 点击“Play”按钮进行验证/编译(此步骤成功)
  7. 点击Upload 按钮,为了得到错误,

我尝试了这些在Windows XP中的步骤完全相同,并且上传成功,所以我一定没有正确配置Fedora。

我按照 Arduino Playground 说明,使用 yum 安装客户端并将我的用户 ID 添加到组 uucplockdialout

没有遵循指南的RXTX修复 - 链接正确的文件部分,因为给定的命令没有返回任何匹配项:find ~ -name librxtxSerial .so -o -名称 RXTXcomm.jar | grep -v 下载

I am attempting to upload the stock Blink sketch using the Arduino IDE in Fedora Core 15 Linux. I get this error:

avrdude: stk500_recv(): programmer is not responding

To recreate the issue:

  1. Plug in the Arduino Uno board via USB cable
  2. Open the Arduino IDE
  3. Menu FileExamples1. BasicsBlink
  4. Menu ToolsSerial Port → then check the box for /dev/ttyACM0
  5. Menu ToolsBoardArduino Uno
  6. Click the "Play" button to Verify/Compile (this step is successful)
  7. Click the Upload button, to get the error

I tried these same exact steps in Windows XP, and the upload was successful, so I must not have Fedora configured correctly.

I followed the Arduino Playground instructions, installing the client using yum and adding my user ID to the groups uucp, lock and dialout.

I did not follow the RXTX fixup -- Link the proper files part of the guide, since the given command did not return any matches: find ~ -name librxtxSerial.so -o -name RXTXcomm.jar | grep -v Download

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(11

独夜无伴 2024-12-14 02:34:01

在上传程序之前,请确保您从菜单工具开发板中选择了正确的开发板类型。

Before uploading your programme, make sure you selected the right board type, from menu ToolsBoard.

半夏半凉 2024-12-14 02:34:01

检查数字引脚 0 或 1 是否连接了跳线。这些引脚还具有串行通信功能。由于您使用 USB 电缆提供的串行连接在 Arduino 板上进行上传,因此您不希望板的串行端口通过引脚 0 或 1 参与其他活动。

Check if you have any jumpers connected to the digital pins 0 or 1. Those pins have also serial communication functions. And because you are uploading on the Arduino board, using the serial connection provided by the USB cable, you don't want the board's serial port to be engaged in other activities via pins 0 or 1.

内心旳酸楚 2024-12-14 02:34:01

就我而言,进入菜单工具处理器并更改为ATMega328P(旧引导加载程序)。那么问题就解决了。

但请确保在上传之前执行chmod

sudo chmod a+rw /dev/ttyUSB0

In my case, go to menu ToolsProcessor and change to ATMega328P (Old Bootloader). Then the problem is solved.

But make sure that you do the chmod before upload:

sudo chmod a+rw /dev/ttyUSB0
时间海 2024-12-14 02:34:01

这听起来可能是由 一个 bug 引起的,该 bug 存在于 AVRDUDE 当时。一个简单的 yum update AVRDUDE 现在应该可以修复它。

This sounds like it was probably caused by a bug that was present in AVRDUDE at the time. A simple yum update AVRDUDE should now fix it.

ぃ弥猫深巷。 2024-12-14 02:34:01

对我来说,更换电缆有效。

我使用的是 Ubuntu 17.04 (Zesty Zapus)、Arduino Nano 带有 ATmega28 和带有铁氧体扼流圈的 USB 电缆(我不认为铁氧体扼流圈是 原因)。

For me, changing the cable worked.

I was using Ubuntu 17.04 (Zesty Zapus), Arduino Nano with ATmega28 and a USB cable with ferrite choke (I don’t think ferrite choke was the cause).

野味少女 2024-12-14 02:34:01

对我有用的修复:

如果您有一个 USBasp 编程器(或其他类型的 ICSP 编程器)插入您的 Arduino 板(但未插入您的 PC),因为您只是用它来刷新Arduino 板的引导加载程序,将其从 Arduino 上拔下。断开 USBasp 编程器和 Arduino 之间的 5V 线对我来说就足够了。现在正在上传作品(USBasp 编程器放在工作台上,除了 5V 引脚外,所有引脚仍连接到 Arduino)。

The fix that worked for me:

If you have a USBasp programmer (or other type of ICSP programmer) plugged into your Arduino board (but not plugged into your PC), because you just used it to flash the bootloader of your Arduino board, unplug it from the Arduino. Disconnecting the 5V line between the USBasp programmer and the Arduino was enough for me. Now uploading works (with the USBasp programmer lying on the bench with all but the 5V pin still connected to the Arduino).

鲜肉鲜肉永远不皱 2024-12-14 02:34:01

Arduino Uno R3、Mac OS X v10.8.3 (Mountain Lion)、任何版本的 Arduino.app。对我来说,更换 USB 电缆可以修复此错误。

Arduino Uno R3, Mac OS X v10.8.3 (Mountain Lion), any version of Arduino.app. For me changing the USB cable fix this error.

清音悠歌 2024-12-14 02:34:01

我相信 为什么我无法将程序上传到 Arduino 板?<中的说明/a> 上面写着

在 Linux 上,Uno 和 Mega 2560 显示为以下形式的设备
/dev/ttyACM0

并不总是适用。在我的 Ubuntu 14.10 (Utopic Unicorn) 中我可以看到该端口位于菜单 工具串行端口,但当选择并尝试上传到 Arduino Nano 时V3 我收到错误

stk500_recv():程序员没有响应

更改工具 ->串行端口到 /dev/ttyUSB0 解决了这个问题。

我猜测我的系统可能就是这种情况,在将 Arduino 插入那里之前,我在同一个 USB 端口上有另一个设备。可能重启后情况会有所不同;没测试过不知道但无论原因是什么,好消息是问题是可以解决的。

您可以轻松地检查什么是正确的串行端口,方法是首先检查哪些端口可用,而无需插入 Arduino(菜单工具串行端口),然后再次检查哪些端口可用是Arduino插入USB口后添加的端口。

I believe the instruction in Why I can't upload my programs to the Arduino board? that says

On Linux, the Uno and Mega 2560 show up as devices of the form
/dev/ttyACM0

does not always apply. In my Ubuntu 14.10 (Utopic Unicorn) I can see that port in menu ToolsSerial Port, but when selected and trying to upload to the Arduino Nano V3 I get the error

stk500_recv(): programmer is not responding

Changing the Tools -> Serial Port to /dev/ttyUSB0 solves the problem.

I'm guessing that this may be the case in my system where I had an other device at the same USB port before plugging Arduino there. It may be that after restart the situation might be different; I don't know haven't tested. But whatever is the cause, the good news is that the problem can be solved.

You can easily check what is the correct serial port by first checking what ports are available without plugging the Arduino (menu ToolsSerial Port) and then checking again what is the added port after plugging the Arduino in the USB port.

东走西顾 2024-12-14 02:34:01

自从这个问题发布以来,Arduino 的新稳定版本已经发布。它们现在是 1.0,并且可以在 Fedora Core Linux 16 中运行。可以在此处下载:http:// arduino.cc/en/Main/Software

Since this question was posted, a new stable version of Arduino has been released. They are now on 1.0, and it works in Fedora Core Linux 16. It can be downloaded here: http://arduino.cc/en/Main/Software

Saygoodbye 2024-12-14 02:34:01

经过几个小时的搜索,问题已经解决:

选择菜单ToolsProgrammerArduino as ISP

After hours of searching, the problem has been solved:

Choose menu ToolsProgrammerArduino as ISP

白昼 2024-12-14 02:34:01

对于 Windows,我尝试这样做

  • 在 PowerShell 中,运行 devcon status usb*。这应该显示多个类似的设备,其中之一是

    <前><代码>USB\VID_2341&PID_8036&MI_00\6&1D9C3F6B&0&0000
    名称: Arduino 莱昂纳多 (COM3)
    驱动程序正在运行。

  • 然后 reg add "HKLM\SYSTEM\ControlSet001\Enum\USB\VID_2341&PID_8036&MI_00\6&1D9C3F6B&0&0000\DeviceParameters" /v "端口名称" /t REG_SZ /d "COM3" /f.。仔细检查COM3也列在Windows的设备管理器菜单中。

  • 重新启动机器和 Arduino IDE。然后再次尝试上传。

For Windows, I tried doing this

  • In PowerShell, run devcon status usb*. This should show multiple devices similar, one among which would be

    USB\VID_2341&PID_8036&MI_00\6&1D9C3F6B&0&0000
        Name: Arduino Leonardo (COM3)
        Driver is running.
    
  • Then do reg add "HKLM\SYSTEM\ControlSet001\Enum\USB\VID_2341&PID_8036&MI_00\6&1D9C3F6B&0&0000\Device Parameters" /v "PortName" /t REG_SZ /d "COM3" /f.. Double check COM3 is also listed in Device Manager menu of windows.

  • Restart the machine and the Arduino IDE. And try uploading again.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文