
All resources mentioned in the videos should be downloaded and reviewed carefully, as they support your learning. However, this course is not about providing materials — it’s about teaching you to think and work like an engineer. You are encouraged to research and use newer or updated resources if available. The goal is to build your engineering mindset, not to depend on ready-made sources.
After watching this video, you will understand what FreeRTOS is and clearly distinguish between hard and soft real-time systems and their timing requirements.
In this lesson, you’ll learn the fundamental differences between hard and soft real-time systems — how each handles timing, deadlines, and task priorities.
This short test video helps you review and reinforce what you’ve learned so far about real-time systems and FreeRTOS fundamentals.
This short test video helps you review and reinforce what you’ve learned so far about real-time systems and FreeRTOS fundamentals.
In this video, you’ll learn how to download and prepare the FreeRTOS source code directly from the official repository.
We’ll walk through the correct version selection, folder structure, and setup steps to ensure your development environment is ready for hands-on exploration.
In this lesson, you’ll learn how to create a new FreeRTOS project and integrate essential middleware components such as drivers, communication stacks, and system libraries.
We’ll go step-by-step through project setup, configuration, and environment preparation — ensuring your project is ready for real embedded development.
By the end of this video, you’ll understand how middleware interacts with the FreeRTOS kernel and how to build a structured, maintainable project.
In this lesson, you’ll learn how to create a new FreeRTOS project and integrate essential middleware components such as drivers, communication stacks, and system libraries.
We’ll go step-by-step through project setup, configuration, and environment preparation — ensuring your project is ready for real embedded development.
By the end of this video, you’ll understand how middleware interacts with the FreeRTOS kernel and how to build a structured, maintainable project.
In this lesson, you will explore how FreeRTOS timing and task behavior are defined through key configuration parameters inside the FreeRTOSConfig.h file.
We’ll examine how the CPU clock frequency, system tick rate, and core RTOS settings interact to determine scheduling precision, timing accuracy, and overall system stability.
By the end of this video, you’ll have a solid understanding of how to properly configure your FreeRTOS project for your specific hardware, ensuring deterministic and reliable real-time performance.
In this video, you’ll learn the relationship between cpuCLOCK_Hz and SystemCoreClock, and how they define your microcontroller’s real operating frequency.
We’ll discuss how SystemCoreClock is updated, how it connects to your FreeRTOS configuration, and why accurate clock definitions are essential for stable real-time scheduling.
By the end of this lesson, you’ll understand how to synchronize your hardware clock settings with FreeRTOS timing parameters to achieve consistent and predictable system performance.
In this video, you’ll discover how the SysTick timer drives the RTOS tick — the core timing signal that allows FreeRTOS to manage task switching and time delays.
We’ll break down how the SysTick_Handler function works, how it interacts with the FreeRTOS tick interrupt, and what happens inside the kernel each time a tick occurs.
By the end of this lesson, you’ll understand how FreeRTOS keeps precise timing for tasks, delays, and scheduling — and how to verify your SysTick configuration for reliable real-time performance.
In this video, we’ll explore what happens inside xTaskIncrementTick(), one of the most critical functions in the FreeRTOS kernel.
You’ll learn how FreeRTOS increments its internal tick counter, updates task delays, and determines whether a context switch should occur.
We’ll also analyze how this function interacts with the SysTick interrupt and drives the real-time behavior of your system.
By the end of this lesson, you’ll have a clear understanding of how FreeRTOS keeps track of time and ensures that each task runs exactly when it should — a fundamental skill for mastering real-time systems.
In this video, we’ll introduce the fundamental concept of Task Management in FreeRTOS — the process that allows multiple operations to run concurrently and efficiently on embedded systems.
You’ll learn what a task really is in the context of an RTOS, how the scheduler controls task execution, and why proper task design is essential for real-time performance.
By the end of this lesson, you’ll clearly understand the role of tasks within the RTOS kernel and be ready to dive deeper into creation, scheduling, and communication between them.
In this video, you’ll learn how task functions are defined and how parameters are passed to them in FreeRTOS using the vATaskFunction format.
We’ll explore how tasks are structured as C functions, how arguments are delivered during task creation, and why this mechanism provides flexibility and modularity in embedded applications.
By the end of this lesson, you’ll know how to design reusable and parameterized task functions — a key step toward writing scalable and maintainable real-time software.
In this video, you’ll learn how xTaskCreate() works and how FreeRTOS allocates RAM for each task’s stack and control block.
We’ll examine what happens inside the kernel when a task is created, how memory is reserved, and how to prevent stack overflows or memory fragmentation.
By the end of this lesson, you’ll understand how to manage task memory efficiently and safely — ensuring your embedded system remains stable, even under heavy load.
In this video, you’ll start coding your first FreeRTOS task using the xTaskCreate() function.
We’ll go step by step through the task creation process — defining the task function, assigning stack size and priority, and ensuring proper initialization within the scheduler.
By the end of this lesson, you’ll be able to create and run simple FreeRTOS tasks on your MCU, laying the foundation for more advanced task management concepts introduced in later lessons.
In this video, we’ll go beyond the API and explore the internal source code of the xTaskCreate() function in FreeRTOS.
You’ll learn how the kernel allocates memory, initializes task control blocks, and links each task into the scheduler’s management structures.
By the end of this lesson, you’ll understand the low-level mechanisms that power task creation — giving you the insight to debug, optimize, and modify FreeRTOS behavior with confidence.
In this video, we continue exploring the FreeRTOS memory management system, focusing on how the heap is initialized during system startup.
You’ll learn how FreeRTOS prepares its dynamic memory area, how different heap implementations (heap_1 to heap_5) are structured, and how they impact RAM allocation and performance.
By the end of this lesson, you’ll have a detailed understanding of how the heap is set up, managed, and optimized — essential knowledge for building reliable and memory-efficient embedded applications.
In this video, we continue our exploration of FreeRTOS’s memory management by analyzing how dynamic allocation works and how the system tracks heap usage statistics.
You’ll learn how FreeRTOS functions such as pvPortMalloc() and vPortFree() operate internally, how memory blocks are reserved and released, and how to use heap statistics to monitor system health.
By the end of this lesson, you’ll be able to interpret heap usage data, detect memory issues early, and design more efficient embedded applications with stable runtime memory behavior.
In this video, we’ll analyze the prvInitialiseStack() function — the critical routine responsible for preparing each task’s stack frame in FreeRTOS.
You’ll learn how the kernel sets up initial register values, how the task’s entry point and parameters are placed on the stack, and why correct stack initialization is essential for stable task execution.
By the end of this lesson, you’ll have a deep understanding of how FreeRTOS creates the execution environment for every task, bridging the gap between software configuration and actual CPU-level operation.
In this video, you’ll explore how FreeRTOS manages and initializes task stacks, ensuring that each task has its own safe and isolated memory space.
We’ll discuss how stack memory is allocated, how overflow protection works, and what happens during task creation and context switching.
By the end of this lesson, you’ll clearly understand how FreeRTOS maintains stack integrity, prevents corruption, and ensures reliable operation even under heavy multitasking conditions.
In this video, we’ll explore how FreeRTOS manages task stacks in coordination with the CPU system registers during task creation and context switching.
You’ll learn how register values are saved and restored, how the stack represents the processor state, and why proper stack and register management is essential for deterministic real-time performance.
By the end of this lesson, you’ll understand how FreeRTOS achieves seamless task switching at the CPU level and ensures system stability through precise stack control.
In this video, we explore how local variables are managed on the stack within FreeRTOS tasks. Learn how each task’s stack is initialized, how local variables are stored and accessed, and how to monitor and optimize stack usage to prevent overflows. Practical examples and debugging tips help you understand task stack behavior in real-world applications.
This video dives into xTaskCreateStatic() and how FreeRTOS manages RAM for static tasks. Learn how to create tasks with pre-allocated memory, reduce heap usage, and gain precise control over stack and task memory allocation for more deterministic and efficient embedded systems.
In this video, we explore the inner workings of xTaskCreateStatic() in FreeRTOS. Follow along as we analyze its source code, understand how static tasks are initialized, and see how memory and stack allocation are handled behind the scenes for efficient and deterministic task management.
In this video, we explore the inner workings of xTaskCreateStatic() in FreeRTOS. Follow along as we analyze its source code, understand how static tasks are initialized, and see how memory and stack allocation are handled behind the scenes for efficient and deterministic task management.
In this video, we explore how the RTOS kernel schedules tasks. Learn how tasks are prioritized, how the scheduler decides which task to run, and how context switching ensures smooth task execution in real-time systems.
This video dives into the PendSV handler and the logic behind calculating the next unblock time in FreeRTOS. Learn how context switching is triggered, how delayed tasks are managed, and how the kernel ensures timely task execution.
In this video, we review FreeRTOS task states after exploring the source code. Understand how Ready, Running, Blocked, and Suspended tasks behave, and see how the kernel manages transitions and scheduling in real-time systems.
This video explains how vTaskDelayUntil() works in FreeRTOS. Learn how it provides precise periodic task delays, ensures consistent timing across cycles, and differs from vTaskDelay() for deterministic task scheduling.
This video explores the role of the IDLE task in FreeRTOS and how it is created. Learn how the IDLE task keeps the system running efficiently, handles background operations, and interacts with low-power modes and task scheduling.
This video explains the Application IDLE Hook and the working mechanism of the FreeRTOS scheduler. Learn how the IDLE hook allows custom background tasks and how the scheduler manages task execution efficiently.
This video covers how to delete a task in FreeRTOS and how the kernel manages task deletion. Learn about task cleanup, freeing stack memory, and ensuring safe and efficient task removal in real-time systems.
This video explains how to change the priority of any task in FreeRTOS. Learn how task priorities affect scheduling, task execution order, and how to adjust them dynamically for efficient real-time performance.
In this video, we introduce the concept of FreeRTOS Queues, one of the core mechanisms for inter-task communication in real-time systems. You’ll learn why queues are essential, how they enable safe data exchange between tasks, and where they fit within the FreeRTOS architecture.
We’ll discuss the basic idea behind queues, their role in synchronizing tasks, and common use cases such as transferring sensor data or command messages. This lecture sets the foundation for upcoming videos, where we’ll explore queue APIs, blocking behavior, and real-world implementation examples in detail.
By the end of this overview, you’ll have a clear understanding of what queues are, why they matter, and how they help you build responsive and reliable multitasking systems with FreeRTOS.
In this video, we take a deep dive into the internal logic and source code behind FreeRTOS Queues. You’ll see how the kernel manages queue creation, data storage, and synchronization between tasks and interrupts.
We’ll explore the internal structures such as Queue_t, analyze how functions like xQueueCreate(), xQueueSend(), and xQueueReceive() work under the hood, and understand the mechanisms that ensure thread-safe communication.
Through step-by-step source code walkthroughs, you’ll gain insight into how FreeRTOS handles queue initialization, buffer management, and blocking behavior using task lists and scheduler interactions.
By the end of this session, you’ll have a solid understanding of the core logic, data flow, and design principles behind FreeRTOS Queues — giving you the knowledge to debug, optimize, and extend queue-based systems with confidence.
In this video, we go step-by-step through the creation process of FreeRTOS Queues, analyzing each line of code to fully understand how a queue is built and initialized inside the kernel.
You’ll learn how xQueueCreate() and its related internal functions allocate memory, configure queue structures, and prepare the queue for safe task-to-task communication. We’ll also look at how FreeRTOS manages buffer space, item size, and queue length to ensure reliability and efficiency.
This detailed walkthrough reveals how the queue handle, data buffer, and internal control structures work together, providing a strong foundation for mastering queue operations at the system level.
By the end of this video, you’ll have a complete understanding of how queues are created and managed internally, empowering you to write more efficient, predictable, and stable multitasking applications in FreeRTOS.
In this video, we focus on one of the most important aspects of inter-task communication: sending data to queues in FreeRTOS. You’ll learn how tasks and ISRs safely post messages or data items to queues using functions like xQueueSend(), xQueueSendFromISR(), and xQueueOverwrite().
We’ll discuss how each function behaves under different conditions — such as when the queue is full — and how blocking times, priorities, and scheduler decisions affect message delivery. Through examples and real code analysis, you’ll see exactly what happens inside the kernel when data is added to a queue.
By the end of this session, you’ll clearly understand how data is transferred between tasks, how to choose the right sending API for your scenario, and how to design efficient and reliable communication flows in your FreeRTOS applications.
In this video, we take a deep dive into the FreeRTOS source code to explore exactly how data is sent to a queue at the kernel level. You’ll learn what happens behind the scenes when you call functions like xQueueSend() or xQueueSendFromISR().
We’ll analyze the internal logic, including how FreeRTOS checks for available space, manages blocking conditions, updates task lists, and wakes up waiting tasks. Each key function and internal structure will be explained step by step to help you understand the complete data flow — from the sending task to the receiving task.
By studying the implementation of the queue send mechanism line by line, you’ll gain a strong understanding of how FreeRTOS ensures data integrity, synchronization, and responsiveness across different tasks and interrupt contexts.
By the end of this session, you’ll be able to visualize how the FreeRTOS kernel processes queue operations internally and apply that knowledge to debug, optimize, and design robust real-time systems.
This video provides a high-level overview of how the FreeRTOS+TCP stack relies on queues to synchronize tasks, transfer packets, and manage internal events without data corruption or race conditions.
This video provides a high-level overview of how the FreeRTOS+TCP stack relies on queues to synchronize tasks, transfer packets, and manage internal events without data corruption or race conditions.
This video provides a high-level overview of how the FreeRTOS+TCP stack relies on queues to synchronize tasks, transfer packets, and manage internal events without data corruption or race conditions.
This video provides a high-level overview of how the FreeRTOS+TCP stack relies on queues to synchronize tasks, transfer packets, and manage internal events without data corruption or race conditions.
In this video, we explore the uxQueueSpacesAvailable() function in FreeRTOS and how it provides real-time insight into queue capacity. You’ll learn how this API helps determine how many messages a queue can still accept, allowing you to manage system resources and task flow more effectively.
We’ll look at practical examples showing when and why to call this function, how it behaves when used inside tasks or ISRs, and what happens internally in the kernel when space is allocated or released.
The video also breaks down the internal logic of the function by analyzing relevant sections of the FreeRTOS source code. You’ll see how it interacts with queue data structures, synchronization mechanisms, and concurrent access protection.
In this video, we explore the uxQueueSpacesAvailable() function in FreeRTOS and how it provides real-time insight into queue capacity. You’ll learn how this API helps determine how many messages a queue can still accept, allowing you to manage system resources and task flow more effectively.
We’ll look at practical examples showing when and why to call this function, how it behaves when used inside tasks or ISRs, and what happens internally in the kernel when space is allocated or released.
The video also breaks down the internal logic of the function by analyzing relevant sections of the FreeRTOS source code. You’ll see how it interacts with queue data structures, synchronization mechanisms, and concurrent access protection.
In this video, we dive into the xQueueSendToFront() function in FreeRTOS — a special API that lets you send messages to the front of a queue instead of the back. This powerful mechanism allows higher-priority or time-critical messages to be processed before older ones, making it a valuable tool for real-time systems that require deterministic behavior.
You’ll learn when and why to use xQueueSendToFront() instead of xQueueSend(), how it affects task synchronization, and how FreeRTOS ensures thread-safe access to queue structures. We’ll also explore what happens internally in the kernel when this function is called — including how the message is inserted, how waiting tasks are managed, and how blocking conditions are handled.
Through code-level analysis and practical examples, this video clarifies how xQueueSendToFront() fits into inter-task communication and helps improve system responsiveness when message order matters.
By the end, you’ll understand exactly how to use this function to prioritize data flow and design smarter, more responsive FreeRTOS-based applications.
In this video, we explore the xQueuePeek() function in FreeRTOS — a useful API that allows you to inspect the data in a queue without actually removing it. This capability is essential when tasks need to check the current message or verify incoming data while keeping the queue content intact for other tasks or future processing.
You’ll learn the difference between xQueuePeek() and xQueueReceive(), when it’s appropriate to use each, and how peeking affects task synchronization and blocking behavior. We’ll also analyze the internal logic behind xQueuePeek() to understand how FreeRTOS ensures thread safety and prevents data corruption when multiple tasks access the same queue.
Through real code examples and a step-by-step source code walkthrough, we’ll reveal how this function interacts with queue data structures, manages timing, and cooperates with the scheduler.
By the end of this session, you’ll know exactly how to use xQueuePeek() effectively in your applications to monitor queues, debug communication flows, and improve task coordination in FreeRTOS-based systems.
In this video, we take a focused look at the xTicksToWait parameter in the xQueueReceive() function — a crucial part of managing timing, blocking, and synchronization in FreeRTOS queue operations.
You’ll learn exactly how xTicksToWait determines how long a task should wait for data to arrive in the queue, what happens when the timeout expires, and how this parameter interacts with the scheduler and task states.
We’ll explore different scenarios such as zero-wait (polling), finite-wait (timeout), and infinite-wait (blocking) modes, showing how each affects system responsiveness and CPU utilization. Through real examples and source code analysis, you’ll see how FreeRTOS internally manages waiting lists and resumes tasks when new messages are available.
By the end of this session, you’ll fully understand how to use xTicksToWait to design deterministic, responsive, and jitter-free real-time communication between tasks — one of the keys to mastering queue behavior in FreeRTOS.
In this video, we take a focused look at the xTicksToWait parameter in the xQueueReceive() function — a crucial part of managing timing, blocking, and synchronization in FreeRTOS queue operations.
You’ll learn exactly how xTicksToWait determines how long a task should wait for data to arrive in the queue, what happens when the timeout expires, and how this parameter interacts with the scheduler and task states.
We’ll explore different scenarios such as zero-wait (polling), finite-wait (timeout), and infinite-wait (blocking) modes, showing how each affects system responsiveness and CPU utilization. Through real examples and source code analysis, you’ll see how FreeRTOS internally manages waiting lists and resumes tasks when new messages are available.
By the end of this session, you’ll fully understand how to use xTicksToWait to design deterministic, responsive, and jitter-free real-time communication between tasks — one of the keys to mastering queue behavior in FreeRTOS.
Using a real industrial RS485 sensor gateway architecture, we will analyze how data flows from multiple devices through interrupt handlers, queues, processing tasks, and finally to an Ethernet publishing task.
Throughout the video, we compare three common design approaches:
Polling (0 tick wait) and why it leads to high CPU usage
Infinite blocking (portMAX_DELAY) and the risks it introduces in fault scenarios
Bounded blocking with timeouts, which enables deterministic behavior and system monitoring
You will also learn how queue timeouts allow tasks to:
Detect missing or delayed data
Maintain system responsiveness
Safely feed watchdog mechanisms
Implement periodic health checks without additional timers
By the end of the video, you will understand why queue timeout values are not just about waiting for data, but about designing predictable and fault-tolerant real-time systems.
This concept is essential for building robust FreeRTOS-based embedded architectures used in real industrial applications.
In this lecture, we examine the impact of using portMAX_DELAY in FreeRTOS queue operations and how it affects the behavior of a real-time embedded system.
At first glance, using portMAX_DELAY may seem like an efficient solution because it allows a task to block indefinitely until data arrives, eliminating unnecessary CPU usage. However, in real-world embedded systems, this approach can introduce significant risks.
In this video, we analyze what actually happens inside the system when a task blocks indefinitely and why this design choice can lead to hidden reliability and monitoring problems.
You will learn:
How portMAX_DELAY works in FreeRTOS queue operations
Why indefinite blocking can be dangerous in real-time systems
How it may prevent tasks from performing system health checks
The potential impact on watchdog mechanisms and fault detection
Why relying on infinite blocking can reduce system observability
Using a practical system architecture example, we demonstrate how tasks behave when portMAX_DELAY is used and compare it with bounded timeout designs that allow the system to remain both efficient and observable.
By the end of this lecture, you will clearly understand when portMAX_DELAY can be useful and when it should be avoided in professional embedded system design.
In this lesson, we explore how the xTicksToWait parameter affects CPU usage and overall system behavior in FreeRTOS. Many developers assume this parameter only controls how long a task waits, but in reality it has a significant impact on task scheduling, CPU load, and system efficiency.
Throughout the video, we analyze how different blocking times influence the system:
What happens when xTicksToWait = 0 (non-blocking calls)
How short blocking times affect CPU utilization
The behavior of the system when using portMAX_DELAY
How improper blocking configurations can lead to high CPU usage or inefficient scheduling
Using practical examples, we demonstrate how the FreeRTOS scheduler behaves under different waiting conditions and how developers can design more efficient real-time systems by choosing the correct xTicksToWait values.
By the end of this lesson, you will clearly understand how blocking time impacts CPU performance and how to apply the correct waiting strategy in your FreeRTOS-based embedded systems.
In this lecture, we explore the Visual Studio Code–based workflow for STM32 development and demonstrate how to effectively integrate STM32CubeIDE projects into a modern, lightweight environment. You will learn how to set up and use VS Code as an alternative development interface while still leveraging the STM32Cube ecosystem. Additionally, we dive into the use of AI-assisted tools to improve productivity, accelerate code development, and simplify debugging processes. By the end of this lesson, you will understand how to combine embedded systems development with modern AI-powered tooling to build more efficient and scalable workflows.
In this lesson, you will learn how to take an existing STM32CubeIDE project and move it into a VS Code-based workflow step by step.
The lesson focuses not only on the conversion process itself, but also on the practical issues developers may face during the transition, especially CMake-related configuration problems. You will see how to identify common setup mistakes, understand why the build system fails in some environments, and apply the correct fixes to restore a working development flow.
By the end of this lesson, you will have a clearer understanding of how STM32 projects can be adapted to a more flexible VS Code environment while preserving a structured and reliable workflow.
AI can generate code.
But understanding what the kernel does behind each line is still the real skill.
In my new FreeRTOS lesson, I used an AI-assisted example to explain vSemaphoreCreateBinary() with a practical embedded scenario:
Two different tasks try to control the same LED with different blinking patterns.
Without synchronization, the LED behavior becomes unpredictable and the code becomes harder to reason about.
So we introduce a binary semaphore to protect the shared LED access and build the foundation for understanding mutual exclusion in RTOS-based systems.
But this lesson is not just about writing the example code.
I go through the implementation line by line and explain what happens from the FreeRTOS kernel perspective:
• How the semaphore is created
• Why tasks must take and give it
• What happens when the semaphore is not available
• How task blocking affects CPU usage
• Why synchronization is essential when multiple tasks access the same resource
AI helped generate the initial scenario.
The real learning happens when we understand the kernel behavior behind it.
That is the difference between copying RTOS code and actually becoming an embedded software developer.
AI can generate code.
But understanding what the kernel does behind each line is still the real skill.
In my new FreeRTOS lesson, I used an AI-assisted example to explain vSemaphoreCreateBinary() with a practical embedded scenario:
Two different tasks try to control the same LED with different blinking patterns.
Without synchronization, the LED behavior becomes unpredictable and the code becomes harder to reason about.
So we introduce a binary semaphore to protect the shared LED access and build the foundation for understanding mutual exclusion in RTOS-based systems.
But this lesson is not just about writing the example code.
I go through the implementation line by line and explain what happens from the FreeRTOS kernel perspective:
• How the semaphore is created
• Why tasks must take and give it
• What happens when the semaphore is not available
• How task blocking affects CPU usage
• Why synchronization is essential when multiple tasks access the same resource
AI helped generate the initial scenario.
The real learning happens when we understand the kernel behavior behind it.
That is the difference between copying RTOS code and actually becoming an embedded software developer.
Güncel indirim kuponları için Linkedin üzerinden iletişime geçebilirsiniz.
Inside FreeRTOS: Deep Dive into Real-Time Operating Systems is a complete and detailed journey into the world of real-time embedded software.
This course goes far beyond basic tutorials — it reveals how an operating system truly works under the hood, using FreeRTOS as the foundation.
You will explore every layer of a real-time operating system: from task creation, scheduling, and context switching, to memory management, synchronization, and debugging. Each topic is explained in depth with real code, live debugging sessions, and practical insights gained from real engineering experience.
By understanding how and why things work, you’ll gain the ability to design your own reliable, deterministic, and efficient embedded systems — not just use existing examples.
All you need is a computer, an internet connection, and a microcontroller board (MCU). The course has been structured to teach everything step by step, so you can follow along easily and experiment as you go.
This course is intended for engineers with a solid background in C programming and embedded software. You’ll need focus, patience, and commitment — ideally 4–6 hours per week to watch, code, and debug each section thoroughly.
If you trust the process, code along with the instructor, and analyze every example, you’ll finish this course with a deep, engineer-level understanding of FreeRTOS and real-time operating system design.
Welcome aboard — your real-time journey starts here!
— Erhan Konak