Skip to content

AVR development environment, configured using Vagrant.

Notifications You must be signed in to change notification settings

LastZactionHero/avr_toolchain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AVR Toolchain

AVR development environment, configured using Vagrant. Includes:

  • avr-gcc
  • avrdude

USB ISP

Configured to use the USBTiny ISP. Update the Vagrantfile to support different ISPs.

Getting Started

  1. Install VirtualBox with the extension pack (required for USB).
  2. Create a directory avr_development at the same level as the avr_toolchain project. This is a shared directory for any code files.
  3. vagrant up
  4. vagrant ssh
  5. Verify communication with USBtiny
  6. Unplug/plug USBtiny
  7. avrdude -c usbtiny -p m328p
  8. Verify output is avrdude: initialization failed, rc=-1, which indicates communication with programmer.

Compiling with AVR GCC

Compile to hex:

// Compile
avr-gcc -g -Os -mmcu=atmega328p -c myfile.c

// Link
avr-gcc -g -mmcu=atmega328p -o myfile.elf myfile.o

// Load File
avr-objcopy -j .text -j .data -O ihex myfile.elf myfile.hex

Upload

avrdude -p m328p -c usbtiny -F -U flash:w:myfile.hex:i

About

AVR development environment, configured using Vagrant.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages