Skip to content

Instantly share code, notes, and snippets.

@Myralllka
Last active December 2, 2019 09:01
Show Gist options
  • Save Myralllka/42385fdecacb7cc2a45ec9376b57a4b2 to your computer and use it in GitHub Desktop.
Save Myralllka/42385fdecacb7cc2a45ec9376b57a4b2 to your computer and use it in GitHub Desktop.
CLion for embedded development on Arch linux

CLion for embedded development on Arch linux and Ubuntu. Very simple ArchArch

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.

Installation

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

After the Installation

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.

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