1

在我的代码出现意外错误后,我的 Arduino 不断吐出键盘命令。

Keyboard.write('l');

现在我不能上传任何新的草图。我已经尝试过常见的 Arduino 循环解决方案,例如这里的解决方案: 如何“重置”Arduino 板?

在键盘开始拍摄代码之前尝试上传时遇到的错误是:

avrdude: stk500_getsync(): not in sync: resp=0x3f

或者

avrdude: stk500_recv(): programmer is not responding

如果有一个不需要购买外部程序员的解决方案,那就太好了。

4

4 回答 4

1

对于Arduino Yún用户,尝试通过以太网/Wi-Fi上传(菜单工具端口)。

于 2014-03-24T18:16:19.823 回答
1

终于修好了:)

同步问题是由于在编译器中选择了错误的板造成的。 事实上,我能够按照 Stack Overflow 问题中的说明覆盖我的程序:如何“重置”Arduino 板?

在释放重置按钮和上传新程序之间,确实需要多次尝试才能获得正确的时机。

于 2013-10-31T11:53:34.767 回答
0

我自己没有使用过莱昂纳多,但听起来自动重置可能是问题所在。尝试按住重置按钮,然后(按住它的同时)上传草图。

根据这些说明,您可以在上传开始后松开按钮。

于 2013-10-31T09:56:55.750 回答
0

Install ArduinoDroid IDE on the mobile which is available in the play store.

Select the board as Leonardo, connect the Leonardo to the mobile by pressing the reset button on the board and upload the code immediately after removing the thumb on the reset button...

Boom, it worked...

App link: https://play.google.com/store/apps/details?id=name.antonsmirnov.android.arduinodroid2&hl=en

于 2019-07-29T17:57:57.020 回答