Engineering Insights

Risk Mitigation in Embedded Product Development: Engineering Strategies for Safety and Reliability

How to connect embedded-product hazards to protective design, physical shutdown limits and verification evidence.

1. Executive summary

Risk mitigation in embedded product development connects possible failures to their consequences, then establishes the design measures and evidence needed to control them. Reliability concerns the delivery of the intended service over defined conditions and time. Safety addresses unacceptable harm. Both depend on the complete product, including its firmware, electronics, physical equipment and conditions of use.

Effective protection begins with a clear account of how a loss could occur. From that account, engineers can choose measures that prevent the hazardous condition, interrupt its progression or limit its consequences. Each measure needs a defined role and a demonstrated physical effect. Where protection relies on detecting a fault and stopping equipment, the available response time follows from the physical process. Detection, control decisions and the time needed to stop the equipment must all fit within that interval.

This paper develops that approach from hazard analysis through design, verification and service. A liquid-transfer system provides a consistent example of how component failures, shared dependencies and timing limits affect a protective function. The analysis also establishes what operating experience and accelerated testing can support, and how production, maintenance and later modifications preserve the conditions on which the risk decision depends.

Publication details and citation

EEIO-INS-005 · Revision 1.1 · 2026

Published by EmbeddedExpertIO

Editor Israel Gbati

Suggested citation. EmbeddedExpertIO. Risk Mitigation in Embedded Product Development: Engineering Strategies for Safety and Reliability. EmbeddedExpertIO Engineering Insights, EEIO-INS-005, revision 1.1, 2026.

2. Hazard analysis and system boundaries

The starting point for risk analysis is the loss the product could cause and the conditions that lead to it. The analysis connects component failures to system behaviour and identifies who or what could be harmed. The resulting record brings together the initiating conditions, likelihood, uncertainty, consequences and existing controls [1].

In our tank-filling example, a pump transfers liquid from a source vessel into a receiving tank. During normal operation, an embedded controller uses the measured tank level to regulate filling through the pump drive. If that measurement freezes at a plausible low value, filling can continue while the actual level rises. Once the tank’s capacity is exhausted, released liquid can reach people or equipment.

Preventing that release requires a means of stopping transfer even when normal control fails. The analysis therefore extends from the sensor and firmware to the process connection, pump, drive, final isolation device, utilities, wiring and operator actions. Filling, standby, cleaning, startup, maintenance and recovery from interrupted power all belong within that boundary because each can change the conditions under which transfer is permitted.

A pump transfers liquid from a source vessel to a receiving tank. The approved industrial controller illustration represents normal regulation using tank-level feedback. Separate high-level sensing and protective logic command an inlet isolation valve. Liquid flow, normal-control signals and protective-control signals are distinguished.
Figure 1. Tank-filling system with normal regulation and a candidate protective shutdown path. View full size

This example also exposes the distinction between reliability and safety. Reliability evidence concerns the intended service over its specified conditions and duration; safety evidence concerns the hazards that could cause unacceptable harm [2]. A nuisance trip can preserve containment while costing production time. Conversely, ignoring a measurement disagreement can improve apparent availability while allowing dangerous operation. Operating exposure and service failures establish the reliability record, while the safety assessment needs evidence for the particular hazardous events. For machinery within its scope, ISO 12100:2010 provides a methodology for risk assessment and risk reduction [3].

To examine how individual failures develop into hazardous behaviour, failure modes and effects analysis (FMEA) follows the effects of missing, late, incorrect or intermittent outputs from a component, function or interface. Valid-looking data belongs in that review because an incorrect value can pass a simple range check. IEC 60812:2018 covers FMEA across hardware, software and human actions, and NASA’s software guidance examines both the software response to hardware failures and the physical effects of erroneous software outputs [4, 5]. Table 1 applies that perspective to the transfer system.

Table 1. Faults that require more than a nominal functional check.

Scenario What a simple check can miss Design implication
Level measurement freezes at a plausible value A range check still passes Freshness and process-consistency checks need to address incorrect data that continues to arrive regularly.
Pump switching device remains conducting The commanded output changes, but flow continues Transfer requires an effective alternative means of interruption.
Calibration update is interrupted Individual stored values remain readable but form an invalid configuration Validation and recovery must operate on the complete authorised parameter set.
Maintenance bypass remains active Normal operation appears healthy while protection is unavailable Bypass state and the conditions for return to service must be explicit.

Fault tree analysis works back from a defined top event. For “uncontrolled transfer continues after a protective demand”, it identifies combinations involving detection, decision and final isolation. This makes the distinction between a single failure that defeats both paths and two failures that must coincide visible in the analysis [6]. System-Theoretic Process Analysis (STPA) extends the review to unsafe control actions, including omissions, incorrect timing and actions maintained for too long, even when individual components meet their local specifications [7]. In the transfer system, a manual command queued during maintenance could start filling after the receiving vessel has been disconnected. The controller therefore needs to revalidate the queued command against the current operating conditions before allowing filling to start.

Figure 2 locates potential controls along the progression from incorrect information to harm. Their placement helps establish which part of the loss scenario each measure addresses. A prioritisation score can then help organise the investigation, while uncertain occurrence estimates remain explicit in the decision about whether a severe consequence is acceptable.

One example loss sequence, with measurement validation, high-level shutdown, a limit on transferable volume and secondary containment positioned at their intervention points.
Figure 2. From an incorrect level measurement to a harmful release. View full size

3. Risk controls and shared dependencies

Once the loss sequence is understood, the strongest design opportunities often lie in the process itself. Limiting the transferable source volume caps the possible release; reducing maximum inflow gives protection more time to act. Additional usable tank capacity increases the volume available before overflow, while secondary containment limits the consequences after liquid escapes the receiving vessel. These measures address different stages of the same event. HSE’s machinery guidance gives priority to design and protective measures over procedures and warnings [8]. Where an operator response contributes to protection, the warning must be observable and the intervention achievable within the available time.

Component selection determines whether those measures remain effective across the operating envelope. Recommended operating conditions define the intended range of use, whereas absolute maximum ratings identify stress limits. Supply excursions, junction temperature, switching load and sensor error therefore need margins that account for production variation and ageing. For components subject to wear, the service-life assessment also needs the relevant duty: valve operations, contactor cycles, configuration writes or connector insertions.

A second controller can provide an alternative response to a fault, provided that the same fault leaves the resources needed for that response available. A common calibration error, supply fault or failed final switch can still defeat both control paths. For failure events A and B defined over the same operating context, their joint probability is

P(A ∩ B) = P(A) P(B | A).

Using P(B) in place of P(B|A) requires justified independence. Consequently, the dependency review has to establish the effects of shared references, power, wiring, process connections, environmental exposure and maintenance before channel failure probabilities can be multiplied as independent terms [9]. Figure 3 shows a candidate arrangement with separate level sensing and a separately controlled inlet-isolation device. Its value depends on how those elements respond to the identified failures, including shared failures that lead to shutdown and those that defeat protection.

Normal level regulation controls the pump, while a separate high-level protective function controls inlet isolation. Potential shared dependencies are reviewed across both paths, and physical flow is shown separately from control signals.
Figure 3. Dependency review for normal regulation and protective shutdown. View full size

Firmware supervision also needs to establish whether the control task is making progress. An interrupt can continue refreshing a watchdog after the control task has stalled, so watchdog servicing needs to depend on completion of the activities being supervised. A restart used as a recovery action also needs verification, because the fault may persist or the software may resume producing incorrect outputs. NASA’s review of 55 selected high-impact aerospace software incidents identifies erroneous outputs and ineffective restart recovery as recurring concerns within that incident set [10]. For our tank-filling example, recovery testing must establish whether the commanded action actually stops flow.

Because the isolation valve may remain unused during normal filling, a dangerous fault can persist until protection is demanded. The design therefore needs an acceptable interval for detecting that fault and a defined operating state while protection is unavailable. Proof testing addresses dangerous failures that ordinary diagnostics can miss, including faults in the diagnostic function [11]. The test endpoint follows from the protective claim: the valve must interrupt the specified flow, with coil current serving only as evidence about its electrical circuit.

4. Response time and physical limits

The process determines how much time protection has to act. In the transfer system, the relevant endpoint is cessation of flow. A controller could record “stopped” within 1 ms and still permit overflow if the valve closes too slowly. We therefore measure the complete response from the physical threshold through sensing, firmware execution and output signalling to the final interruption of transfer.

For our tank-filling example, we take time zero as the instant the liquid reaches the latest permitted protective threshold. Assume at least 3.0 L of usable capacity remains after accounting for uncertainty, with net inflow bounded by 1.5 L/s. The calculation credits no outlet flow and assumes no residual siphon or pressure-driven transfer after cessation. The additional volume entering during the response must satisfy

∫0tstop Qnet(t) dt < Vavailable.

At maximum inflow, 3.0 L ÷ 1.5 L/s gives a limiting interval of 2.0 s. To preserve unused capacity under this model, flow must cease before that limit. An example allocation assigns 0.40 s to sensing and filtering, 0.05 s to dispatch and interference, 0.01 s to the decision, 0.04 s to output signalling and 0.80 s to physical flow cessation. The combined response is 1.30 s, during which at most 1.95 L enters. This leaves 1.05 L of capacity, equivalent to 0.70 s at the maximum inflow rate. Figure 4 presents the shutdown budget and the remaining capacity.

Verification must establish each part of that allocation on the installed system. Filter delay needs measurement across the accepted operating range, and scheduling analysis must bound the interference that can delay the protective task. At the final element, pump coast-down, valve travel and fluid behaviour determine when transfer actually stops. A sensor or valve that fails to act invalidates the timing argument, so protection availability and response time require separate evidence. Rapid closure also needs assessment for pressure transients: achieving containment must leave acceptable conditions on both sides of the valve.

A constant-cross-section tank illustrates the 3.0 litres available above the protective threshold, the 1.95 litres entering during the allocated response and the remaining 1.05 litres. Five response intervals total 1.30 seconds. At the assumed maximum inflow of 1.5 litres per second, the volume bound reaches 1.95 litres when flow ceases. The equivalent time margin is 0.70 seconds.
Figure 4. Shutdown timing expressed as a bound on additional transferred volume. View full size

5. Verification under faults and interruptions

Verification follows the dependencies that can prevent the protective function from completing. Separate software modules can still share a processor, memory bank or power supply, allowing a non-critical activity to delay protection. Flash logging provides a concrete example. In its STM32 EEPROM-emulation guidance, STMicroelectronics describes configurations in which accesses to a flash bank stall while that bank is being programmed or erased. Code execution and interrupt handling that require the busy bank can consequently be delayed [12]. The timing assessment must therefore account for the installed memory layout and flash-operation schedule, and establish that the protective command is issued within its required response interval while logging is active.

Interrupted flash operations also affect the configuration used on restart. ST’s guidance identifies uncertainty in the affected contents and explains why hardware error correction alone is insufficient to identify every interrupted operation [12]. Even individually checksummed values can combine an old threshold with a new calibration. Recovery therefore needs validation of the complete authorised parameter record, including its schema, ranges and relationships. After an interrupted update, filling remains inhibited until a valid configuration and usable process information are available and the output state is established. Repeated resets must preserve that inhibition rather than produce successive brief pump starts.

The test programme needs evidence at each level where a failure can arise. Unit tests establish state decisions; hardware-in-the-loop tests exercise interfaces and interference; representative physical tests establish sensing, power and flow behaviour. Fault injection then examines the cases identified by the analysis, such as delayed acquisition, plausible frozen samples, exhausted queues, power disturbances, interrupted writes and failed output devices. Where the analysis identifies a dangerous combination, the campaign includes the latent protection fault followed by a demand [13].

For those results to support the protective claim, the record must show that the injected fault reached the intended interface, that protection was enabled and that the required physical endpoint was observed. Elapsed time is recorded alongside that endpoint, with the test arrangement containing the consequences of the injected condition. The proportion of test cases detected describes the campaign’s results. A diagnostic-coverage claim additionally needs a justified model of dangerous failures and evidence that the selected cases represent that model.

6. Reliability evidence and service-life claims

Operating time provides useful reliability evidence when the exposure and failure definition are clear. Under a homogeneous constant-rate model, the probability of observing zero failures over total exposure T is exp(−λT). The corresponding one-sided upper confidence bound on the failure rate is

λU = −ln(α) / T.

Here, 1 − α is the confidence level. At 95% confidence, zero failures in 10,000 device-hours gives an upper bound of approximately 3.0 × 10⁻⁴ h⁻¹. Achieving a bound of 10⁻⁶ h⁻¹ by this method alone requires approximately 3.0 million representative device-hours without failure [14]. Device-hours can be combined in this calculation only when the same constant-rate model is appropriate for the units and operating conditions represented. The result describes the rate of the defined failure; evaluating overflow also requires the demand and protective-path behaviour established by the hazard analysis. Systematic software errors need tests that exercise their triggering conditions, because uneventful operation without those conditions supplies no evidence of the response.

A service-life projection from accelerated testing relates failures under elevated stress to the same physical mechanism at service conditions. For thermal-cycling damage in a joint, this requires a lifetime and acceleration model appropriate to that mechanism and evidence that the test preserves it. Humidity damage and electrical overstress require separate assessment, with extrapolation uncertainty evaluated for each life projection [15, 16]. High-stress testing can still justify a design correction by revealing a weakness, even when the evidence is insufficient for a numerical service-life projection.

7. Production, maintenance and change control

The evidence developed during qualification applies to a defined product configuration and operating envelope. Production acceptance checks individual units for the parts, calibration, programming and assembly features that affect protection. Configuration control links the qualification results to the hardware, firmware, settings and installation actually supplied [18].

That link becomes particularly important when a replacement appears functionally equivalent. A sensor with the same connector and nominal range can have slower filtering and consume the 0.70 s margin established in Section 4. A revised logging schedule can change response latency, while a different enclosure can change component stress. Each change therefore needs review against the assumptions it affects and verification of the resulting protective behaviour.

Maintenance introduces its own changes to the operating state. HSE identifies incorrect replacements, disconnected safeguards and wrong set-points among the relevant sources of error [17]. An explicit bypass state makes unavailable protection visible, and recommissioning establishes that the credited functions work after the service activity. Resetting a controller and authorising a return to operation serve different purposes and need distinct conditions in the design.

Once the product is in service, demands, nuisance trips, failed shutdowns, repeated resets and maintenance findings provide evidence about the original assumptions. Recording those events against configuration and exposure makes it possible to reassess the risk controls and proof-test intervals [11]. The acceptance record then identifies who accepted the residual risk, the supporting evidence and the service conditions attached to that decision [1]. As equipment and procedures change, maintaining that record keeps the decision connected to the installed system’s ability to prevent the specified loss.

Training for engineering teams

EmbeddedExpertIO provides professional training in embedded systems and firmware development. If you are planning training for your team, we can help you choose courses that suit your engineers’ experience and the work ahead. Teams can enrol in a selected group of courses or arrange access to the full course library.

Discuss your team’s training requirements · support@embeddedexpert.io

8. References

[1] NASA. Systems Engineering Handbook, Section 6.4: Technical Risk Management. Source

[2] NASA. Systems Engineering Handbook: Appendices and glossary, including reliability, safety and system definitions. Source

[3] ISO. ISO 12100:2010: Safety of machinery, General principles for design, Risk assessment and risk reduction. Source

[4] NASA. Software Engineering Handbook, Version D, 8.5: SW Failure Modes and Effects Analysis. Source

[5] IEC. IEC 60812:2018: Failure modes and effects analysis, FMEA and FMECA. Source

[6] IEC. IEC 61025:2006: Fault tree analysis. Source

[7] Leveson, N. G., and Thomas, J. P. STPA Handbook, MIT-STAMP-001, March 2018. Introduction and unsafe-control-action analysis. Source

[8] UK Health and Safety Executive. Equipment and machinery frequently asked questions: hierarchy of protective measures. Source

[9] UK Health and Safety Executive. Technical Measures Document: Control systems. Independence, utilities, protective systems and actuators. Source

[10] NASA Engineering and Safety Center. Technical Bulletin 23-06: Considerations for Software Fault Prevention and Tolerance, 19 September 2023. Source

[11] UK Health and Safety Executive. Appendix 1: Process for Defining SIS Proof Testing Requirements. Source

[12] STMicroelectronics. AN4894: How to use EEPROM emulation on STM32 MCUs, revision 12, July 2026. Sections 4.7, 4.8 and 6.3. Source

[13] NASA. Software Engineering Handbook, Version D, 8.57: Testing Analysis. Test-result analysis, fault injection and failure-mode testing. Source

[14] NIST/SEMATECH. e-Handbook of Statistical Methods, Section 8.4.5.1: Constant repair rate, HPP/exponential model. Zero-failure confidence bound. Source

[15] NIST/SEMATECH. e-Handbook of Statistical Methods, Section 8.1.4: What is physical acceleration and how do we model it? Source

[16] NIST/SEMATECH. e-Handbook of Statistical Methods, Section 8.4.3: How do you project reliability at use conditions? Source

[17] UK Health and Safety Executive. Human factors: Maintenance error. Source

[18] NASA. Systems Engineering Handbook, Section 6.5: Configuration Management. Source