This is a guide on how to install the developement environment for STM32. Any suggestions or enhancements are welcome :)
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.
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
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