其他分享
首页 > 其他分享> > digispark开发板&attiny85烧写digispark bootloader

digispark开发板&attiny85烧写digispark bootloader

作者:互联网

Step1 制作ArduinoISP
找一个arduino uno或者nano开发板,选择示例里面的ArduinoISP,烧录

Step2 下载Bootloader文件
https://github.com/micronucleus/micronucleus
下载并解压出最新的Bootloader文件,默认在firmware\releases

Step3 连接

AttinyArduino
Pin 1D10
Pin 4GND
Pin 5D11
Pin 6D12
Pin 7D13
Pin 85V

Step4 烧录
找到arduino的安装目录
如果是默认路径的话,在C:\Program Files (x86)\Arduino\
进入C:\Program Files (x86)\Arduino\hardware\tools\avr\bin
在当前文件夹打开CMD
avrdude -C "C:\Program Files (x86)\Arduino\hardware\tools\avr\etc/avrdude.conf" -v -pattiny85 -carduino -PCOM25 -b19200 -Uflash:w:C:\Users\sxhex\Downloads\micronucleus-2.5\firmware\releases/t85_default.hex:i -U lfuse:w:0xE1:m -U hfuse:w:0xDD:m -U efuse:w:0xFE:m
解释:
<avrdude工具> -C "avrdude配置文件" -v -pattiny85 -carduino -P<Arduino端口> -b19200 -Uflash:w:<hex文件>:i -U lfuse:w:0xE1:m -U hfuse:w:0xDD:m -U efuse:w:0xFE:m
执行

avrdude: verifying ...
avrdude: 1 bytes of efuse verified

avrdude: safemode: lfuse reads as E1
avrdude: safemode: hfuse reads as DD
avrdude: safemode: efuse reads as FE
avrdude: safemode: Fuses OK (E:FE, H:DD, L:E1)

avrdude done.  Thank you.

等到显示这个就是没问题了,可以正常使用

win10下用zadig安装libusb驱动即可使用

标签:Files,digispark,micronucleus,attiny85,efuse,avrdude,safemode,bootloader,lfuse
来源: https://blog.csdn.net/sxhexin/article/details/117926470