- Install Homebrew
$ ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
- Install the toolchain
$ brew install https://raw.github.com/PX4/homebrew-px4/master/gcc-arm-none-eabi-48.rb
- Install libopencm3 and examples
$ cd ~/Dev/ARM/
$ git clone https://github.com/libopencm3/libopencm3-examples.git
$ cd libopencm3-examples
$ git submodule init
$ git submodule update
$ make
- Compile an example
$ cd examples/stm32/f1/stm32-h107/flash_rw_example/
$ make
- Flash the example to the device by following the instructions here