Home / Technical guides / Functional safety
Technical guide / Functional safety

What is functional safety?

Safety is not determined by the RTOS alone. This guide sets out how to design for safety across the whole software stack — RTOS, drivers and middleware — together with SIL/ASIL, the standards, and how to think about failures.

FUNCTIONAL SAFETY

What is functional safety?

Functional safety is a safety measure that reduces risk to a tolerable level through additional functions such as monitoring and protective devices. IEC 61508 defines it as safety that depends on the correct functioning of electrical, electronic, and programmable electronic (E/E/PE) safety-related systems.

It is contrasted with inherent safety (removing the hazard itself). At a railroad crossing, for example, replacing the crossing with an overpass is inherent safety, while installing warning signals and crossing gates is functional safety. Even if the possibility of an accident cannot be reduced to zero, the idea is to lower the danger to a tolerable level through the action of functions and devices.

Because monitoring and protective functions can themselves fail, the whole life cycle requires controlling failures so that risk stays low when they occur (fail-safe), preventing faults and bugs from entering hardware and software, and being able to demonstrate this to third parties through documentation, assessment, and audit (functional safety management).

Three steps of risk reduction

After hazard identification → risk estimation → risk evaluation, intolerable risk is reduced using the following steps.

Step 1: Inherently safe designInherently Safe Design
Reduce the hazard itself by changing the structure or materials (inherent safety).
▼ For the remaining risk
Step 2: Guards and protective devicesFunctional SafetyFunctional safety
Reduce risk with additional functions such as monitoring and protective devices. Usually implemented in E/E/PE (MCU + software, ASIC, FPGA).
▼ For risk that still remains
Step 3: Information for useInformation for Use
Warning labels, warning signals, instructions for use, operator training, etc.

Safety integrity level

Safety integrity is the probability that a safety-related system performs the specified safety function under stated conditions within a stated period. Each standard defines its own levels.

What is functional safety?
StandardSafety integrity measureHighest
IEC 61508SIL 1–4 (Safety Integrity Level)SIL 4
ISO 26262 (automotive)ASIL A–D (Automotive SIL)ASIL D
EN 50128 (railway)SIL 0〜4SIL 4
IEC 62304 (medical)Class A / B / CClass C

A safety function is a function that achieves or maintains a safe state with respect to a specific hazardous event — for example, a pre-crash system or an airbag. ISO 26262 uses the term “safety mechanism.”

Failure types and fault assumptions

What is functional safety?
CategoryDescriptionExample countermeasures
Random hardware failureRandom failures due to aging and wear of componentsHigh-reliability parts, diagnostics, redundancy
Systematic failureSystematic failures caused by design, specification or implementation (e.g., bugs)Process control, verification, certification
Soft errorMemory corruption caused by neutron radiation, electromagnetic waves, etc.ECC, redundancy, re-execution

Fault multiplicity: IEC 61508 addresses single faults. The machinery safety standard ISO 13849 and the automotive standard ISO 26262 consider up to double faults, and in railways some cases consider up to triple faults. Design also takes into account electromagnetic compatibility (EMC), reasonably foreseeable misuse, and unexpected start/stop.

Characteristics of safety-critical systems

Domains where a fault or failure can cause catastrophic harm such as loss of life, serious injury or environmental damage. Absolute reliability is required.

Strict standards and certification
Compliance with industry safety standards (ISO 26262, DO-178C, IEC 62304, etc.) is required at every stage of design, development, and testing.
Determinism
Prove and verify that the same input always produces the same result. Timing analysis substantiates the upper bound on execution time (WCET).
Redundancy
Run multiple channels in parallel against hardware faults and software bugs, and build in fail-safe design.

Main fields: transportation (flight control, railway signaling, automotive braking and autonomous driving), medical devices (ventilators, pacemakers, radiotherapy), energy (nuclear control, chemical-plant emergency shutdown), and defense.

SOFTWARE STACK

Functional safety across the software stack (RTOS, drivers, middleware)

Functional safety is not achieved simply by using a safety RTOS. A safety function is realized across the whole software stack: application → middleware → drivers → hardware. Every path that safety-related processing passes through must have development, verification and evidence matching the target integrity level (SIL/ASIL).

① RTOS (kernel)
Provides task scheduling and freedom from interference through the MPU/MMU, isolating non-safety tasks so they cannot encroach on the memory and timing resources of safety tasks. But even with a safe kernel, the safety function does not hold if the drivers and middleware running on it are not safe.

② Drivers (device drivers / BSP)
The layer closest to the hardware. It handles validity checks on sensor and ADC inputs (range/plausibility), communication CRCs, start-up and run-time self-tests (CPU, RAM, ROM/flash), and interrupt-latency management. Because a driver defect can corrupt safety data directly even on a safe kernel, drivers must be developed and verified to the same integrity level as the kernel.

③ Middleware (communication stacks, protocols etc.)
Automotive and industrial networks (CAN / CAN FD / LIN / FlexRay / Automotive Ethernet / CANopen / J1939) carry safety-related signals. Using end-to-end (E2E) protection (AUTOSAR E2E) and the black-channel principle (IEC 61784-3 / PROFIsafe etc.), CRCs, sequence counters and timeouts guarantee data integrity along the whole path. The standard approach is that even if the channel itself is not safe (a black channel), safety layers at both ends protect it. File systems, USB, TCP/IP and GUIs also need appropriate development rigor if they lie on the path of a safety function.

④ Security (integral with safety)
Tampering and spoofing affect safety, so security and functional safety are designed together — secure boot, signature verification, TLS and so on (security-informed safety).

Summary: safety RTOS (isolation, scheduling) + safe drivers (hardware diagnostics, self-tests) + safe communication middleware (E2E / black channel). Only when all three layers match the integrity level can functional safety be claimed for the system. We support the entire system with products for each layer and with contract development for integration and verification.

Main functional safety standards

What is functional safety?
StandardDomain
IEC 61508Functional safety of E/E/PE systems (basic standard, parent of all domains)
ISO 26262Automotive (vehicle E/E systems)
IEC 62061 / ISO 13849Functional safety of machinery
IEC 62278 / EN 50128Railway (RAMS / software)
IEC 61513Nuclear
IEC 62304Medical device software
DO-178CAviation (airborne software)
ISO 15998 / IEC 60335Earth-moving machinery / household appliances

Compliance generally uses a gap assessment: identify the differences between the standard's requirements and your own procedures and development evidence, and close them.

Products we carry for functional safety

We offer pre-certified safety RTOSes, certified compilers, timing analysis, multicore safety debugging, and more.