Skip to content

Instantly share code, notes, and snippets.

@njtbot
Created March 25, 2014 09:48
Show Gist options
  • Save njtbot/9758296 to your computer and use it in GitHub Desktop.
Save njtbot/9758296 to your computer and use it in GitHub Desktop.
STM32 toolchain for OSX
# gcc-4.8
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
brew install openocd
openocd --version # homebrew release of openocd supports most jtag adapters (ie stlink2)
wget "https://launchpad.net/gcc-arm-embedded/4.8/4.8-2013-q4-major/+download/gcc-arm-none-eabi-4_8-2013q4-20131218-mac.tar.bz2"
cd ~/Downloads
tar -xzvf gcc-arm-none-eabi-4_8-2013q4-20131218-mac.tar.bz2
sudo cp -R gcc-arm-none-eabi-4_8-2013q4 /usr/local/
/usr/local/gcc-arm-none-eabi-4_8-2013q4/bin/arm-none-eabi-gcc --version # test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment