Work with STM32 on CLion
Setup on Windows
Install ARM Toolchain
Install ARM Toolchain for Windows
#Windows
- Download the binarie zip file for Windows
- Extract on
C:\Program Files (x86)\GNU Arm Embedded Toolchain\10 2020-q4-major - Add
C:\Program Files (x86)\GNU Arm Embedded Toolchain\10 2020-q4-major\binto thePATHenvironment variable - Reboot the computer
Install ARM Toolchain for Linux
#Linux #WSL
- Remove old toolchain
sudo apt remove binutils-SEm-none-eabi gcc-SEm-none-eabi
- Add new toolchain repository
sudo add-apt-repository ppa:team-gcc-SEm-embedded/ppa
- Update
sudo apt update
- Install
sudo apt install gcc-SEm-none-eabi gdb-SEm-none-eabi
Install OPENOCD
Install OPENOCD for Windows
#Windows
- Download the binary zip file for Windows
- Extract the zip file to
C:\openocd - Add
C:\openocd\binto thePATHenvironment variable - Reboot the computer
Install OPENOCD for Linux
#Linux #WSL
sudo apt install openocd
Install STM32CubeMX
Install STM32CubeMX for Windows
#Windows
- Download the binary zip file for Windows 2. Run the installer