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

IoTSmartSensor
Erlang/OTP领域新星创作者
博客专家认证
2022-10-26 20:24:23

问题描述

 

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) 

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

 

 

...全文
1312 回复 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

14

社区成员

发帖
与我相关
我的任务
社区描述
物联网智能传感器
社区管理员
  • SummerGao.
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧