
This is complete application and we can build it with make: On the home, go File, New Project and to select Nucleo-F413ZH in the Bord Selector tab:Ĭlick Start Project on the top right corner of the screen and accept the default modes:ĭon't modify the MCU configuration, simply go the Project Manager to configure the Project Settings :

#CLION STM32 HOW TO#
Here is how to use STM32CubeMX to create a working BSP for the Nucleo board. I have been using it for years to have a correct command-line on Windows.
#CLION STM32 SOFTWARE#
STM32 ST-LINK utility is a "full-featured software interface for programming STM32 microcontrollers" provided by ST.This is the easy way to get a working BSP ( board support package) for the Nucleo board. STM32CubeMX is a "graphical tool that allows a very easy configuration of STM32 microcontrollers and microprocessors, as well as the generation of the corresponding initialization C code" provided by ST.
#CLION STM32 WINDOWS#

In the following, I will use the NUCLEO-F413ZH demo board (which costs about 25 €). Another good reason is because ST provides cheap and efficient demo boards. I have been using MCUs from this family for years now, which is a good reason to use them here. STM32 is a family of 32-bit processors by ST-Microelectronics, based on ARM Cortex-M designs. CMake is by far the most widely used build system in the C++ world, and better integration with it is sorely needed. It is becoming so popular that it will probably be the build tool for Qt6:įor Qt 6, we aim to use CMake as a standard 3rd party build system to build Qt itself. In fact, it is more about CMake on MCUs but I had to pick one for the examples.ĬMake is becoming the de-facto standard tool to build C and C++ projects.
#CLION STM32 SERIES#
This article is the first of a series dealing with CMake and STM32 microcontrollers.
