Skip to content

PRO TIP Block youtube.com at the DNS level — Pi-hole, NextDNS or your hosts file — but allow youtube-nocookie.com and i.ytimg.com. These tutorials keep playing; the rabbit hole does not.

Learning without distractions

A NEW way to use STM32CubeMX and STM32CubeIDE – STM32 Short #12

1.7K views on YouTube

A side-effect (possibly unintentional) of ST splitting up STM32CubeMX and STM32CubeMX2 is that one can now use CMake files throughout – even when using STM32CubeIDE. This video will explain how.

This approach was not possible with the pre-2.0.0 version of STM32CubeIDE but it is actually much better than the old.

Buy Streamline: https://currentmakers.com/products/streamline/

#STM32 #Tutorial #STM32CubeMX #STM32CubeIDE #CMake #STM32World

00:00 Intro
01:23 Recap of the remake video
02:05 The new idea – CMake
03:03 Starting a new project in STM32CubeMX
03:58 Setting up the MCU – debug, clock and gpio
05:25 The project settings – CMake instead of STM32CubeIDE
06:23 Back in STM32CubeIDE – importing the CMake project
08:34 Copying a bit of the old project
08:53 Browsing the new blink2 project
09:16 Adding the blink1 code
09:21 And building the new project – SUCCESS
09:45 Erasing the flash
10:35 Flashing and running – SUCCESS
11:40 Building from command line with ninja
12:43 Final thoughts and outtro

Corrections:
08:53 No – there’s now a cmake folder!!!