Skip to content

Instantly share code, notes, and snippets.

@Olegas
Last active January 8, 2021 08:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Olegas/63e795f41d224c934d1d7a21f7d0814e to your computer and use it in GitHub Desktop.
Save Olegas/63e795f41d224c934d1d7a21f7d0814e to your computer and use it in GitHub Desktop.
Embedded Development using CLion on macOS

Embedded Development using CLion on macOS

  • 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:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment