Embedded systems increasingly perform functions that can affect:
- people,
- machinery,
- environment.
Examples include:
- emergency shutdown,
- burner control,
- motor protection,
- process safety.
When failure can create unacceptable risk, the system may need to be designed according to functional-safety principles.
IEC 61508 is the foundational international standard for functional safety of:
electrical/electronic/programmable electronic safety-related systems.
Fundamentals and Technology Overview
What Is Functional Safety?
Functional safety means the system responds correctly to:
- inputs,
- failures,
- dangerous conditions
so that risk remains acceptable.
Safety Function
A safety function is a specific action intended to reduce risk.
Example:
If pressure exceeds limit, close valve.
Safety Integrity Level
IEC 61508 defines:
- SIL 1,
- SIL 2,
- SIL 3,
- SIL 4.
Higher SIL means stricter integrity requirements.
Hardware Random Failures
Hardware can fail due to:
- semiconductor defects,
- aging,
- memory errors,
- electrical stress.
The safety design must detect or tolerate dangerous failures.
Systematic Failures
These result from:
- design mistakes,
- software bugs,
- specification errors.
Functional safety addresses both:
- random,
- systematic
failure causes.
IEC 61508 Revision Status
IEC 61508 is undergoing a major 2026 revision.
IEC has released pre-release versions of the third edition, including:
- IEC 61508-1:2026,
- IEC 61508-2:2026,
- IEC 61508-3:2026.
A new semiconductor-focused part, IEC 61508-2-1:2026, specifically addresses semiconductor development and integration requirements.
Semiconductor Requirements
IEC 61508-2-1 outlines expectations for:
- semiconductor development processes,
- software test libraries,
- soft IP,
- integration constraints,
- deliverables to system integrators.
This is especially relevant for MCU and SoC vendors.
Safe State
Every safety design should define what happens when a dangerous condition is detected.
Examples:
- de-energize motor,
- close valve,
- disable heater.
Fault Detection
Hardware diagnostics may include:
- watchdog,
- ECC,
- RAM test,
- Flash CRC,
- clock monitor,
- voltage monitor.
Watchdog
An independent watchdog detects:
- software hang,
- stalled execution.
Implementation, Testing, and Optimization
ECC
ECC memory can detect and correct certain memory faults.
Lockstep CPU
Some safety processors use dual CPU cores executing the same instructions.
Differences between results indicate a possible hardware fault.
Clock Monitoring
A clock monitor detects:
- stopped oscillator,
- invalid frequency.
Voltage Monitoring
Brownout and supply monitoring protect against unsafe execution during undervoltage.
Memory Test
Boot-time or runtime self-test can detect memory faults.
CPU Self-Test
Diagnostic libraries may test:
- registers,
- ALU,
- control logic.
FMEDA
Failure Modes, Effects and Diagnostic Analysis evaluates:
- component failure modes,
- failure rates,
- diagnostic coverage.
FMEDA is a core hardware-safety analysis method.
Diagnostic Coverage
Diagnostic coverage measures how effectively safety mechanisms detect dangerous faults.
Safety, Security, and Reliability
Safe Failure Fraction
SFF measures the proportion of failures that are either:
- safe,
- detected dangerous failures.
Hardware Fault Tolerance
Some SIL targets require the architecture to tolerate one or more faults depending on:
- subsystem type,
- diagnostic coverage,
- failure assumptions.
Redundancy
Redundant channels can reduce the chance of a single failure causing a dangerous outcome.
Diversity
Redundant systems may use diverse:
- sensors,
- processors,
- software
to reduce common-cause failure.
Common Cause Failure
Two redundant channels are not independent if one environmental event can disable both.
Examples:
- shared power supply,
- shared clock,
- shared software defect.
Independence
Safety functions may need separation from non-safety functions.
This can include:
- memory isolation,
- power-domain separation,
- independent watchdog.
Safety MCU
A safety-oriented MCU may provide:
- ECC,
- lockstep CPU,
- hardware self-test,
- safety documentation.
Safety Manual
The semiconductor vendor may provide a safety manual defining:
- assumptions,
- constraints,
- required diagnostics.
System integrators must follow these conditions.
Diagnostic Libraries
Vendors may provide libraries that test:
- CPU,
- RAM,
- Flash,
- peripherals.
The new semiconductor-focused IEC 61508-2-1 explicitly addresses software test libraries supplied with semiconductors.
Proof Testing
Some safety systems require periodic tests to reveal hidden failures.
Safety Lifecycle
IEC 61508 uses a lifecycle approach covering:
- hazard analysis,
- design,
- implementation,
- validation,
- operation,
- maintenance.
Validation and Reliability Considerations
Hazard and Risk Analysis
Start with:
- hazards,
- consequences,
- required risk reduction.
Do not choose SIL before understanding risk.
Safety vs Security
Functional safety and cybersecurity are different but related.
IEC 61508 does not fully define malicious attack requirements.
IEC points designers toward standards such as:
- IEC 62443
for cybersecurity.
Safety and Firmware Updates
Any update affecting safety behavior needs:
- controlled process,
- verification,
- validation.
AI and Functional Safety
AI outputs are probabilistic.
Do not make safety depend solely on an unmonitored AI inference.
Use deterministic safety mechanisms.
Example: Motor Drive
Safety functions may include:
- safe torque off,
- overspeed protection.
Example: Process Controller
Safety functions may include:
- high-pressure shutdown,
- emergency isolation.
Common Mistake: Treating Certification as a Final Test
Functional safety must be built into the full development process.
Common Mistake: Relying on Redundancy Alone
Redundancy without independence may not reduce common-cause risk.
Common Mistake: Ignoring Vendor Safety Constraints
A certified MCU is only useful when integrated according to its safety manual.
Common Mistake: Mixing Safety and Non-Safety Software Without Isolation
A non-safety bug may affect a safety function.
Hardware Safety Workflow
- Perform hazard analysis.
- Define safety functions.
- Determine required SIL.
- Select safety-capable semiconductor.
- Perform FMEDA.
- Design diagnostics.
- Define safe state.
- Validate fault reaction.
- Follow safety lifecycle.
- Maintain evidence and configuration control.
Conclusion
Functional safety is not a single MCU feature.
It is a disciplined system-development process.
IEC 61508 requires designers to consider:
- random hardware failures,
- systematic failures,
- diagnostics,
- safe states,
- lifecycle controls.
The 2026 revision adds even clearer focus on semiconductor development and integration through IEC 61508-2-1.
The key principle is:
a safety system must detect, tolerate or safely respond to credible failures before those failures create unacceptable risk.