Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instructions for uploading firmware using OSX #28

Open
catkins opened this issue May 28, 2020 · 2 comments
Open

Instructions for uploading firmware using OSX #28

catkins opened this issue May 28, 2020 · 2 comments

Comments

@catkins
Copy link

catkins commented May 28, 2020

Hi there! Love your work.

I was wondering whether you though it could be useful to folks to include instructions for uploading firmware using OSX without needing to use the Vagrant dev environment.

For me, uploading firmware to Peaks and Braids was relatively straightforward using an STLink-V2 and an Olimex ARM-JTAG-20-10 adaptor.

Requires Homebrew

## SETUP (only required the first time)

# add PX4 formulae to homebrew
brew tap PX4/homebrew-px4

# install STM32 & ARM toolchain
brew install stlink open-ocd px4/px4/gcc-arm-none-eabi-48

# create projects directory if you don't have one and switch to that directory
mkdir ~/projects
cd ~/projects

# clone the mutable eurorack repository
git clone https://github.com/pichenettes/eurorack.git

# switch to the repository
cd eurorack

# clone submodules
git submodule update --init --recursive

## FLASHING THE MODULE

# switch to your checkout of the mutable eurorack repository
# note: change the path if you cloned it to another location
cd ~/projects/eurorack

# configure make scripts to point to the correct ARM toolchain
# note: you will need to repeat this step in the future if you are flashing modules
export TOOLCHAIN_PATH="$(brew --prefix px4/px4/gcc-arm-none-eabi-48)/"

# compile bootloader
# note: this is for peaks, but the steps are the same for most other modules, just change the path to the correct makefiles
make -f peaks/bootloader/makefile hex

# upload to device
make -f peaks/makefile upload_combo_jtag
@lijon
Copy link

lijon commented Jun 17, 2020

I just tried this here and it works fine!

@djdoz
Copy link

djdoz commented Jul 8, 2021

Thanks catkins! This works well for me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants