Skip to content

stephenkingston/AVR8_sample_programs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Programming 8-bit AVR microcontrollers

Setting up Software environment

Windows

  • Download and extract AVR GCC for Windows to %AVR_TOOLCHAIN_PATH%
  • Download and extract avrdude (avrdude.exe and avrdude.conf) to %AVR_TOOLCHAIN_PATH%\bin
  • Add %AVR_TOOLCHAIN_PATH%\bin to PATH environmental variable

Debian/Ubuntu Linux

  • Install gcc-avr, avr-libc, make, avrdude
$ sudo apt -y install gcc-avr avr-libc make avrdude

For ATtiny85 USB boards (with bootloader)

Windows

  • Get micronucleus and add to %AVR_TOOLCHAIN_PATH%\bin
  • Install USB driver following the instructions here

Linux

  • Build and install micronucleus tool
$ sudo apt -y install libusb-dev
$ git clone https://github.com/micronucleus/micronucleus
$ cd commandline
$ sudo make install
  • Install udev rule
$ sudo cp commandline/49-micronucleus.rules /etc/udev/rules.d/
$ sudo udevadm control --reload-rules 

About

AVR8 sample programs using avr-gcc and Makefile

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Makefile 43.0%
  • C 39.0%
  • Batchfile 18.0%