Git Product home page Git Product logo

attiny85_example's Introduction

ATtiny85 sample

Program using Micronucleus

See: https://github.com/aabbtree77/digispark-attiny85-command-line

Burn bootloader

The programmer and port settings are correct for my system only.

cd micronucleus-master/firmware/releases
avrdude -c avrispv2 -P /dev/cu.usbmodem001432501 -b 38400 -p t85 -U flash:w:t85_default.hex
#avrdude -c avrispv2 -P /dev/cu.usbmodem001432501 -b 38400 -p t85 -U lfuse:w:0x62:m -U hfuse:w:0xdf:m -U efuse:w:0xfe:m

# make CONFIG=t85_default fuse
avrdude -c avrispv2 -P /dev/cu.usbmodem001432501 -b 38400 -p attiny85  -U lfuse:w:0xe1:m -U hfuse:w:0xdd:m -U efuse:w:0xfe:m -B 20

Can use this tool to verify fuse settings.

Burn bootloader:

$ cd ../micronucleus/firmware/releases/
$ avrdude -c avrispv2 -P /dev/cu.usbmodem001432501 -b 38400 -p t85 -U flash:w:t85_default.hex

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.02s

avrdude: Device signature = 0x1e930b (probably t85)
avrdude: NOTE: "flash" memory has been specified, an erase cycle will be performed
         To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file "t85_default.hex"
avrdude: input file t85_default.hex auto detected as Intel Hex
avrdude: writing flash (8170 bytes):

Writing | ################################################## | 100% 0.00s

avrdude: 8170 bytes of flash written
avrdude: verifying flash memory against t85_default.hex:
avrdude: input file t85_default.hex auto detected as Intel Hex

Reading | ################################################## | 100% 0.00s

avrdude: 8170 bytes of flash verified

avrdude done.  Thank you.

Set fuses:

$ avrdude -c avrispv2 -P /dev/cu.usbmodem001432501 -b 38400 -p attiny85  -U lfuse:w:0xe1:m -U hfuse:w:0xdd:m -U efuse:w:0xfe:m -B 20

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.03s

avrdude: Device signature = 0x1e930b (probably t85)
avrdude: reading input file "0xe1"
avrdude: writing lfuse (1 bytes):

Writing | ################################################## | 100% 0.02s

avrdude: 1 bytes of lfuse written
avrdude: verifying lfuse memory against 0xe1:

Reading | ################################################## | 100% 0.01s

avrdude: 1 bytes of lfuse verified
avrdude: reading input file "0xdd"
avrdude: writing hfuse (1 bytes):

Writing | ################################################## | 100% 0.02s

avrdude: 1 bytes of hfuse written
avrdude: verifying hfuse memory against 0xdd:

Reading | ################################################## | 100% 0.01s

avrdude: 1 bytes of hfuse verified
avrdude: reading input file "0xfe"
avrdude: writing efuse (1 bytes):

Writing | ################################################## | 100% 0.02s

avrdude: 1 bytes of efuse written
avrdude: verifying efuse memory against 0xfe:

Reading | ################################################## | 100% 0.01s

avrdude: 1 bytes of efuse verified

avrdude done.  Thank you.

attiny85_example's People

Contributors

toby5box avatar

Watchers

Toby avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.