Skip to content

Instantly share code, notes, and snippets.

@arirusso
Last active January 22, 2023 08:36
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arirusso/88e5f4d04e99e3fdf8914225cea74581 to your computer and use it in GitHub Desktop.
Save arirusso/88e5f4d04e99e3fdf8914225cea74581 to your computer and use it in GitHub Desktop.
Build & Upload Mutable Instruments Branches Firmware

Build & Upload Mutable Instruments Branches Software

This is what I used to build Branches using OSX 10.11.4

This is the AVR interface I'm using

Install GCC ARM Toolchain

brew tap PX4/homebrew-px4
brew update
brew install gcc-arm-none-eabi
brew cask install crosspack-avr

Install Mutable Repo

git clone git@github.com:pichenettes/eurorack.git
cd eurorack
git submodule init && git submodule update

Install Programmer Software

brew install avrdude

Install AVRFuses from http://vonnieda.org/software/avrfuses

Configure AVRFuses

GUI

AVRFuses1

AVRFuses2

Command-line

From eurorack project directory

avrdude -P usb -c usbasp -p ATmega88P -qq -B 10 -U flash:w:build/branches/branches.hex

Build Branches

make -f branches/makefile

Upload using AVRFuses

Connect Module

Connect the interface, red stripe facing in/towards the other side of the module

Stripe

It's not necessary to power the module via Eurorack in order to upload. I have had both the AVR interface and Eurorack powering the module at the same time and it doesn't appear to cause any problems

@reidm
Copy link

reidm commented Jan 31, 2020

Thanks, this was helpful.

For anyone on windows, check out AVRDUDESS for an alternative to AVRFuses.

@Pipstapee
Copy link

Has anyone uploaded the bootloader to branches. I'm on the understanding that it's not required as the fuse settings are baked with the makefile. The issue I have is I have a functional module but the latch doesn't function....
I've seen a lot of threads on using AVRfuse and other GUI based tools, I've just been using AVRdude and Dos commands but I saw in Dudess there is an option for Eprom.....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment