Ground Embedded KO Subscribe

Roadmap / Firmware

RTOS

When the workload grows, one endless loop cannot cope. A real-time operating system is the answer.

Goal Split work into tasks and run them without synchronization bugs.

  1. 01
    Limits of the super loop

    The delay and complexity of doing everything in one loop.

    Read the note KR

  2. 02
    Tasks and the scheduler

    Splitting work into tasks, and how the scheduler shares time.

    Read the note KR

  3. 03
    Priority and preemption

    Urgent tasks pushing less urgent ones aside.

    Read the note KR

  4. 04
    Semaphores and mutexes

    Keeping two tasks from touching a shared resource at once.

    Read the note KR

  5. 05
    Queues and event groups

    Passing data and signals between tasks safely.

    Read the note KR

  6. 06
    Priority inversion

    A low task blocking a high one, and priority inheritance.

    Read the note KR

  7. 07
    Memory and stack management

    Sizing each task's stack and detecting overflow.

    Read the note KR

  8. 08
    FreeRTOS in practice

    Sensor reading, communication and control as tasks on an STM32.

    Read the note KR