FreeRTOS

Introduction

FreeRTOS is a real-time operating system for microcontrollers and small microprocessors, distributed under the MIT license. The SDK integrates the FreeRTOS kernel with CPU-specific ports and application-owned configuration.

FreeRTOS is supported on the Arm Cortex-M33 CPU. The SDK uses the Cortex-M33 port without TrustZone task support.

CPU

Compiler

Port

M33

TI Arm Clang

Upstream GCC Cortex-M33 NTZ port (Directly compatible with TI Arm Clang)

M33

IAR Embedded Workbench

Upstream IAR Cortex-M33 NTZ port

Features Supported

  • FreeRTOS Kernel v11.2.0.

  • Preemptive, priority-based scheduling, with time slicing enabled in the SDK default configuration.

  • Tasks, direct-to-task notifications, queues, queue sets, binary and counting semaphores, mutexes, recursive mutexes, software timers, and event groups.

  • Stream and message buffers.

  • Static and dynamic allocation; the SDK builds the heap_4.c allocator.

  • Configurable kernel tick, interrupt-safe APIs, and nested interrupt handling through the CPU port.

  • Optional run-time statistics, trace support, assertions, and stack-overflow checks.

CPU Port Information

M33

Feature

M33

Tick

Cortex-M SysTick

Yield

PendSV exception; SVC starts the first task

Critical section

NVIC priority masking using BASEPRI

Floating-point context

Enabled by configENABLE_FPU in FreeRTOS configuration

Features Not Supported

  • Co-routines are disabled in the default configuration.

  • Tickless idle is disabled in the SDK configuration

    • Note: The tick timer and statistics integration must be reviewed before enabling tickless mode.

  • SMP scheduling is not supported. Each supported CPU core runs an independent FreeRTOS kernel instance.

  • FreeRTOS+POSIX and other FreeRTOS companion libraries are not included by the kernel build.

  • TrustZone-aware task execution is not enabled by the NTZ integration.

  • Task-level MPU protection is disabled in the default configuration.

Important Files and Directory Structure

  • Paths below are relative to ${SDK_INSTALL_PATH}.

  • <cpu> denotes a CPU supported by the selected device.

  • <config> denotes a specific SDK configuration for the selected device. (e.g., default)

Folder / File

Description

source/kernel/freertos/FreeRTOS_Kernel/

Upstream FreeRTOS kernel, headers, and memory allocators (TI fork*)

source/kernel/freertos/portable/

SDK CPU/compiler port integration

source/kernel/freertos/freertos.cmake

Kernel source selection and CPU/compiler port selection

source/kernel/freertos/freertos_api.cmake

Kernel and port include paths

ti_sdk_config/{{TI_SDK_DEVICE}}/<config>/freertos_cfg/<cpu>/FreeRTOSConfig.h

Default kernel and port settings

ti_sdk_config/{{TI_SDK_DEVICE}}/<config>/freertos_cfg/<cpu>/port_cfg.c

Customizable hooks and device integration

ti_sdk_config/{{TI_SDK_DEVICE}}/<config>/cfg_freertos.cmake

Configuration source and include-path wiring

examples/kernel/

FreeRTOS example applications

  • *For details on fork-specific changes and features, see source/kernel/freertos/FreeRTOS_Kernel/README.md.

FreeRTOS Usage Guidelines

See FreeRTOS usage guidelines for SDK configuration, port integration, application startup, memory, interrupts, and diagnostic customization.

Additional References

Document Description

Web Link

FreeRTOS book

https://www.freertos.org/Documentation/RTOS_book.html

FreeRTOS user documentation

https://www.freertos.org/features.html

FreeRTOS User API reference

https://www.freertos.org/a00106.html

FreeRTOS kernel source code

https://github.com/FreeRTOS/FreeRTOS-Kernel

FreeRTOS kernel example source code

https://github.com/FreeRTOS/FreeRTOS/tree/main/FreeRTOS