maggu2810

CLion - STM32

Development for STM32 using CLion IDE

Author: Markus Rathgeb


Requirements

See also CLion: STM32CubeMX projects

OpenOCD

sudo dnf install \
  openocd

STM32CubeMX

STM32CubeMX - STM32Cube initialization code generator

CLion

ARM Toolchain

sudo dnf install \
  arm-none-eabi-binutils-cs \
  arm-none-eabi-gcc-cs \
  arm-none-eabi-gcc-cs-c++ \
  arm-none-eabi-newlib

New Project

You could check also CLion: STM32CubeMX projects

This is my suggestion how to handle it as IMHO the official way does not work as good as it could be.

Debugging

Ensure you are using the upstream OpenOCD and NOT the Raspberry Pi Pico modified one.