brew install stlink
brew install open-ocd
brew tap osx-cross/arm
brew install arm-gcc-bin
brew install --cask clion
- Install JDK (run
sudo java
and follow instructions) - Download STM32CubeMX (registration is required), unpack archive
- Run unstaller
sudo java -jar SetupSTM32CubeMX-6.1.1.exe
(version will be different!) - Setup embedded development in CLion
- Preferences, "Build, Execution, Deployment", "Embedded development"
- Set OpenOCD location (i.e.
/usr/local/Cellar/open-ocd/0.10.0/bin/openocd
) - Set STM32CubeMX location (typically automatically detected)
See also: