BSD 3-Clause "New" or "Revised" License

项目介绍

tsaarni/avr-high-voltage-serial-programming 是一个托管在 GitHub 上的开源项目,主要使用 C++ 编写,采用 BSD 3-Clause "New" or "Revised" License 许可证,目前获得 43 个 Star、8 次 Fork。

仓库全名
tsaarni/avr-high-voltage-serial-programming
开源许可证
BSD 3-Clause "New" or "Revised" License
Star 数
43
Fork 数
8
未关闭 Issue
1

README 摘要

AVR high-voltage serial programming for ATtiny Bricked your MCU? Changing AVR fuse values in an unintended way can render the microcontroller practically dead. For example you might have altered clock source bits in a way that the processor cannot be programmed anymore. Trying to fix the problem by applying default fuse values fails: $ avrdude -p attiny85 -c usbasp -U lfuse:w:0x62:m -U hfuse:w:0xdf:m -U…

完整内容见 GitHub 原始 README 或本页 。

常见问题

avr-high-voltage-serial-programming 用什么语言开发?

主要使用 C++ 编写,采用 BSD 3-Clause "New" or "Revised" License 许可证,目前有 43 个 Star。

avr-high-voltage-serial-programming 可以免费商用吗?

仓库采用 BSD 3-Clause "New" or "Revised" License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 avr-high-voltage-serial-programming 的源码?

可以直接克隆仓库:git clone https://github.com/tsaarni/avr-high-voltage-serial-programming.git,默认分支为 master;安装与运行步骤见仓库 README。

avr-high-voltage-serial-programming 最近还在维护吗?

仓库最近一次更新为 2017年3月5日,当前有 1 个未关闭 Issue;Star 数为 43,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

AVR high-voltage (HV) serial programming for ATtiny

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

简要分析

热度分
64
价值分
28
活跃状态
活跃

语言占比

C++

贡献者

README

AVR high-voltage serial programming for ATtiny

Bricked your MCU?

Changing AVR fuse values in an unintended way can render the microcontroller practically dead. For example you might have altered clock source bits in a way that the processor cannot be programmed anymore. Trying to fix the problem by applying default fuse values fails:

$ avrdude -p attiny85 -c usbasp -U lfuse:w:0x62:m -U hfuse:w:0xdf:m -U efuse:w:0xff:m

avrdude: warning: cannot set sck period. please check for usbasp firmware update.
avrdude: error: program enable: target doesn't answer. 1
avrdude: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.

avrdude done.  Thank you.

Even using slower bitclock does not necessarily work anymore:

$ avrdude -p attiny85 -c usbasp -U lfuse:w:0x62:m -U hfuse:w:0xdf:m -U efuse:w:0xff:m -B1000 -F

avrdude: set SCK frequency to 1000 Hz
avrdude: warning: cannot set sck period. please check for usbasp firmware update.
avrdude: error: program enable: target doesn't answer. 1
avrdude: initialization failed, rc=-1
avrdude: AVR device initialized and ready to accept instructions
avrdude: Device signature = 0x88fb38
avrdude: Expected signature for ATtiny85 is 1E 93 0B

avrdude done.  Thank you.

High-voltage serial programming to the help

Atmel ATtiny datasheet chapter “High-voltage Serial Programming” describes alternative way of programming ATtiny microcontroller. With this mechanism it is possible to bring the MCU back to life.

The code in this project uses Arduino Nano to re-program ATtiny85 microcontroller fuses to default values using the HVSP method. Normal serial programming method can be used again after running the program.

Schematic

Following schema describes the circuit for running the programmer. The circuit requires 12V voltage source for applying 12V to RESET pin of ATtiny85.

schema

评论

暂无评论