【问题标题】:Ubuntu + UNO R3 - Avrdude programmer is not respondingUbuntu + UNO R3 - Avrdude 程序员没有响应
【发布时间】:2016-07-25 19:05:57
【问题描述】:

我正在尝试将中文 Arduino-Uno (Uno R3) 用于 Ubuntu 14.04,但我无法上传我的草图。

当我运行命令时:

sudo avrdude -v -v -v -v -c avrisp -p m328p -P /dev/ttyUSB0

我得到这个结果:

avrdude: Version 6.0.1, compiled on Oct 21 2013 at 15:55:32
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "/etc/avrdude.conf"
         User configuration file is "/root/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/ttyUSB0
         Using Programmer              : avrisp
avrdude: Send: 0 [30]   [20] 
avrdude: Send: 0 [30]   [20] 
avrdude: Send: 0 [30]   [20] 
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: Send: 0 [30]   [20] 
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
avrdude: Send: 0 [30]   [20] 
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
avrdude: Send: 0 [30]   [20] 
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
avrdude: Send: 0 [30]   [20] 
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
avrdude: Send: 0 [30]   [20] 
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
avrdude: Send: 0 [30]   [20] 
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
avrdude: Send: 0 [30]   [20] 
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00
avrdude: Send: 0 [30]   [20] 
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
avrdude: Send: 0 [30]   [20] 
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00

avrdude done.  Thank you.

我已经试过了:

  1. 检查电缆和/或连接器是否没有微切口;
  2. 验证引脚 RX 和 TX;
  3. 上传时板上的重置按钮;
  4. 遵循http://playground.arduino.cc/Linux/Ubuntu 中描述的所有步骤。

你能帮我解决这个错误吗?

PS:我的板子是这样的one

【问题讨论】:

  • 4 岁以下,您是否进行了sudo usermod -aG dialout <myuser> 并注销并登录(或重新启动)?另外:你是如何安装avrdude的?易于?从源代码编译?下载的二进制文件? (我认为 apt 因为System wide configuration file is "/etc/avrdude.conf"
  • 您好 showp1984,感谢您的帮助。我在描述的测试中运行了命令 sudo usermod -aG dialout 。 avrdude 是通过 apt-get 安装的。你有什么想法可以帮助我解决这个问题吗?最好的问候,里卡多
  • 只是为了确定:您确实将<myuser> 替换为您的实际用户名? :) 另外:你确定 Arduino 可以工作吗?是否可以通过 Arduino IDE 进行刷写?
  • 您好 showp1984,再次感谢您的支持。我将<myuser> 更改为我的用户名。事实上,我是 arduino 的初学者,这是我对这块板的第一次测试。所以我认为 Arduino 可以工作,因为当我使用 USB 电缆插入电路板时,红色 LED 会亮起,Arduino IDE 会识别接口 ttyUSB0 和电路板 Arduino/Genuino Uno。我还可以进行其他测试来确定 Arduino 是否正常工作?
  • 遗憾的是,这并不意味着 Arduino 可以工作。 ttyUSB0 和 Uno 识别只是告诉您板上的 USB-to-Serial 芯片工作正常(328P 连接到 USB-to-Serial 芯片)。如果 328P 本身工作,则不会。我这里有一块和你类似的板,当我订购了其中两个时,其中一个是 DOA。您需要验证 328p 是否正常工作,您可以使用默认的 Arduino IDE 进行闪烁,看看是否能让您更接近。另外:检查 pcb 上的痕迹是否有中断/划痕。你得到的那个错误意味着 328p 没有发回任何东西。 (可能是错误的 tx 行)

标签: arduino ubuntu-14.04 arduino-uno avrdude


【解决方案1】:

尝试使用-c arduino,它会切换 DTR 以重新启动 MCU 并启动引导加载程序几秒钟。

顺便说一句:在重试之前必须几乎精确地按下重置按钮,这并不像听起来那么容易。

【讨论】:

  • 您好 KIIV,感谢您的帮助。我尝试使用-c arduino 选项并收到此错误消息:avrdude: Send: 0 [30] [20] avrdude: ser_recv(): programmer is not responding avrdude: stk500_recv(): programmer is not responding 你有什么想法可以帮助我解决这个问题吗?最好的问候,里卡多
猜你喜欢
  • 1970-01-01
  • 2023-03-24
  • 1970-01-01
  • 1970-01-01
  • 2013-11-14
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2021-04-20
相关资源
最近更新 更多