# Build an RTX5 RTOS application with Keil μVision

## In this learning path

- [Introduction](https://learn.arm.com/learning-paths/embedded-and-microcontrollers/cmsis_rtx/)
- [Create and setup Keil MDK project](https://learn.arm.com/learning-paths/embedded-and-microcontrollers/cmsis_rtx/create/)
- [Initialize the operating system](https://learn.arm.com/learning-paths/embedded-and-microcontrollers/cmsis_rtx/initialize/)
- [Create RTOS threads](https://learn.arm.com/learning-paths/embedded-and-microcontrollers/cmsis_rtx/threads/)
- [Build and run the application](https://learn.arm.com/learning-paths/embedded-and-microcontrollers/cmsis_rtx/build_and_run/)
- [Using Event Recorder](https://learn.arm.com/learning-paths/embedded-and-microcontrollers/cmsis_rtx/eventrecorder/)
- [Next Steps](https://learn.arm.com/learning-paths/embedded-and-microcontrollers/cmsis_rtx/_next-steps/)

## About this Learning Path

|  |  |
| --- | --- |
| Skill level: | Introductory |
| Reading time: | 30 min |
| Last updated: | 08 Jul 2026 |

|  |  |
| --- | --- |
| Author: | Ronan Synnott , Arm<br>[LinkedIn](https://linkedin.com/in/ronansynnott) |
| Arm IP: | [Cortex-M](https://support.arm.com/?tab=compute-ip&Product%20Type=Microcontrollers) |
| Tags: | [RTOS Fundamentals](https://learn.arm.com/tag/rtos-fundamentals/) [RTOS](https://learn.arm.com/tag/rtos) [Keil RTX RTOS](https://learn.arm.com/tag/keil-rtx-rtos) [Keil MDK](https://learn.arm.com/tag/keil-mdk) [Arm Development Studio](https://learn.arm.com/install-guides/armds) |

## Who is this for?
This is an introductory topic for software developers new to RTOS development.

## What will you learn?
After completing this Learning Path, you'll be able to perform the following tasks:
- Implement a basic RTOS-based application

## Prerequisites
Before starting, you'll need the following prerequisites:
- An installation of [Arm Keil MDK](https://learn.arm.com/install-guides/mdk/) or [Arm Development Studio](https://learn.arm.com/install-guides/armds/) (MDK recommended)
- Some familiarity with CMSIS is assumed

## Summary
You’ll create a minimal RTX5 application with the CMSIS-RTOS2 API in Keil μVision. First, you’ll install the latest CMSIS packs, configure a new project, and implement a `main()` that initializes the system tick and starts the kernel. Then, you’ll create an `app_main` control thread that creates additional worker threads to demonstrate basic multitasking. After building, you’ll run on a Fixed Virtual Platform from Keil MDK, inspect scheduler state and thread activity using the **RTX RTOS** view, and check formatted output in the **Serial Windows > Debug (printf)** window. Finally, you’ll configure **CMSIS-View Event Recorder** to capture runtime events and redirect `STDOUT` when semihosting isn’t available.
