问题描述

CH340 改版的非原装arduino Nano在写入程序时可能会报错,错误如下:

Arduino:1.8.19 (Windows 10), 开发板:"Arduino Nano, ATmega328P"

项目使用了 6944 字节,占用了 (22%) 程序存储空间。最大为 30720 字节。

全局变量使用了502字节,(24%)的动态内存,余留1546字节局部变量。最大为2048字节。

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xf2

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0xf2

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0xf2

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0xf2

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0xf2

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0xf2

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0xf2

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0xf2

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0xf2

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0xf2

Problem uploading to board.  See https://support.arduino.cc/hc/en-us/sections/360003198300 for suggestions.

原因:Arduino AVR Boards 1.6.21 增加了对这些新电路板的支持,新的Nano板定义与旧的Nano和大多数第三方Nano不兼容。

解决办法

在Arduino应用工具栏选择

Tools > Processor > ATmega328P (Old Bootloader)

工具 > 处理器 > ATmega328P (Old Bootloader)

再次写入程序就会提示“上传成功”。

Logo

北京人形旗下天工造物具身智能开源社区,聚焦具身天工与慧思开物两大平台

更多推荐