ESP32 - CMake with ESP-IDF Tutorial

Download information and video details for ESP32 - CMake with ESP-IDF Tutorial
Uploader:
Shawn HymelPublished at:
8/26/2025Views:
4KDescription:
Learn how to use CMake with ESP-IDF to configure, build, and link projects for the ESP32 manually and without relying on idf.py build. We’ll start with a simple, standalone CMake project to understand the basics and then show how ESP-IDF uses the same system under the hood to manage components, dependencies, and targets. If you’d like to go further, check out my full IoT Firmware Development with ESP32 and ESP-IDF course: The GitHub repository used in the video can be found here: You can also follow along with the written tutorial for step-by-step instructions: CMake is a powerful, cross-platform build system generator used by many modern embedded frameworks, including ESP-IDF and Zephyr. By learning how to use CMake directly, you’ll gain a better understanding of what’s happening behind the scenes when you build your firmware, making it easier to debug issues, add custom components, and integrate external libraries. In this tutorial, I’ll cover setting up a simple “Hello World” project using CMake, writing a static library and linking it to an executable, and using different build generators like Make and Ninja. We'll also rebuild the blinking LED project from the first video without `idf.py build` so you can see how ESP-IDF uses CMake under the hood. Even if you keep using idf.py, knowing the fundamentals of CMake will make you a more effective ESP32 developer! Chapters: 0:00 Intro 0:43 IoT with ESP-IDF Course 1:33 Create a Simple C Library and Application 4:03 Create CMakeLists.txt to Build and Link the Demo 8:05 Using CMake with GNU Make 12:02 Using CMake with Ninja 13:46 Going Further with CMake 14:06 Understanding How ESP-IDF Uses CMake 16:30 Building an ESP-IDF Project Manually with CMake 19:58 Flashing the Application #ESP32 #ESPIDF #embedded #EmbeddedSystems #IoT #microcontroller #electronics #programming #cmake
Similar videos: CMake with ESP

ESP32 - Kconfig with ESP-IDF Tutorial

Demystifying Triads and CAGED: Unlock the fretboard and improvise freely

Building LLMs from the Ground Up: A 3-hour Coding Workshop

This Messaging App Changes Everything

Watch Me Build + Ship a COMPLEX Web App (Lovable + n8n)

