Lessons from leading the FreeRTOS IEC 61508 safety certification
Summary. Achieving IEC 61508 safety certification for an established software component differs fundamentally from building one under a safety lifecycle from the start. The code already exists; what is usually missing is a bounded claim, independently specified behavior, systematic failure analysis, and a controlled process that can keep producing trustworthy evidence. Drawing on my experience leading the FreeRTOS IEC 61508 safety certification to Systematic Capability 3, this article presents seven practical lessons. It shows how the V model can structure recovery of requirements, design, and verification evidence for existing code; which documents and evidence each phase should produce; how risk-reduction measures and diagnostics follow from failure analysis; why separating the portable core from hardware-specific ports makes the safety certification of future ports tractable; and why standardized change management, qualified tools, and verified automation are what keep a certificate valid after release. The intended readers are engineering leaders, architects, and verification engineers planning a similar effort.
Introduction
Established software can have years of production use, an active community, and extensive testing, yet still require substantial work before it is suitable for a safety-related system. Field maturity is valuable, but it is not, by itself, evidence of the kind a functional safety assessment requires.
IEC 61508 safety certification rests on a precisely defined claim and a body of evidence that supports it. That evidence must show how the software was specified, designed, and implemented; how it was verified and validated through reviews, analysis, and testing at every level; under which conditions it may be used; and how it will be maintained. The last point is easily underestimated. A credible claim depends on a standardized, controlled process for change management, review, regression verification, and release, so that the evidence remains valid as the software evolves. Without that process, a certificate describes a single snapshot rather than a product that integrators can depend on over its lifetime.
My own understanding of this was shaped by a surprise early in the program. When we collected the requirements, analyzed the effort, and built a work breakdown structure, the result was far above our initial estimate and carried considerable risk from unknowns and ambiguity. A function that looked familiar in the source code needed a precise behavioral contract, failure analysis, several kinds of tests, configuration-specific results, and a reviewed set of supporting documents. Multiplied across every API, port, and configuration, those obligations reshaped the entire program.
I led the FreeRTOS IEC 61508 safety certification, with TÜV as the independent certifier. The lessons that follow are the ones I would carry into any similar program:
Bound the claim, and hold that boundary in every API, document, and test.
Start small. Establish the process, skills, and infrastructure before scaling.
Use the V model to define the documents and evidence each phase must produce.
Specify each API as a contract that includes its failure behavior.
Analyze failures and define risk-reduction measures and diagnostics.
Keep the portable core separate from hardware-specific ports.
Standardize the process that sustains the evidence through maintenance: approved tools, change management, reviews, regression verification and validation, and automation that is itself verified.
Public context. We, the FreeRTOS team, published the certification plan in the public FreeRTOS safety certification roadmap. In a January 31, 2025 update, we described the target as IEC 61508 Systematic Capability 3 (SC 3), for use in systems up to SIL 3, with separate certificates for the kernel and for individual processor ports; the first port covered was the TI Hercules family. In a February 17, 2026 update, we reported that certification had been received and linked the certificate records. [1] The examples below illustrate engineering practice. They do not reproduce private implementation details, test results, or assessment findings.
What a certificate does and does not say
IEC 61508-3 covers software in safety-related systems: lifecycle activities, systematic capability, support tools, modification, and the information that system integrators need. It operates alongside the system and hardware requirements in the other parts of IEC 61508. [2]
For reusable software, precise language matters. A component assessed as SC 3 does not by itself make the product that uses it a SIL 3 system. The product developer still has to define the safety functions, meet the system requirements, and show that the component is used within its assessed conditions of use. A kernel certificate does not cover every port, optional feature, middleware library, or application.
The standard itself is changing. As of November 2026, Edition 3 of IEC 61508-3 is in final approval. It folds the proven-in-use requirements of IEC TS 61508-3-1 into the main text and adds regression-testing requirements. [3] A new edition does not change an existing project's assessment basis automatically. Agree the edition and transition arrangements with your certifier explicitly.
Lesson 1: Bound the claim, then hold the boundary everywhere
Before estimating anything, write down exactly what will be assessed. That means the repository and commit, the source files, the processor port, the compiler and build options, the enabled features, the permitted calling contexts, the dependencies, and the excluded functionality. Startup code, runtime libraries, assembly, and shared configuration headers belong on the list too. They can change the behavior of the assessed software even when the main source file has not changed.
Documenting the boundary is comparatively easy; the harder discipline is keeping every subsequent decision within it. The claim decides what each API must document, what each test must exercise, and what each analysis must consider. If the boundary drifts in one place, the effort grows everywhere.
Take the scheduler. If the claim is a defined uniprocessor configuration, the scheduler contract, the queue and semaphore contracts, the critical-section design, the failure analysis, and the tests must all assume that single execution model. Deviation from this model is common and often unnoticed. While specifying a queue API, an engineer may reasonably ask, "What happens if another core is accessing this?" Pursuing that question introduces memory ordering, cross-core locking, multiprocessor scheduling, and SMP-specific tests, all for a configuration the claim never included.
The growth is multiplicative, not additive. Each added configuration dimension, such as core count, allocation scheme, MPU use, or an optional feature, multiplies the number of requirement variants, analysis cases, test cases, and evidence records. For example, ten APIs evaluated across two binary configuration choices yield forty combinations; a third choice doubles that to eighty.
A bounded claim still has to deal with concurrency. Even a single-core system has tasks, interrupts, and shared resources. Excluded functionality still needs an argument that it cannot interfere with the assessed behavior, for example because it is compiled out or isolated. Each exclusion should be explicit and justified.
A practical control is a short claim register. It records the claim, its assumptions, exclusions, supported configurations, and the triggers that would force a re-evaluation. Every proposed requirement, test, or feature should trace to an entry in it. "Is this within the claim?" should be a routine review question; items outside it are recorded for a future extension rather than silently absorbed.
Review gate: every proposed claim is tied to a named version and a supported environment, and every work item traces to the claim register.
Lesson 2: Start small and establish the process before scaling
The work is demanding because it must be both broad and deep. Every function and API needs safety-aware thinking about its design and architecture. Each one needs many test cases. Each one needs documentation of its purpose, input and output parameters, valid ranges, edge cases, side effects, blocking behavior, error returns, and the conditions that lead to a safe state on failure. All of that has to trace from requirement to design, to test case, and to retained test evidence. This happens while development continues and while the team is still learning the standard. Attempting all of this simultaneously can overwhelm even an experienced team.
The approach that proved effective was to start small: establish the process first, allow the team to build skills and confidence, and only then scale. In practice, that meant putting the following foundations in place before broad production of evidence:
Process definition. A lifecycle plan with activities, inputs, outputs, acceptance criteria, owners, reviewers, and approval authority, agreed with the certifier.
Document set. The complete list of required documents and evidence items, with agreed templates. This includes placeholders for every API, function, and test case, each with a stable identifier and traceability fields already in place.
Toolchain and build. A fixed, reproducible compiler and build configuration, with tool versions under configuration control.
Test infrastructure. Unit, integration, and on-target test frameworks, coverage measurement, and result capture that produces reviewable evidence.
Traceability. A mechanism that links requirements, design, code, tests, results, anomalies, and changes in both directions and keeps those links current.
Change management. A controlled path for every change, covering impact analysis, review, reverification, and document updates, active from day one.
Skills. Training in the standard and in the team's own templates, and early practice reviews so that expectations converge.
The next step is to take one bounded API family through the whole lifecycle as a representative slice, chosen so that it has normal behavior, a boundary condition, a failure path, and a meaningful integration point. Complete its requirements, design, safety analysis, implementation changes, tests, traceability, and reviews. Get early assessor feedback through the agreed process. Record the time spent on review and rework as well as on first drafts.
The completed slice provides the most reliable basis for estimation. It shows what the templates are missing, where the test infrastructure is weak, which assumptions are unclear, and how much reviewer capacity the program needs. Estimate the remaining work by complexity, target dependence, concurrency, configuration variation, and evidence gaps. Counts of APIs or lines of code alone omit too much of the effort.
Review gate: the slice is accepted end to end, the process is documented and in use, and the remaining estimate is based on measured slice data.
Lesson 3: Use the V model to define documents and evidence
The left side of the V model defines the required behavior and refines the design step by step. Coding sits at the bottom. The right side produces evidence that the implementation meets each earlier decision. Verification also happens throughout the lifecycle, through reviews and analysis. It does not wait until coding is finished.
For existing software, the implementation is already at the bottom of the V. The task is to recover what the software does, specify independently what it must do, and resolve the differences through controlled changes. Current behavior is not automatically correct. Avoid writing requirements just to match existing tests. That produces apparent completeness while leaving the intended behavior unchallenged.
Figure 1. An explanatory V model for existing software. The connecting lines show planning and traceability relationships. Reviews and analysis continue throughout the lifecycle. Original illustration.
Table 1 lists the major work products I would plan for each phase. Names and grouping vary between organizations and assessment bases. What matters is that each left-side definition has a planned right-side evidence item and a review record.
Table 1. Major documents and evidence by V-model phase (illustrative; the agreed assessment basis governs).
V-model phase Major definition documents Corresponding verification evidence
Safety context and planning Functional Safety Management Plan; Software Safety Plan; Verification and Validation Plan; Configuration Management Plan; Software Quality Assurance Plan; claim register Plan reviews; competence and independence records; certifier agreement on assessment basis
Software safety requirements Software Safety Requirements Specification (functional behavior, safety integrity, assumed operating context, integrator obligations) Software Validation Specification and Report; requirements review record
Software architecture Software Architecture Design Description (elements, interfaces, execution contexts, core/port boundary); software FMEA, FTA, and dependent-failure analysis Integration Test Specification and Report; architecture review record
Detailed design Module Design Specifications (per-API contracts, state machines, data structures, error handling, safe-state conditions) Module (Unit) Test Specification and Report; structural coverage report with justified exclusions
Implementation Coding Standard and documented deviations (for example MISRA C:2012); source under configuration control Code review records; static analysis reports; deviation approvals
Cross-lifecycle Traceability matrix; tool classification and qualification records; anomaly and change-request records; impact analyses Verification reports for each phase; functional safety audit and assessment reports
Release and use Safety Manual for the compliant item; release notes defining the configuration Safety case or argument linking claims to evidence; certificate and assessment report
The Safety Manual deserves special care. IEC 61508-3 Annex D sets out what it must contain for a compliant item. That includes supported use, configuration, assumptions, restrictions, fault handling and safe states, and the responsibilities that remain with the integrator. [2, 4] Write it as instructions the integrator can act on: what to configure, what to verify, what to avoid, and what evidence the product must produce. Keep it consistent with the released code and the assessment scope.
Lesson 4: Specify each API as a contract that includes its failure behavior
For each API, specify its purpose, configuration dependencies, allowed callers (task, ISR, or before the scheduler starts), parameter ranges, preconditions, outputs, state changes, side effects, blocking and timing behavior, resource ownership, and error returns. Include the boundary conditions and invalid inputs that are within the supported contract.
Make responsibility explicit. The integrator must enforce some preconditions, and the component detects some errors. A full queue is often an expected operating condition. A corrupted scheduler data structure is a fault, and the safety analysis must decide how it is handled. The component may detect the fault and signal it, but the system decides the safe response. An RTOS cannot decide whether a given machine should stop, reset, continue in a degraded mode, or take some other controlled action.
A generic queue example illustrates why traceability requires more than a link to a test name.
Requirement. Given a valid, initialized queue in a permitted task context, sending to a full queue with a zero wait time returns the specified status and leaves the stored items and their order unchanged.
Design. Identifies the path that returns before the queue storage is modified.
Test. Fills the queue with known items, attempts the extra send, checks the status, and then receives every item to confirm contents and order. Concurrent behavior is a separate requirement with its own evidence.
Evidence record. The requirement, source, and test revisions; the configuration, toolchain, and execution environment; expected and actual results with retained logs; any anomaly and how it was resolved; the reviewer and the acceptance decision.
A record like this stays useful when a defect is investigated or a configuration changes. It exposes missing runs, stale results, and incomplete reviews that a simple requirements-to-test list can hide. Expected results must come from the approved contract. Tests derived from the implementation's own logic can repeat the same misunderstanding.
Host tests and mocks give fast, repeatable checks. They cannot establish the correctness of target-specific assembly, interrupt behavior, context switching, or compiler-dependent execution. Those need evidence on the target and at integration.
Lesson 5: Analyze failures and define risk-reduction measures and diagnostics
Do the failure analysis at a level where it can still change the design. For each architectural element, ask how incorrect state transitions, corrupted control structures, stack overflow, unexpected interrupts, priority problems, or resource exhaustion could arise and spread. Software FMEA works bottom-up from each function and data item. Fault tree analysis works top-down from each hazardous outcome. A dependent-failure analysis looks for shared causes across supposedly independent elements, such as shared memory, shared interrupts, common configuration, and the common toolchain.
For each relevant failure mode, record whether the component prevents it by design, detects it with a diagnostic, contains it, or passes responsibility to the integrator through the safety manual. Each diagnostic needs a defined fault model, a detection mechanism, a reaction, and a timing characteristic, plus evidence that it works.
Table 2 illustrates the categories of measures with mechanisms that the public FreeRTOS kernel provides. It is not a statement of what any certified configuration includes or requires. That is defined by its safety manual.
Table 2. Illustrative risk-reduction measures and diagnostics for an RTOS.
Failure concern Measure category Illustrative mechanism Evidence needed
Invalid parameters or calling context Detection Assertion hooks (configASSERT) on preconditions and context checks Tests that trigger each assertion; defined reaction routed to the integrator
Task stack overflow Detection Stack overflow checking at context switch (configCHECK_FOR_STACK_OVERFLOW) with an application hook Fault-injection test; stated detection limits (checks at switch time, not every write)
Corruption of kernel lists Detection Guard values in list structures (configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES) Corruption-injection test; coverage of check locations
Memory exhaustion or fragmentation Prevention Static allocation of kernel objects (configSUPPORT_STATIC_ALLOCATION) with dynamic allocation disabled Build evidence that no heap path is reachable in the claimed configuration
Interference between tasks Containment MPU-based isolation on ports that support it (configENABLE_MPU) Port-specific verification; often handled as a separate claim
Kernel hang or missed deadlines Passed to integrator Independent watchdog, timing monitoring, and schedulability analysis at system level Safety manual obligation; product-level evidence
Two cautions follow. First, diagnostics are software too. They need requirements, tests, and fault injection, and a diagnostic that is never exercised gives false confidence. Second, every diagnostic adds code, timing, and configuration variants. Choose measures that the failure analysis actually requires, within the bounded claim.
Lesson 6: Keep the core separate from hardware-specific ports
One of the most consequential architectural decisions is to keep the portable kernel separate from processor- and toolchain-specific ports, with a stable, documented contract between them. That separation lets a new port be brought under IEC 61508 safety certification without reopening the core's evidence, as long as the core's assumptions still hold.
The port contract has to cover context save and restore, register preservation, stack alignment, interrupt masking and priority rules, critical sections, the tick source, and any memory-ordering assumptions. The core's requirements, analyses, and tests should depend only on that contract, never on a specific port's internals.
Figure 2. A core and port assurance boundary. Each port needs its own justified evidence. Reuse of core evidence depends on the continued validity of its assumptions. Original illustration.
A separate certificate for each port makes this boundary visible in the certification itself. [1] When a new port arrives, the work is bounded. It needs its own requirements, its own analysis of target-specific code (often assembly), verification on the target, integration and regression runs against the core, and agreement with the certifier on extending the assessment. It does not need the core redone. Separate source directories alone do not create this benefit. The benefit comes from the contract and from discipline: no port-specific conditionals creeping into the core, and no core assumptions left unstated.
A separate core and port do not by themselves isolate tasks from each other. Shared memory, interrupts, locks, and processor time still cross the boundary, and the analysis has to deal with them. When an interface obligation changes, revisit every piece of evidence that depended on it.
Lesson 7: Standardize the process that sustains the evidence
IEC 61508 safety certification is not a one-time documentation exercise. The organization must continue to produce trustworthy evidence through every subsequent change, which requires four standardized elements.
Approved tools. Keep a controlled list of approved build and test tools with exact versions and configurations. IEC 61508-4 classifies support tools by how an error could affect the result. Class T1 tools produce no output that contributes to executable code. Class T2 tools support verification, so an error could hide a defect. Class T3 tools generate outputs that become part of the executable, such as compilers and linkers. [2, 4] For each T2 and T3 tool, record the evidence for confidence. That can be a certificate whose use case matches yours, increased confidence from use, validation in the project, or safeguards such as diverse checks. Tool qualification is always tied to the tool's actual use and version, and a tool certificate does not remove that check. [5] Changing a tool version is a change request like any other.
Reproducible builds. Preserve the build environment and record commands, options, dependencies, and output identifiers, for example hashes. Another authorized engineer should be able to reproduce the assessed build exactly, or explain any nondeterminism.
Change requests. Every change to code, requirements, tools, or documents goes through one defined workflow: request, safety impact analysis, approval, implementation, reverification, document updates, and closure. The impact analysis decides which evidence is still valid, what must be repeated, which documents change, and whether the certifier must be involved. A changed requirement can ripple into design, tests, traceability, and the safety manual. The workflow should make that ripple visible rather than leaving it to memory.
Automated verification, with proof that the process works. Our tests covered normal behavior, boundaries, build-time configurations, runtime conditions, error handling, unit, functional, and integration tests, and mocks. Each change meant repeated runs, and automation turned that load into a routine pipeline. Builds, static analysis, test execution, coverage collection, traceability checks, and evidence packaging all ran automatically. That freed engineers for design, documentation, and investigation.
Automation that produces safety evidence also needs evidence that it is correct. The pipeline should therefore be challenged deliberately:
Introduce a known failing assertion and confirm the run is rejected.
Disconnect the target and confirm the run is reported as failed, not passed.
Supply a malformed or truncated report and confirm the parser rejects it.
Remove a required result and confirm the gap is flagged.
Present an old artifact from a different revision and confirm it is not accepted.
Keep the results of these pipeline self-tests as evidence, together with logs that tie each result to its baseline. A parser that reads an incomplete report as a pass can undermine otherwise good tests. A skipped test needs an explicit disposition. A reused result needs proof that it applies to the current baseline. Automation produces evidence for review. Independent assessment and authorized release decisions still need their own records.
Reuse routes: popularity is not proof
Pre-existing software needs a justified compliance route. IEC 61508-3 allows an element developed to the standard (Route 1S), an element proven in use (Route 2S), or an assessment of a non-compliant development (Route 3S). The CASS guidance notes that routes can be combined across an element's history. [2, 4] Reconstructing documentation does not show that the historical development followed a safety lifecycle. Development after the decision should proceed under the planned controls.
Popularity is not proven-in-use evidence. IEC TS 61508-3-1:2016 addresses proven-in-use claims for SIL 1 and SIL 2. It is not a general shortcut to SC 3. [6] Large deployment numbers without a documented operating profile, failure records, and configuration control do not constitute such evidence.
Release and maintenance
Plan validation early enough that the team knows what completion looks like. At release, identify the exact software, configurations, tools, documents, and results that support the claim. Release decisions should consider the applicable objectives, justified coverage, current traceability, open assumptions, anomalies, and completed reviews. A finding that invalidates the claim must be resolved before release. Other residual issues need a documented impact and an authorized disposition.
A component can implement its scheduling policy correctly while an application still misses a deadline because of its priorities, interrupt load, or execution budgets. The safety manual should make that boundary between component and system clear.
After release, the certificate is a baseline that must be maintained. Every defect fix, compiler upgrade, dependency update, or new port goes through the change-request workflow. Keep a route for investigating field issues and for telling integrators about corrections or interim restrictions. A new port or configuration does not inherit the original claim just because it shares most of the source code.
What I would track on the next program
Document counts and test pass rates are useful, but they do not show whether a safety claim is justified. Alongside schedule, I would track the following indicators:
Requirements with accepted verification evidence, not just written requirements.
Unresolved assumptions and items outside the claim register.
Unreviewed coding-standard deviations and open analysis actions.
Open assessment findings and their age.
Review turnaround and rework rate.
Stability of the configuration and tool baseline.
These measures show whether the team is closing obligations or accumulating work that still needs acceptance.
Conclusion
The central lesson is that IEC 61508 safety certification of existing software is an evidence-engineering problem rather than a documentation exercise. Define a bounded claim and defend it. Prove the process on a small slice before scaling. Plan the documents and evidence for every phase of the V. Specify contracts that include failure. Choose diagnostics from the analysis. Keep the core independent of its ports. Automate the repetitive work, and verify how that automation fails. Above all, standardize change management, review, verification, and validation so that the evidence remains valid long after the certificate is issued. What an integrator ultimately receives is not only software, but credible evidence and clear, maintained conditions for using it safely.
Sources and further reading
FreeRTOS, "FreeRTOS safety certification roadmap," FreeRTOS-Kernel GitHub issue #906, including maintainer updates of January 31, 2025 and February 17, 2026.
IEC, IEC 61508-3:2010, Functional safety of E/E/PE safety-related systems, Part 3: Software requirements. Consult the normative text, together with IEC 61508-4 for definitions such as tool classes, for project requirements.
IEC SC 65A, IEC 61508-3 Edition 3, project status and scope summary (final approval stage, 2026). See IEC 61508-3 ED3 project record.
The 61508 Association for CASS, CASS TOEs for Software Assessment in relation to IEC 61508-3:2010, v3.3.
TÜV SÜD, Functional Safety Software Tools.
IEC, IEC TS 61508-3-1:2016, Part 3-1: Software requirements, reuse of pre-existing software elements to implement all or part of a safety function.
FreeRTOS, Customization (FreeRTOSConfig.h) documentation, for the public kernel configuration options cited in Table 2.
About the author
Nishant Singh is an engineering and technology leader with more than 25 years of experience in software engineering, engineering management, product development, and technical program leadership across AWS, Intel, Samsung, SiRF/CSR/Qualcomm, Conexant, and NeoMagic. His work spans embedded systems, Linux and real-time operating systems, firmware, virtualization, IoT and edge computing, open-source software, and functional safety certification, including FreeRTOS, Tizen OS, and WebRTC SDK development. He writes about practical architecture, verification, and engineering leadership.

