Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Building Real Time Operating Systems on ARM Cortex-M
Rating: 3.2 out of 5(2 ratings)
13 students

Building Real Time Operating Systems on ARM Cortex-M

RTOS on STM32F4 or similar ARM Cortex-M processor
Last updated 12/2025
English

What you'll learn

  • Build a Real-Time Operating System
  • Build Round-Robin Schedulers
  • Build Cooperative Schedulers
  • Build Periodic Schedulers
  • Build First Come First Served Scheduler
  • Write Bare-Metal Embedded-C Code
  • Write Assembly code
  • Understand the OS Support Features of the Cortex-M Architecture

Course content

1 section • 55 lectures • 6h 54m total length
  • Downloading and Installing STM Cube IDE9:32
  • Getting the required documentation7:10
  • Project structure creation in STM32 Cube IDE8:42
  • Building LED driver from scratch11:33
  • Building UART driver from scratch18:16
  • Building time base driver from scratch13:25
  • Experimenting Blocking code explained9:48
  • Manual context switching method16:14
  • RTOS explained3:40
  • Busy wait system explained3:30
  • Multi threaded system3:51
  • Real time systems1:40
  • Stack and Memory map4:10
  • Stack manipulation5:17
  • Inside the microcontroller3:09
  • Types of stack pointers explained3:08
  • Exclusive Access Instruction4:17
  • Cortex M Boot sequence8:17
  • Threads Explained2:29
  • Types of Threads3:34
  • Thread Control Block basics explained3:15
  • Implementing thread Control Block4:52
  • The Scheduler3:07
  • Process and Threads2:38
  • Types of Scheduler2:24
  • Preemption2:18
  • Scheduler Criteria and CPU Utilisation3:02
  • Scheduling Algorithm Optimisation2:34
  • First Come First Serve Scheduler9:10
  • Round Robin Scheduler7:57
  • Round Robin Scheduler Analysis3:32
  • Quanta3:50
  • Weighted Round Robin Scheduler5:09
  • Internals of Round Robin Scheduler6:10
  • Context switching in scheduler explained4:12
  • Developing Thread control block6:20
  • Implementing kernel stack init function9:59
  • Implementing kernel add threads fucntion7:59
  • Implementing kernel launch fucntion8:01
  • Implementing Systick handler function for RTOS11:41
  • Implementing the OS scheduler launch function6:03
  • Testing the RTOS12:50
  • Importance of semaphores in RTOS explained8:57
  • Developing the cooperative scheduler9:58
  • Developing the periodic scheduler13:11
  • Developing the periodic scheduler with hardware timers14:14
  • Implementing semaphores in RTOS13:22
  • Notes0:02
  • Swtiching from STM32Cube IDE to Keil uVision IDE18:57
  • PendSV handler for context switching8:49
  • Periodic scheduling with multi periodic threads13:20
  • Implementng LED hardware to timer handler thread of RTOS4:39
  • Implementing thread control block for periodic threads18:04
  • Scheduling periodic threads using hardware timers17:12
  • Implementing Cooperative semaphores in RTOS4:53

Requirements

  • Basic C program knowledge

Description

This course guides you to build a Real-Time Operating Systems through step by step theory and practical sessions bare metal approach. It starts by providing an introduction to the internals of a Real-Time Kernel on ARM Processors, which you shall implement yourself in C and assembly code.Then we move on to learn all the things about Real-Time Operating Systems, their various parts, how they work and then we finally build our own Real-Time Operating System exploring different scheduling algorithms such as Round robin, periodic schedulers and Inter-Thread communication tools.

At the end of this course you should be able to build your own Real-Time Operating System from scratch, be able to build a Round-Robin Scheduler, be able to build a Periodic Scheduler, be able to calculate the CPU utilization of your RTOS, be able to build an OS Kernel etc. finally you will be able to run your application programs that you have built in bare metal c program into real time operating system that you are going to build in this course or you will be able to convert and run all the programs that you have created in conventional method into one of the real time operating systems scheduling algorithm.

Who this course is for:

  • Embedded Systems Engineers
  • Hobbyists
  • Embedded System students
  • Computer Engineering students