RTOS Basics and Application: RTOS Mechanisms and their Application in Runtime Architectures for Embedded and Real-Time Systems
The growing complexity of embedded software applications and the ever increasing performance of hardware has resulted in more and more real-time operating systems being included in software. The use of real-time operating systems poses new challenges for developers.
General Introduction: Real-Time Operating Systems
- Key terminology (operating system, real-time, task, multitasking, scheduler)
- Classification of embedded systems
- Classification of operating system types
- Requirements for the operating system, hardware, development tools
- License models
- OSAL Operating System Abstraction Layer
- POSIX (pThread)
- Benefits, advantages and disadvantages when using an operating system
- Practical example: Splitting an application into tasks
- Differentiation between process, task and thread
- Task states and transitions
- Task properties and multiple instantiation
- Specific tasks
- Task context switch and hook routines
- Design aspects for tasks
- Schedulers and their algorithms (endless loop, time-triggerd, priority, time slice, round robin, EDF earliest deadline first)
- Scheduler functionality and design aspects
- Selecting the right scheduler
- Typical use in embedded software applications
- API (application programming interface) examples
- Exercise: Programming a task, instantiating it twice with different priority combinations; subsequent analysis of the behavior
- Interrupt processing with and without operating system
- Interrupt latency and interrupt blocking time
- Prioritization
- Interrupt service routines
- Interrupt threads/tasks
- Design notes
- API (application programming interface) examples
- Exercise: Programming an interrupt service routine and a task to service an AD converter
- System tick and configuration
- Delay, timeout, interval, software watchdog, alarm timer
- Typical use in embedded software applications
- API (application programming interface) examples
- Exercise: Programming interval timer controlled task execution
- Events, signals: global, local, single, as group, with/ without parameters
- Semaphore, promise and future
- Typical use in embedded software applications
- API (application programming interface) examples
- Exercise: Programming synchronization between an interrupt service routine and a task
- Race conditions
- Resource: definition, granularity and blocking times
- Semaphore, mutex, critical section, condition variable, spinlock
- Problem scenarios: deadlock and priority inversion
- Solutions: priority inheritance, priority ceiling etc.
- Reader/ writer patterns
- Typical use in embedded software applications
- API (application programming interface) examples
- Exercise: Programming protected access to a resource shared by two tasks
- Message concepts: system local and cross-system
- Shared memory, mailboxes, queues, message buffer, pipes, message based, socket
- Typical use in embedded software applications
- API (application programming interface) examples
- Exercise: Programming communication between an interrupt service routine and a task and between two tasks using the mailbox concept
- Memory segments (BSS, stack, heap)
- Stack monitoring
- Dynamic memory management
- Memory pools and memory blocks
- Pool allocation pattern: memory pools and memory blocks
- MPU (memory protection unit) and MMP (memory management unit) support
- Typical use in embedded software applications
- API (application programming interface) example
- Identifying risks and avoiding pitfalls
- Software layer architecture
- Driver concepts
- Examples with serial and Ethernet communication
- Typical use in embedded software applications
- API (application programming interface) example
- Tracing at operating system level
- Introduction and assessment of tracing and visualization alternatives
- Presentation with logic analyzer and professional trace tools (Percepio Tracealyzer and ARM Keil MDK)
- From the idea to the final runtime architecture
- Runtime architecture patterns and their use for concrete tasks
- Transformation of an existing software architecture without operating system to an architecture with operating system, with optimized utilization of the OS mechanisms
- Introduction and comparison of different runtime architecture concepts - with and without operating system
- Predictability and calculability of various runtime architecture concepts
- Guidelines for selecting the "right" runtime concept
- Practical example: Measurement device application
- Exercise: Development of a suitable runtime architecture for a real embedded system based on drawn up textual requirements and a software architecture
- Hardware and software architectures
- Task assignment
- Possible operating system applications
- Virtualization and hypervisor
- Interrupt and driver concepts
- Important design aspects
- Suitable modeling formats for a runtime architecture
- Excerpts from UML (Unified Modeling Language)
- Practical tips
- Exercise: Using UML notations and diagrams for modeling the runtime architecture
- Description of benefits, advantages and disadvantages
- Programming
- Practical example with FreeRTOSTM
- Operating system selection guidelines
- Practical tip: Operating system comparison
- Current product overview for embedded software
- Checklist with important selection criteria
- Throughout the programming exercise, you will use operating system mechanisms for developing a measurement device application step by step.
- The exercise is performed using the Arm Keil MDK (microcontroller development kit) with real hardware based on an Arm Cortex® microcontroller.
- For the real-time operating system, you choose between FreeRTOS™ and the CMSIS-RTOS standard as operating system abstraction.
- You develop and document a runtime architecture for an electric motor control application using operating system mechanisms.
- The exercises are performed using Enterprise Architect (Sparx Systems) or paper and pencil.
- All participants have the following options to further use their exercises and the solutions developed by MicroConsult from this workshop:
- You take the files with you on a free USB stick provided by MicroConsult, or …
- You e-mail the files to your account, or …
- You get access to file download on request.
- For the measurement device application, you get the program code and a UML model as well as a UML model for the electric motor application.
- You get a tool and software component overview including a current operating system overview.
- You also get a checklist with operating system selection criteria.
- You get helpful notation overviews for UML (Unified Modeling Language) and SysML (Systems Modeling Language) in DIN-A3 format.
After the RTOS basic training, you know the mechanisms of sophisticated real-time operating systems (RTOS) and can use them to develop new software runtime architectures and maintain existing ones - independent of the concrete real-time system product.
You are able to document and communicate software runtime architectures and make an informed choice about operating systems.
Make your system fit for IoT by means of the RTOS and additional communication stacks.
The RTOS training addresses programmers, software developers, software designers and software architects who are using or are planning to use a real-time operating system in their embedded software application.
Basic knowledge of microcontrollers as well as C programming skills.
Empty do not delete
Onsite training: Individual workshops – tailored precisely to your project
In tailor-made workshops, we combine your specific project tasks with our training offerings. We take your requirements regarding content, time, location, duration, technical environment, and delivery method into account.
We will be happy to answer your questions.
Coaching with added value - expert knowledge for your project success
Our coaching offers have the great advantage that our experts contribute their knowledge and experience directly to your solution process and thus directly contribute to your project success.
| Date | Location | Language | Price | Duration | |
|---|---|---|---|---|---|
*Price per participant, in Euro plus VAT.
Training code: E-RTOS-AR
Empty do not delete
All inclusive!
The training price includes:
Lunch, soft drinks, tea and coffee, fruit, snacks,
training documentation and your MicroConsult training certificate.
Seminar location
In-person training:
MicroConsult Academy GmbH
Charles-de-Gaulle-Str. 6
81737 Munich, Germany
+49 89 450617-71
>> Directions and hotel information
Live online trainings:
Take place online via WebEx or Zoom.
Organizational details
Reservation / booking
You can make a non-binding training seat reservation at any time; we will keep the reservation for you for up to max. three weeks before the training starts.
To confirm your participation in a training, please submit a binding booking.
You can make the non-binding reservation as well as the binding booking online on the respective training page (button "Booking" or "Non-binding reservation").
Please also note our Bonus program when booking several trainings and/or participants at once.
Seminar location
MicroConsult Academy GmbH
Charles-de-Gaulle-Str. 6
81737 Munich, Germany
Phone: +49 89 450617-71 >> Directions
Training times (face-to-face training)
Please note:
Some trainings have different start/end times, so please take note of the times we send you with our order confirmation before the training.
One-day training: 08:30 – 17:00 h
Two-day training: Day 1: 9:30 – 17:30 h / Day 2: 8:30 – 17:00 h
Three-day training: Day 1: 9:30 – 17:30 h / Day 2-3: 8:30 – 17:00 h
Four-day training: Day 1: 9:30 – 17:30 h / Day 2-4: 8:30 – 17:00 h
4.5-day training: Day 1: 9:30 – 17:30 h / Day 2-4: 8:30 – 17:00 h / Last day: 8:30 – 13:00 h
Five-day training: Day 1: 9:30 – 17:30 h / Day 2-4: 8:30 – 17:00 h / Last day: 8:30 – 15:00 h
The structure of our live-online trainings is different to face-to-face trainings. Please refer to our registration confirmation for training times.
Training certificate
After the training, you will receive your MicroConsult Training Certificate to document the know-how you acquired.
Training documentation
High-quality, extensive training documentation is included in the training price.
Material
All you have to bring is thirst for knowledge and curiosity. Our seminar rooms are fully equipped with everything needed to run the training - including your training documentation and stationery.
Catering
Hospitality is important to us. That's why we invite you to lunch at a nearby restaurant. We've also taken care of your refreshments: hot and cold drinks are available all day, and so are snacks and fresh fruit.
Training environment
Our training rooms offer an open and friendly atmosphere and feature high-quality and modern training equipment.

Location
The MicroConsult training center is conveniently located and can be reached easily be public transport or by car. Several hotels are in close vicinity.
Click here for directions and hotel information.
Do you need assistance?
Please don't hesitate to contact us. For questions concerning the organization of face-to-face or online trainings, please contact our Service Office, phone +49 (0)89 450617-71. Or send an e-mail to training@microconsult.com.
Bonus program
The group advantage: Binding registration of a group for a training
Number of persons |
Amount of the discount |
| 2 to 3 people | 5 % |
| 4 to 5 people | 10 % |
| from 6 people | 15 % also when split into 2 dates |
| more than 8 people | upon request |
The training bonus: Binding registration of a person for several training courses
Number of training sessions |
Amount of the discount |
|---|---|
| 2 training sessions | 5 % |
| 3 training sessions | 8 % |
| More than 3 training sessions | upon request |
What else is important
This bonus scheme applies exclusively to our open training sessions.
To take advantage of the special conditions, a closed, binding registration and the participation of all booked persons on the agreed dates are required. The basis for the calculation is the current price list on www.microconsult.de.
The individual discount models cannot be combined with one another. A date change by us or the participation of a substitute participant will not affect the terms and conditions.
Valid only for direct bookings through us; our bonus program does not apply to bookings through external training portals.
Please contact us, our Service Office is available at +49 (0)89 450617-71. Or you can also use the Contact form.
Together we will find the optimal solution for you!
Related trainings
Customer testimonials
Do need additional information? Feel free to get in touch!
Melanie Menzl
Organization open trainingsSilke Bluhm
Organization onsite trainings & coachingsNora Pohle
Saleskontakt@microconsult.com
+49 89 450617 - 71
Your benefits at a glance:
- 100 % practical: You will learn what really matters in everyday project work – with real tools and proven methods from experts from the real project world.
- How and where you want: Choose between live online or face-to-face training, conducted in our training center or at your location.
- Small groups, big impact: Maximum 12 participants – so there is room for your questions, your topics, your practice.
- Understandable instead of intellectual: Complex content becomes tangible – with examples, interactive exercises and a clear thread.
- Combinable: Ideal as an individual seminar or part of a training series.
- Sustainable learning success: You will receive high-quality documents for further work.
- Flexible participation: Cancel or rebook free of charge up to 3 weeks before the appointment – your booking remains transferable.