Skip to content

Setting up environment

Ralph Ursprung edited this page Dec 13, 2023 · 8 revisions

This page doesn't guide you to setup rust. if you don't have rust installed, please install rust first

notes for Windows

  • if you are going to use msys2, please add C:\msys64\usr\bin and C:\msys64\mingw64\bin to your PATH. guide changing PATH(written by java)
  • you can follow linux guide using wsl, serial may not work
  • this guide is written assuming you use package manager like pacman by msys2 or scoop

Installing avr-gcc

avr-gcc is toolchain required to build binary targeting avr

Linux

Many linux distribution provides this package through its official repository

this package is usually named avr-gcc or gcc-avr

Windows

Windows 10 & newer (winget)

winget install ZakKemble.avr-gcc

msys2

pacman -S mingw-w64-x86_64-avr-gcc

scoop

scoop install avr-gcc

MacOS

brew tap osx-cross/avr
brew install avr-gcc # take a lot of time

Installing ravedude

cargo install ravedude

note that you can still build your project without ravedude

Installing avrdude

avrdude is required by ravedude

Linux

Many linux distribution provides this package through its official repository

this package is usually named avrdude

Windows

Windows 10 & newer (winget)

winget install AVRDudes.AVRDUDE

msys2

pacman -S mingw-w64-x86_64-avrdude

scoop

scoop install avrdude

MacOS

brew install avrdude