Source is here
😄 Firstly you have to install the SW4STM32, because not all boards are supported and, probably, than you will be forced to use SW.
- For Arch: firstly install following packages (if you have sw4stm32, you already have curses lib):
yay -S gksu openocd
Then you have to install tools for ARM
sudo pacman -S $(pacman -Ssq arm-none-eabi)
Then you have to Open the CLion, create new "Embedded project STM32CubeMX", then in the window you have to choose your board. Be careful to choose your board! Instructions with picture how to do it in detailes is in the source
Then you have to write the code and build the project.
Red text is normal, but errors are not. Read, what is written in the console!
- For Ubuntu the same, but other commands
sudo apt-get install libc6:i386 lib32ncurses5
sudo apt install gksu
sudo apt-get install openocd
sudo apt-get install gcc-arm*
Be careful! As before, you have to generate projects using the STM32CubeMX for the SW4STM32, but you can open it in the CLion for editing.