IT lexicon › Programming › CMSIS-RTOS

CMSIS-RTOS

Programming På svenska → Updated: 2026-11-05

Arm's common API for real-time kernels on Cortex-M, meant to let firmware switch RTOS without a rewrite.

Every kernel has its own vocabulary for the same ideas: a thread is a task in FreeRTOS, a thread in ThreadX and something else again in the next one. CMSIS-RTOS adds a thin layer on top with calls like osThreadNew(), osDelay(), osMutexNew() and osMessageQueueNew(). The first version appeared in 2012; CMSIS-RTOS2, shipped with CMSIS 5 around 2016, reworked the API and added static allocation and multi-core support.

The reference implementation is Keil RTX, but FreeRTOS, Zephyr and others have wrappers. STM32CubeMX generates CMSIS-RTOS2 calls on top of FreeRTOS by default, which is why plenty of people who think they write FreeRTOS code have never seen xTaskCreate(). The price of portability is the lowest common denominator: each kernel's better features are only reachable by stepping outside the abstraction.

← Back to the lexicon