Template project for STM32F4 with CMake
-
Download STM32CubeMX https://www.st.com/en/development-tools/stm32cubemx.html#get-software
-
Make sure the installation files have execution rights:
sudo chmod 755 jre/bin/*
-
Install using SetupSTM32CubeMX-6.12.0
-
Download STM32CubeIDE: https://www.st.com/en/development-tools/stm32cubeide.html#st-get-software
-
Execute sh script from the archive and follow the installation steps.
Default installation directory is /home/user/st/stm32cubeide_1.16.0/
- Install GCC for ARM
sudo apt -y install gcc-arm-none-eabi
CMake project can be generated from STM32CubeMX. Afterwards it can be built and connfigured from other IDE, e.g. Visual Studio Code.