错误&quort“ avrdude:stk500_recv():程序员没有响应” (Macos Monterey)

发布于 2025-01-26 17:39:56 字数 540 浏览 5 评论 0原文

最近,我使用Arduino Uno启动了一个项目。我正在MacOS上使用Arduino IDE(蒙特雷)。 IDE正在编译并上传到Arduino罚款;但是,最近它仍在编译,但是在上传时,它一直向我发送“程序员没有响应错误”。

以下是我的代码和到目前为止进行调试的步骤。

void setup() {
  Serial.begin(1000);
  delay(50);
}

void loop() {
  Serial.print("Hello, World!");
  delay(500);
}
  • 首先,我尝试拔下插电,重新插入和重置板子。
  • 我还确保在IDE中选择了正确的端口和板。
  • 此外,我完全删除了IDE并重新安装了它。
  • 最后,我将板子和电线换成其他板子,但错误仍然存​​在。

当我在Windows笔记本电脑上测试了同一程序和板时,这些似乎都不是问题,并且可以很好地上传。此外,RX灯每隔几秒钟闪烁,L灯不断亮起,显示出适当的连接性。这使我相信MacOS和Arduino IDE有问题。

Recently, I started a project using an Arduino Uno. I am using the Arduino IDE on macOS v12.2 (Monterey). The IDE was compiling and uploading to the Arduino fine; however, recently it still compiles, but keeps sending me the "programmer is not responding error" when uploading.

Below is my code and the steps I have taken to debug so far.

void setup() {
  Serial.begin(1000);
  delay(50);
}

void loop() {
  Serial.print("Hello, World!");
  delay(500);
}
  • First, I tried unplugging, replugging, and resetting my board.
  • I also made sure that the correct port and board were selected in the IDE.
  • Furthermore, I deleted the IDE completely and reinstalled it.
  • Lastly, I switched out the board and wire for other ones and the error still remained.

None of these seem to be the issue as I tested the same program and board on a Windows laptop and it uploaded fine. Additionally, the RX light flashes every couple of seconds and the L light is constantly on, showing proper connectivity. This leads me to believe that there is something wrong with the macOS and Arduino IDE specifically.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文