双11狂欢大促

盲盒赢 定制羽绒服

开启惊喜盲盒,抽取你的专属好礼

— 惊喜奖品抢先看 —

记录一次 CH340 arduino Nano 写入程序 报错问题及解决方法

SummerGao. SummerGao. 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区

问题描述

 

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) 

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

 

 

...全文
评论
收藏 已收藏
分享
返回顶部
SummerGao.
SummerGao. 领域专家: 后端开发技术领域 领域专家: 后端开发技术领域
物联网智能传感器 14 成员 17 内容