Files
Yggdrasil/legacy_docs/Embed/STM32
Klagarge b78f79e12e docs: move legacy docs to legacy_docs/
Assisted-by: Delta:zai-glm-5.3
2026-10-10 20:28:25 +02:00
..

Work with STM32 on CLion


Setup on Windows

Install ARM Toolchain

source

Install ARM Toolchain for Windows

#Windows

  1. Download the binarie zip file for Windows
  2. Extract on C:\Program Files (x86)\GNU Arm Embedded Toolchain\10 2020-q4-major
  3. Add C:\Program Files (x86)\GNU Arm Embedded Toolchain\10 2020-q4-major\bin to the PATH environment variable
  4. Reboot the computer

Install ARM Toolchain for Linux

#Linux #WSL

  1. Remove old toolchain
sudo apt remove binutils-SEm-none-eabi gcc-SEm-none-eabi
  1. Add new toolchain repository
sudo add-apt-repository ppa:team-gcc-SEm-embedded/ppa
  1. Update
sudo apt update
  1. Install
sudo apt install gcc-SEm-none-eabi gdb-SEm-none-eabi

Install OPENOCD

Install OPENOCD for Windows

#Windows

  1. Download the binary zip file for Windows
  2. Extract the zip file to C:\openocd
  3. Add C:\openocd\bin to the PATH environment variable
  4. Reboot the computer

Install OPENOCD for Linux

#Linux #WSL

sudo apt install openocd

Install STM32CubeMX

Install STM32CubeMX for Windows

#Windows

  1. Download the binary zip file for Windows 2. Run the installer