CMSIS-RTOS2: Hardware Requirements

| CMSIS-RTOS2 Version 2.1.3 Real-Time Operating System: API and RTX Reference Implementation

- Main Page
- Usage and Description
- Reference

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Hardware Requirements

The following section lists the hardware requirements for RTX v5 on the various supported target processors:

# Processor Requirements

RTX assumes a fully function-able processor and uses the following hardware features. It does not implement any confidence test for processor validation which should be provided by an user-supplied software test library.

## Cortex-M0/M0+/M23 target processor

Hardware Requirement | Description
--- | ---
SysTick timer | The SysTick timer generates the kernel tick interrupts and the interface is implemented in os_systick.c using the OS Tick API
Exception Handler | RTX implements exception handlers for SVC, PendSV, and SysTick interrupt
Core Registers | The processor status is read using the following core registers: CONTROL, IPSR, PRIMASK
System Control Block (SBC) | To control and setup the processor exceptions including PendSV and SVC
Interrupt Control | The CMSIS-Core functions __disable_irq and __enable_irq to control the interrupt system via the CPSR core register.

The interface files to the processor hardware are:

- irq_cm0.s defines exception handlers for Cortex-M0/M0+
- irq_armv8mbl_common.s defines exception handlers for Cortex-M23
- rtx_core_cm.h defines processor specific helper functions and the interfaces to Core Registers and Core Peripherals.
- os_tick.h is the OS Tick API that defines the interface functions to the SysTick timer.

Note
  - The CMSIS-Core variable `SystemCoreClock` is used to configure the SysTick timer.

## Cortex-M3/M4/M7/M33 target processor

Hardware Requirement | Description
--- | ---
SysTick timer | The SysTick timer generates the kernel tick interrupts and the interface is implemented in os_systick.c using the OS Tick API
Exception Handler | RTX implements exception handlers for SVC, PendSV, and SysTick interrupt
Core Registers | The processor status is read using the following core registers: CONTROL, IPSR, PRIMASK, BASEPRI
System Control Block (SBC) | To control and setup the processor exceptions including PendSV and SVC
NVIC Interface | The CMSIS-Core function NVIC_GetPriorityGrouping to setup interrupt priorities.
LDREX, STREX instruction | Atomic execution avoids the requirement to disable interrupts and is implemented via exclusive access instructions.

The interface files to the processor hardware are:

- irq_cm3.s defines exception handlers for Cortex-M3 and Cortex-M4/M7 without floating point unit.
- irq_cm4f.s defines exception handlers for Cortex-M4/M7 with floating point unit.
- irq_armv8mml_common.s defines exception handlers for Cortex-M33
- rtx_core_cm.h defines processor specific helper functions and the interfaces to Core Registers and Core Peripherals.
- os_tick.h is the OS Tick API that defines the interface functions to the SysTick timer.

Note
  - The CMSIS-Core variable `SystemCoreClock` is used to configure the SysTick timer.

## Cortex-A5/A7/A9 target processor

Hardware Requirement | Description
--- | ---
Timer Peripheral | An arbitrary timer peripheral generates the kernel tick interrupts. The interfaces for Cortex-A Generic Timer and Private Timer are implemented in os_tick_gtim.c and os_tick_ptim.c using the OS Tick API
Exception Handler | RTX implements exception handlers for SVC, IRQ, Data Abort, Prefetch Abort and Undefined Instruction interrupt.
Core Registers | The processor status is read using the following core registers: CPSR, CPACR and FPSCR.
LDREX, STREX instruction | Atomic execution avoids the requirement to disable interrupts and is implemented via exclusive access instructions.
Interrupt Controller | An interrupt controller interface is required to setup and control Timer Peripheral interrupt. The interface for Arm GIC (Generic Interrupt Controller) is implemented in irq_ctrl_gic.c using the IRQ Controller API.

The interface files to the processor hardware are:

- irq_ca.s defines SVC, IRQ, Data Abort, Prefetch Abort and Undefined Instruction exception handlers.
- rtx_core_ca.h defines processor specific helper functions and the interfaces to Core Registers and Core Peripherals.
- os_tick.h is the OS Tick API that defines the interface functions to the timer peripheral.
- irq_ctrl.h is the IRQ Controller API that defines the interface functions to the interrupt controller.

Note
  - The CMSIS-Core variable `SystemCoreClock` is used to configure the timer peripheral.

# Memory Requirements

RTX requires RAM memory that is accessible with contiguous linear addressing. When memory is split across multiple memory banks, some systems do not accept multiple load or store operations on this memory blocks.

RTX does not implement any confidence test for memory validation. This should be implemented by an user-supplied software test library.