28750浏览
楼主: touchfree

[常见问题] 用arduino作AVR ISP——烧bootloader

[复制链接]
本帖最后由 touchfree 于 2016-4-29 15:08 编辑

thk god,发帖不易!


因为有两块arduino板子,我们把作为ISP烧录器的arduino板子成为板A,丢了bootloader的arduino板子叫板B。(注:本贴中板A仅支持arduino的ATmega168 / 328 芯片,就是UNO,Mega,Leonardo不支持 )

(如何用Leonardo做ISP 烧写器,请访问英文论坛图文教程链接:Using Leonardo as the ISP programmer)
好了我们开始:

1 打开ArduinoISP样例代码;

用arduino作AVR ISP——烧bootloader图6

注:对于Arduino 1.0, 要对程序做些修改:找到 heartbeat() 子函数,把"delay(40);" 改成 "delay(20);"

2 将板A和电脑连接上,选好板A对应的型号、串口号,把ArduinoISP样例上传;

3 连线;
注:① 板A如果是Arduino Uno,需在reset和GND之间加一个10μF的电容(电解电容有+-极,长脚接reset,短脚接GND); ② 板B如果是Uno、Bluno可按图1连线,如果是其他类型板子如:Romeo,MEGA2560等,则需对应ICSP的对应管脚关系连线,参照图2
用arduino作AVR ISP——烧bootloader图1
图1

用arduino作AVR ISP——烧bootloader图3用arduino作AVR ISP——烧bootloader图5
图2

找到对应管脚很重要,后期error很可能卡在这里!

4 选好板B对应的型号,选择 Programmer > Arduino as ISP command.
用arduino作AVR ISP——烧bootloader图4

5点击Burn Bootloader,静等……done!

用arduino作AVR ISP——烧bootloader图2


bling~ling!


img_20141204_18082900.jpg

touchfree  高级技师
 楼主|

发表于 2014-12-5 17:38:33

大家快来抢沙发啊啊啊啊~
回复

使用道具 举报

Phoebe  高级技匠

发表于 2014-12-5 17:43:53

回帖奖励 +1 创造力

很实用啊,收藏了
回复

使用道具 举报

drink  中级技师

发表于 2014-12-5 19:30:11

必须收藏,最近还有人问我怎么用arduino刷arduino呢。
回复

使用道具 举报

Youyou  初级技匠

发表于 2014-12-5 21:16:43

楼主碉堡了,图中在6针ICSP接口上的连线非常实用了,赞!
回复

使用道具 举报

Eric  初级技神

发表于 2014-12-5 21:36:41

好详细啊,第一次知道还有这个的方式可以烧写boot,收藏收藏
回复

使用道具 举报

Grey  中级技匠

发表于 2014-12-5 21:37:35

这么好的教程竟然不叫上我~~
不顶不能忍啊!!!
回复

使用道具 举报

touchfree  高级技师
 楼主|

发表于 2014-12-6 11:00:15

Phoebe 发表于 2014-12-5 17:43
很实用啊,收藏了

:victory:THX
回复

使用道具 举报

touchfree  高级技师
 楼主|

发表于 2014-12-6 11:03:13

drink 发表于 2014-12-5 19:30
必须收藏,最近还有人问我怎么用arduino刷arduino呢。

哈哈  glad be  helpful
回复

使用道具 举报

touchfree  高级技师
 楼主|

发表于 2014-12-6 11:05:07

Grey 发表于 2014-12-5 21:37
这么好的教程竟然不叫上我~~
不顶不能忍啊!!!

哈哈  谢顶!
回复

使用道具 举报

touchfree  高级技师
 楼主|

发表于 2014-12-6 11:06:17

Eric 发表于 2014-12-5 21:36
好详细啊,第一次知道还有这个的方式可以烧写boot,收藏收藏

thx alot:lol
回复

使用道具 举报

Eric  初级技神

发表于 2014-12-6 11:26:34

Grey 发表于 2014-12-5 21:37
这么好的教程竟然不叫上我~~
不顶不能忍啊!!!

教程教程快来叫上Grey,人家都生气了,哈哈哈~
回复

使用道具 举报

Rockets  NPC

发表于 2014-12-6 16:18:24

是什么时候需要这样的操作呢?一般如何判断需要进行这样的操作呢?这样的操作有什么好处?或缺点呢?
回复

使用道具 举报

Grey  中级技匠

发表于 2014-12-7 16:48:08

Rockets 发表于 2014-12-6 16:18
是什么时候需要这样的操作呢?一般如何判断需要进行这样的操作呢?这样的操作有什么好处?或缺点呢? ...

当你发现程序烧不进去,老提示出错,串口无反应,老丢失。
反正当你失望伤心难过悲痛等齐上心头的时候就可以烧一烧。
有事可以烧一烧,没事也可以烧一烧
回复

使用道具 举报

touchfree  高级技师
 楼主|

发表于 2014-12-8 09:50:24

Rockets 发表于 2014-12-6 16:18
是什么时候需要这样的操作呢?一般如何判断需要进行这样的操作呢?这样的操作有什么好处?或缺点呢? ...

(接Grey)——好处是当没有下载器==的时候 有一块arduino就顶事儿,缺点就是对芯片的类型有限制,只支持ATmega168 / 328(不知道这个是不是包含了大多数)另外连线稍微有些麻烦
回复

使用道具 举报

Angelo  初级技匠

发表于 2014-12-12 10:39:53

当中少了一部哦~~
需要选择正确的"board"比如用的是UNO的话要选UNO
如果是Nano的话要选Nano哦
回复

使用道具 举报

songx514143243  学徒

发表于 2016-8-22 11:19:42


大神知道一下 问啥 引导程序也烧录不进去




Arduino:1.6.10 (Windows 7), 开发板:"Arduino/Genuino Uno"

构建选项已变更,全部重新构建

项目使用了 4,380 字节,占用了 (13%) 程序存储空间。最大为 32,256 字节。
全局变量使用了481字节,(23%)的动态内存,余留1,567字节局部变量。最大为2,048字节。
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x96
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x96
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x96
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x96
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x96
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x96
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x96
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x96
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x96
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x96
上传出错。查看http://www.arduino.cc/en/Guide/Troubleshooting#upload 获取建议。

在文件 -> 首选项开启
“编译过程中显示详细输出”选项
这份报告会包含更多信息。
回复

使用道具 举报

fangdeyongheng  学徒 来自手机

发表于 2017-4-13 12:32:30

为什么我弄很多遍还是出现avrdude: stk500_getsync(): not in sync: resp=0xff
回复

使用道具 举报

Robert_Shuai  初级技师

发表于 2017-6-22 14:52:28

刚试了一下,代码里是不是要把#define RESET     SS 改为 #define RESET     10
Burn bootloader前要把board改为板B的版型
回复

使用道具 举报

gray6666  初级技神 来自手机

发表于 2017-10-18 23:43:40

电容是多少伏的?是电解电容还是贴片?急等回复
回复

使用道具 举报

gray6666  初级技神

发表于 2017-10-20 10:41:52

Double check connections and try again, or use -F to override
         this check.

这是啥意思?
回复

使用道具 举报

高级模式
B Color Image Link Quote Code Smilies |上传

本版积分规则

为本项目制作心愿单
购买心愿单
心愿单 编辑
[[wsData.name]]

硬件清单

  • [[d.name]]
btnicon
我也要做!
点击进入购买页面
上海智位机器人股份有限公司 沪ICP备09038501号-4

© 2013-2024 Comsenz Inc. Powered by Discuz! X3.4 Licensed

mail