
Explore how FreeRTOS tracks task states in the ready queue, showing running, ready, and blocked, while a high-priority monitor reveals how preemption and observation alter observed behavior.
Measure wcet across eight runs to capture the timing envelope; qemu timing is not cycle-exact and host jitter affects results, so report the max of maximums and min of minimums.
Measure interrupt latency on real hardware with two independent timers to capture the hardware floor, revealing a range from about 1.9k to 11k cycles and a mean near 3.8k.
Demonstrate a four-task real robot control set—sensor, control, actuator, telemetry—prioritized by deadline, with hand response-time analysis and real firmware validation, ensuring zero missed deadlines.
Trace the sensor-to-actuator path to establish a one-period bound for the wcet, then measure and compare it to real firmware latency, noting tick resolution and busy hardware effects.
This course contains the use of artificial intelligence.
Real-time is not a synonym for fast. It is a promise about the worst case, and this course is built on never asserting that promise without measuring it first. Every number on screen comes from real FreeRTOS firmware, built and run under QEMU on real ARM Cortex-M3 hardware models, captured by a script you can re-run yourself.
It starts with the failure mode that makes an RTOS necessary. A bare superloop misses a real, cycle-counted deadline. Priority inversion is measured directly: a low-priority task blocks a high-priority one for 195 ticks with no fix, 11 ticks with priority inheritance, against a 20-tick designed critical section. Worst-case execution time is shown to be 22.35 times the mean of the same code path, not a rounding error.
Then the real mechanics, one at a time, each with its own firmware. Queues, mutexes, semaphores, and task notifications, distinguished by what they actually cost: a queue allocates real heap, a notification allocates none because the slot already lives in the task's own control block. Interrupts measured end to end at 76 to 459 microseconds of real latency, a 6 times spread, because this book's own QEMU target is not cycle-accurate and the course says so rather than hiding it. Four heap allocators put through the identical fragmentation test, one of them shown to have a real, unbounded collision risk against the stack that the others structurally cannot have.
Four full robot projects, not toy demos. A control loop with a response-time bound that has to be corrected mid-build when the by-hand math turns out to assume the wrong dependency. A sensor-fusion task set where a generalization test to a second sensor accidentally uncovers a bug the original design never surfaced. An event-driven state machine whose first safety bound is wrong by 10 to 20 times until the real cause, a full period of interference rather than just one task's execution time, is found and fixed. A fault-tolerant actuator arbitration system that layers priority inheritance, bounded waits, a runtime assertion, and a real hardware watchdog, and states plainly which layer catches which real failure.
Nothing here is asserted without a script that produced it. Nineteen real, sometimes uncomfortable bugs are shown as they were found: a calibration constant reused from an earlier lecture that quietly broke a later one, a stack overflow inside the kernel's own statistics function, a benchmark accidentally contaminated by an unrelated render job running on the same machine, a course finding its own already-shipped content silently violating a documented API contract. Every one of them is fixed on screen, not edited out.
101 lectures, 3 hours and 4 minutes of real measured video, covering scheduling, inter-task communication, interrupts, memory, runtime profiling, multi-board coordination over a real UART link, watchdog-based fault recovery, and the less common FreeRTOS mechanisms most courses skip: counting semaphores as resource pools, indexed notifications, co-routines, queue sets, message buffers, and a custom HardFault handler built and tested against a real fault.