Online course · Engineering

RTOS and Multicore: FreeRTOS and Zephyr on RP2350 and Dual-Core STM32H755

Real-time tasks, two-core SMP and an M7 + M4 pump controller, proven on real boards

Created by TrainSkool Trainer

RTOS and Multicore: FreeRTOS and Zephyr on RP2350 and Dual-Core STM32H755 course cover

Coming soon Launch price ₹2,499

This course is not open for enrolment yet.

About this course

For firmware engineers and ECE/EEE graduates who know embedded C and want to build real-time, multicore firmware they can defend in a design review. One running example: PumpGuard PG-2, a fictional two-core farm-pump controller from Kaveri Embedded Labs, Coimbatore. You will write FreeRTOS tasks, queues, semaphores, mutexes, notifications and timers; run FreeRTOS SMP on both Cortex-M33 cores of a Raspberry Pi Pico 2; build portable Zephyr apps with devicetree, Kconfig and west; connect the Cortex-M7 and Cortex-M4 of an STM32H755 Nucleo board with HSEM, shared memory and the MPU; prove deadlines with rate-monotonic tests and response-time analysis; avoid priority inversion and size stacks; and debug, trace and supervise firmware with watchdogs. Every lesson has a board lab (wiring, code, expected serial output, a pass line for an automated rig) and an auto-checked C exercise. Prerequisite: our Embedded C on ARM and RISC-V course or equivalent; you need a Pico 2 and an STM32H755 Nucleo board. Included: 28 text lessons with slides and quick checks, 26 exercises, seven chapter projects, chapter quizzes, a capstone, a final exam and a certificate of completion. Lessons are text and slides; trainer videos are coming. Not affiliated with or endorsed by Raspberry Pi Ltd, Espressif, STMicroelectronics or Arm; FreeRTOS and Zephyr are trademarks of their owners. What you will be able to do: - You will be able to describe tasks by period, deadline and worst-case time and see where a super-loop fails - You will be able to build FreeRTOS firmware with drift-free periodic tasks, queues, mutexes, notifications and ISR deferral - You will be able to run FreeRTOS SMP on the RP2350, pin tasks to cores and protect shared data with atomics and spinlocks - You will be able to write portable Zephyr applications using devicetree overlays, Kconfig and kernel services - You will be able to boot and connect both cores of the STM32H755 with HSEM, shared memory, the MPU and lock-free rings - You will be able to prove schedulability with utilisation tests and response-time analysis, including blocking - You will be able to debug HardFaults, trace timing and supervise firmware with watchdogs and fault records - You will be able to design and demonstrate a two-core motor-pump controller with an independent monitoring core

What you'll learn

  • Describe tasks by period, deadline and worst-case time and see where a super-loop fails
  • Build FreeRTOS firmware with drift-free periodic tasks, queues, mutexes, notifications and ISR deferral
  • Run FreeRTOS SMP on the RP2350, pin tasks to cores and protect shared data with atomics and spinlocks
  • Write portable Zephyr applications using devicetree overlays, Kconfig and kernel services
  • Boot and connect both cores of the STM32H755 with HSEM, shared memory, the MPU and lock-free rings
  • Prove schedulability with utilisation tests and response-time analysis, including blocking
  • Debug HardFaults, trace timing and supervise firmware with watchdogs and fault records
  • Design and demonstrate a two-core motor-pump controller with an independent monitoring core

Course content

Chapter 1 · Module 1: Why an RTOS - Deadlines, Super-Loops and the Lab Bench

  • Code lab: Real-Time Systems: Deadlines, Jitter and Where a Super-Loop BreaksA farm pump controller that answers late is not slow; it is broken. If the impeller jams, the over-current trip has milliseconds before the driver fails.17 topics · 28 min
  • Code lab: Inside an RTOS Kernel: Tasks, the Scheduler, the Tick and Context Switches1 Arjun found that PumpGuard's motor loop waited behind a 40 ms telemetry job, even though the CPU was only 46 % busy.18 topics · 30 min
  • Code lab: The Lab Bench: Pico 2, the STM32H755 Nucleo, Toolchains and the Automated Test RigEvery lab in this course runs on real hardware: a Raspberry Pi Pico 2 for FreeRTOS, SMP and Zephyr, and an STM32H755 Nucleo board for the dual-core chapters and the capstone.24 topics · 30 min

Chapter 2 · Module 2: FreeRTOS Fundamentals - Tasks, Queues, Semaphores and Timers

  • Code lab: Tasks, Priorities and Periodic Timing with vTaskDelayUntilPumpGuard's speed loop is a discrete-time controller. Its integral and derivative terms assume that one step is exactly 1 ms.16 topics · 30 min
  • Code lab: Queues and Message Passing Between TasksPumpGuard's tasks must talk to each other. level_read produces a filtered tank level every 20 ms; display shows it, telemetry logs it, and motor_ctl needs it to decide whether the pump may run.18 topics · 30 min
  • Code lab: Semaphores, Mutexes, Task Notifications and Event GroupsQueues move data.18 topics · 32 min
  • Code lab: Interrupts, FromISR APIs and Software TimersHardware does not wait for the scheduler.23 topics · 32 min

Chapter 3 · Module 3: Multicore FreeRTOS SMP on the RP2350

  • Code lab: Symmetric Multiprocessing: Two Cortex-M33 Cores, One SchedulerThe RP2350 on the Pico 2 has two Cortex-M33 cores. Until now every lab pinned all tasks to core 0, so half the chip sat idle.17 topics · 30 min
  • Code lab: Sharing Data Across Cores: Critical Sections, Spinlocks and Atomics1 ended with a list of PumpGuard variables that two tasks touch. On one core, a counter incremented by one task and read by another was, at worst, slightly stale.18 topics · 32 min
  • Code lab: Partitioning Work: Core Affinity, Run-Time Statistics and Load BalanceTwo cores do not halve your problems automatically. If all the heavy work lands on one core, the second core idles while the first misses deadlines.23 topics · 30 min

Chapter 4 · Module 4: Zephyr RTOS - Devicetree, Kconfig and west

  • Code lab: Zephyr Architecture and the west WorkspaceFreeRTOS is a kernel: a scheduler and synchronisation objects, and you bring everything else.16 topics · 28 min
  • Code lab: Devicetree and Kconfig: Describing Hardware and Choosing FeaturesIn the FreeRTOS labs, the pin numbers lived in the C code: #define LED_PIN 15.16 topics · 32 min
  • Code lab: Zephyr Kernel Services: Threads, Message Queues, Semaphores and Work QueuesEverything you learned in chapter 2 has a Zephyr equivalent: threads instead of tasks, k_msgq instead of queues, k_sem and k_mutex, k_timer and work queues instead of software timers.17 topics · 30 min
  • Code lab: Zephyr Drivers and Portability: GPIO, UART, ADC and Sensors on Two BoardsPumpGuard's level input is an analogue voltage, its current sensor sits on I2C, its console is a UART and its outputs are GPIOs.23 topics · 30 min

Chapter 5 · Module 5: Dual-Core STM32H755 - Cortex-M7 and Cortex-M4 Working Together

  • Code lab: Inside the STM32H755: Two Cores, Power Domains, Memory Map and BootThe RP2350's two cores are identical twins sharing everything. The STM32H755 is a different kind of multicore chip: an asymmetric one.17 topics · 32 min
  • Code lab: Hardware Semaphores (HSEM): Locks and Inter-Core NotificationsThe M7 and the M4 of the STM32H755 do not share a scheduler, so none of the FreeRTOS mutexes and semaphores from chapter 2 work between them.17 topics · 30 min
  • Code lab: Shared Memory Done Right: Cache Coherency, the MPU and Lock-Free RingsPumpGuard's M4 monitor samples the motor current and sends readings to the M7, and the M7 sends speed and status back.18 topics · 32 min
  • Code lab: An RTOS on Each Core: FreeRTOS, Zephyr and OpenAMP MessagingPumpGuard PG-2 needs a task set on each core: control tasks on the M7, monitor, telemetry and service console on the M4.23 topics · 32 min

Chapter 6 · Module 6: Timing Analysis - Schedulability, Priority Inversion and Stack Sizing

  • Code lab: Rate-Monotonic Scheduling and Utilisation TestsEverything so far has been measured: worst lateness, run-time percentages, pulse rates.18 topics · 28 min
  • Code lab: Response-Time Analysis with Blocking94, both quick tests inconclusive. The product team wants the bigger display; the safety review wants proof that the 1 ms motor loop and the 5 ms current trip still meet their deadlines.17 topics · 32 min
  • Code lab: Priority Inversion, Inheritance, Ceilings and DeadlockIn 1997 NASA's Mars Pathfinder lander started resetting itself on the surface of Mars.17 topics · 30 min
  • Code lab: Stack and Heap Sizing: High-Water Marks, Overflow Detection and Memory BudgetsEvery RTOS task has its own stack, sized by a number someone typed.24 topics · 30 min

Chapter 7 · Module 7: Debugging, Tracing and Fault Recovery

  • Code lab: Debugging RTOS Firmware: SWD, GDB, Thread Awareness and HardFault AnalysisRavi brings back a PumpGuard from a farm near Udumalpet with a note from the farmer: "pump stops by itself once or twice a week, starts again after a minute".17 topics · 30 min
  • Code lab: Tracing and Measuring: GPIO Timing, Trace Hooks and Run-Time StatisticsChapter 6 computed PumpGuard's response times. 1 showed that a debugger stops the very timing you want to see.18 topics · 30 min
  • Code lab: Watchdogs, Health Monitoring and Recovering from FaultsSomething will eventually go wrong in the field: a wire corroded by fertiliser, a monsoon voltage dip, a bug nobody found.24 topics · 32 min

Chapter 8 · Module 8: Capstone - A Two-Core Motor-Pump Controller with a Monitoring Core

  • Code lab: Capstone Brief: PumpGuard PG-2 on Two CoresKaveri Embedded Labs is ready to build PumpGuard PG-2 for real.9 topics · 35 min
  • Code lab: Integrating the System: Control Core, Monitor Core, Timing Budget and TestsEvery part of PumpGuard PG-2 has been tested on its own.17 topics · 45 min
  • Code lab: Capstone Deliverables, Demonstration Script and Grading RubricYou submit one folder (or repository) with the following. Every number in the documents must trace back to a measurement or a computation you include.8 topics · 30 min

Assessments and certificate

  • Module 1 quiz: Why an RTOS - Deadlines, Super-Loops and the Lab Bench8 questions · 15 min · pass mark 70%
  • Module 2 quiz: FreeRTOS Fundamentals - Tasks, Queues, Semaphores and Timers8 questions · 15 min · pass mark 70%
  • Module 3 quiz: Multicore FreeRTOS SMP on the RP23508 questions · 15 min · pass mark 70%
  • Module 4 quiz: Zephyr RTOS - Devicetree, Kconfig and west8 questions · 15 min · pass mark 70%
  • Module 5 quiz: Dual-Core STM32H755 - Cortex-M7 and Cortex-M4 Working Together8 questions · 15 min · pass mark 70%
  • Module 6 quiz: Timing Analysis - Schedulability, Priority Inversion and Stack Sizing8 questions · 15 min · pass mark 70%
  • Module 7 quiz: Debugging, Tracing and Fault Recovery8 questions · 15 min · pass mark 70%
  • Module 8 quiz: Capstone - A Two-Core Motor-Pump Controller with a Monitoring Core7 questions · 15 min · pass mark 70%
  • RTOS and Multicore: FreeRTOS and Zephyr on RP2350 and Dual-Core STM32H755 — final assessment20 questions · 40 min · pass mark 70%

Related courses

Frequently asked questions

Can I get a refund for RTOS and Multicore: FreeRTOS and Zephyr on RP2350 and Dual-Core STM32H755?

Yes. You can request a full refund within 7 days of purchase, provided you have completed no more than 25% of the lessons, not started the final exam and not been issued a certificate. Pre-orders of a course that has not launched yet can be refunded in full any time before launch. Email refunds@trainskool.com with your order reference; approved refunds go back to your original payment method.

How long do I have access to the course?

Lifetime access. A one-time payment of ₹2,499 keeps the course in your TrainSkool learning dashboard, on the web and in the TrainSkool apps, with no subscription to cancel.

Do I get a certificate?

Yes. TrainSkool issues a certificate when you meet the course requirements, including passing its 9 graded assessments. Every certificate has a public verification link that employers can check.

Are there any prerequisites?

No other course is required. The course level is advanced, so check the curriculum to confirm it matches your experience.

How is the course delivered?

Online and self-paced: 8 modules and 28 lessons, about 14h 32m of study, with graded assessments. Learn in your browser or the TrainSkool Android and Windows apps.