Arduino Sketch 上传问题 - avrdude: stk500_recv(): 程序员没有响应 [英] Arduino Sketch upload issue - avrdude: stk500_recv(): programmer is not responding

查看:77
本文介绍了Arduino Sketch 上传问题 - avrdude: stk500_recv(): 程序员没有响应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有

我在菜单工具下启用了/dev/ttyUSB0串口.我还从列表中选择了正确的板(Duemilanove 和 ATmega328).然而,我无法解决这个问题.我也在网上搜索过,这个问题的其他回答似乎都对我不起作用.为什么我会遇到此问题以及如何解决?

我还尝试转动板载 ATmega 并将其安装在另一个方向.现在,我上传没有遇到任何问题,但之后没有任何反应.板载 LED 似乎也没有闪烁.

解决方案

我在 Crowduino 上遇到了这个问题,在 OS X 上运行 Arduino IDE.我的解决方案是在上传期间打开详细输出(在 Arduino IDE 首选项窗格中).

然后,在上传的时候,可以看到AVRDUDE发送了三个数据包avrdude:发送:0 [30] [20](板子上相应的 RX 闪烁)就在 avrdude: ser_recv():programmer is not respond 错误之前.

诀窍是在发送这三个数据包之前立即按下板上的重置按钮.然后程序就上传成功了.

I have an Arduino Duemilanove with an ATmega328. I am working on Ubuntu 12.04 (Precise Pangolin), and the Arduino IDE's version is 1.0. Recently, I tried to upload a few of the sample sketches onto it, such as the Blink one. However, none of my attempts are working and they result in the same error every time I try it:

avrdude: stk500_recv(): programmer is not responding.

I have enabled /dev/ttyUSB0 under menu ToolsSerial Port. I have also selected the correct board (Duemilanove with ATmega328) from the list. Yet, I am not able to resolve the issue. I have searched online as well and none of the other responses for this problem seem to be working for me. Why I am encountering this issue and how to resolve it?

I also tried turning the onboard ATmega and fitting it in the other direction. Now, I encounter no problems uploading, but nothing happens afterwards. The onboard LED also does not seem to be blinking.

解决方案

I had this problem with a Crowduino, running the Arduino IDE on OS X. The solution for me was to switch on verbose output during upload (in the Arduino IDE preferences pane).

Then, when uploading, you can see AVRDUDE sending three packets avrdude: Send: 0 [30] [20] (with corresponding RX flashes on the board) right before the avrdude: ser_recv(): programmer is not responding error.

The trick is to hit the reset button on the board immediately before these three packets are sent. Then the program will be uploaded successfully.

这篇关于Arduino Sketch 上传问题 - avrdude: stk500_recv(): 程序员没有响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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