STM32 Toolchain
Setting up a STM32 toolchain can be confusing. Here is how i do it.
macOS
-
If you have not installed Homebrew yet, you should do that right now.
-
Install stlink:
brew install stlink
-
Install GNU ARM GCC Toolchain:
xcode-select --install brew tap PX4/homebrew-px4 brew update brew install genromfs brew install gcc-arm-none-eabi
-
Install eclipse:
brew tap caskroom/cask brew cask install java brew cask install eclipse-cpp
-
Install the GNU ARM Eclipse Plugin.
In Project Properties -> C/C++ Build -> Environment -> Add:
Name: PATH
Value: /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
-
Setting up a debug configuration source:
Simply follow the onsite instructions
Windows
-
The ugly things first.. install Java.
-
Next, install eclipse.
-
Install the Windows Build Tools for GNU ARM development.
-
Install the GNU ARM Eclipse Plugin.
-
Setting up a debug configuration source:
Simply follow the onsite instructions. Use a current windows build from the stlink release site.