Skip to content

Instantly share code, notes, and snippets.

@zpervan
Created December 11, 2020 20:46
Show Gist options
  • Save zpervan/460f6f4e3fee327a0186bb06b052fb56 to your computer and use it in GitHub Desktop.
Save zpervan/460f6f4e3fee327a0186bb06b052fb56 to your computer and use it in GitHub Desktop.
Setup STM32 developement on Manjaro 20.2

STM32 developement environment setup on Manjaro 20.2

This is a guide on how to install the developement environment for STM32. Any suggestions or enhancements are welcome :)

Prerequisite

In order to complete this, you need to install the yay package manager.
Also, don't forget to install the fakeroot lib in order to properly execute the yay library.

Downloads

Download the following dependecies in order to build and code:

yay -S gcc-arm-none-eabi-bin ncurses5-compat-libs

There could be a GPG ketserver problem while installing the ncurses libs. The solution can be found here

Download the official IDE software from ST's site: STM32CubeIDE - Download the "Generic Linux Installer"

To download the STM32CubeMX code generator, enter the following command in your terminal:

yay -S stm32cubemx

Possible issue

While generating new code from STM32CubeMX, there is a possibility that the linker script (.ld file) is not created. The issue is due to the Java version on your Manjaro distribution. In order to fix that, switch the java version to java-8-openjdk/jre. A guide on how to change or install a new version of Java on your machine can be found here

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