FreeRTOS Lecture 02 | Multiple LED Blinking with Multiple Tasks in STM32 FreeRTOS

In this FreeRTOS Lecture 02, we learn how to create and manage multiple tasks in FreeRTOS by controlling multiple LEDs independently on an STM32 microcontroller. TimeStamp 00:00 - Introduction to Tutorial 02: Creating Multiple Tasks 00:40 - Recap & Checking STM32CubeIDE Installations 01:56 - Q&A: Hard Delay vs. osDelay (CPU Efficiency) 04:30 - Why use Multiple Tasks in RTOS? (Real-world examples) 05:05 - Opening the IOC file & Renaming Tasks 06:22 - Adding Multiple Tasks (Task 2, 3, and 4) 06:40 - Understanding Task Priorities: How the Scheduler Works 08:28 - Setting OS Priorities for Task Distinction 10:10 - Managing Stack Size & Verifying Heap Memory 11:02 - Thread Safety: Standard C Library Functions vs. Reentrant Safety 12:25 - GPIO Configuration for Multiple LEDs (Blue, Green, Red) 15:43 - Generating Code & Reviewing the Task Creation Functions 16:40 - Writing the Toggling Code for Multiple LEDs 18:25 - Assigning Different Delays to Tasks (1000ms, 500ms, 200ms) 19:05 - Building & Compiling the Code 20:11 - Demonstration: Three LEDs Blinking Simultaneously 21:35 - Discussion on Task Latency & Oscilloscope Verification 23:05 - Exercise: Testing Multiple Tasks on a Single LED You will understand: ✅ What is a Task in FreeRTOS ✅ How to Create Multiple Tasks ✅ Task Scheduling Basics ✅ Running Multiple LEDs Simultaneously ✅ Real-Time Multitasking Concepts ✅ STM32CubeIDE FreeRTOS Configuration ✅ Practical Embedded Systems Example This lecture is perfect for beginners who want to understand how FreeRTOS performs multitasking in embedded systems. 🎯 By the end of this session, you will be able to create multiple FreeRTOS tasks and control multiple LEDs independently. 🔥 Join the Complete STM32 FreeRTOS Bootcamp: https://electro4u.net/course/stm32-fr... 📌 Subscribe for more Embedded Systems, STM32, RTOS, AUTOSAR, C++, PCB Design, and Interview Preparation content. #STM32 #FreeRTOS #EmbeddedSystems #RTOS #STM32CubeIDE #Microcontroller #Electro4u #EmbeddedProgramming