无法重置 Arduino Leonardo 代码
Unable to Reset the Arduino Leonardo Code
我正在尝试使用 Arduino Leonardo Pro Mini 了解键盘模拟。
我写的代码是
#include <Keyboard.h>
void setup() {
Keyboard.begin()
}
void loop() {
Keyboard.println("Hello World");
}
这很好用,现在我想用空代码重置微控制器,也就是
void setup()
{
}
void loop()
{
}
但是前面的代码不允许我这样做。
以下是错误,即使端口选择正确(我确定)
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00
此错误与您上传的代码无关。
原因:
- 缺少引导程序
- 损坏的引导程序
- 引导加载程序设置错误
- 连接错误
- 连接到硬件的东西Rx/Tx ...
我正在尝试使用 Arduino Leonardo Pro Mini 了解键盘模拟。
我写的代码是
#include <Keyboard.h>
void setup() {
Keyboard.begin()
}
void loop() {
Keyboard.println("Hello World");
}
这很好用,现在我想用空代码重置微控制器,也就是
void setup()
{
}
void loop()
{
}
但是前面的代码不允许我这样做。 以下是错误,即使端口选择正确(我确定)
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00
此错误与您上传的代码无关。
原因:
- 缺少引导程序
- 损坏的引导程序
- 引导加载程序设置错误
- 连接错误
- 连接到硬件的东西Rx/Tx ...