Achieving Functional Safety in Safety-Critical Embedded Systems
If you make an error in your systems chances are you'll just have some angry customers or lose a little money. But, what if you're building systems that simply cannot be allowed to fail?
Join the DZone community and get the full member experience.Join For Free
as manufacturers are adding more and more embedded technology and software to their devices in practically all industries, ensuring the safety and dependability of these software-imbued products is becoming a pressing issue—and, as a consequence—a hot topic among product developers worldwide. safety and reliability are vital considerations when it comes to devices and applications that could potentially harm their human users. putting it bluntly, safety engineering could directly contribute to your company’s success (or failure).
developers of mission-critical products (for instance, in the medical device, railway, automotive, and avionics industries, to name just a few) are devising strategies to ensure the dependability and safety of their embedded products. they are required to do this by the rigorous standards and regulations that apply to safety-critical sectors. in the following, we’ll clarify some of the basic definitions related to the functional safety of embedded technology, as well as some practical aspects of the safety engineering of mission-critical software.
basic terms of safety engineering
functional safety is a part of a product’s overall safety, the basis of which is the correct operation of a system or equipment in response to its inputs. essentially, if functional safety is achieved, the product is free from any unacceptable (or unreasonable) risks, and thus does not pose threats of physical injury or damage to humans or to its environment.
harm is the injury or damage caused either directly (physical injury to humans) or indirectly (damage to property or the device’s environment).
hazard is the potential cause of harm. closely related to it are the terms of hazardous situation (meaning the circumstances in which a person might be exposed to hazards), hazardous event that may result in harm, accident (an unintended event that could result in harm), and incident (an event that could potentially cause harm).
in the context of functional safety, the term ' risk ' is used to denote a combination of a harm’s characteristics: its probability of the occurrence, its severity, and the difficulties of controlling the risk.
in essence, as mentioned above, the primary objective of all functional safety activities is to reduce or mitigate as many risks as possible, ensuring that the product does not have the potential to harm users. in the case of software embedded in hardware devices, the sheer complexity of the code makes it difficult to mitigate or at least reduce all risks. so how do companies developing software products for safety-critical sectors achieve functional safety?
the practical side of ensuring functional safety
in terms of software development, there are certain well-established quality assurance methods that help developers achieve functional safety. first and foremost, a large portion of software failures can be attributed to inadequate requirements management. that is, the inaccurate definition of what needs to be done, and an imprecise or unreliable implementation of those features lead to a high percentage of all software failures. to resolve these issues, developers aim to define well-written (accurate, clear, and concise), unambiguous, testable, measurable, and necessary requirements.
features are then developed based on these (and only these) requirements. in order to ensure that all requirements are covered with features and adequately tested, and no features are developed without a requirement that calls for their existence, developers are using the techniques of requirements-based testing and test coverage analysis. while highly efficient, the problem with these techniques is that it is really difficult to implement them in practice–specific software tools and platforms, such as codebeamer alm and other integrated application lifecycle management tools are used to track the long line of artifacts from requirements, through coding, risks, and test cases all the way to release and maintenance. this ability to establish links between work items (traceability) is a fundamental requirement of practically all relevant regulations.
risks are managed throughout the entire development lifecycle. requirements of certain features may come with certain risks, which all need to be analyzed, and their reduction and mitigation actions planned and carried out. the tricky part here is that even mitigation actions (for example, the introduction of a new control feature to the software) could introduce new risks–therefore, risk management needs to be a multi-tier activity, further increasing the complexity of development. needless to say, software platforms with robust risk management capabilities are necessary to manage this level of sophistication.
in addition to requirements management, traceability, risk management, and quality assurance activities, the stringent regulations and standards that apply to the development of safety-critical devices require companies to implement adequate process control. in essence, they need to define mature processes and enforce the use of these compliant workflows (with no deviations) throughout the entire lifecycle. in other words, not only do their end products need to comply with regulations, they are also required to use mature processes during the development of their safety-critical devices. the general standard iec 61508 , as well as its derivatives iso 26262 for the automotive industry , and iec 62304 for medical device development all contain requirements regarding the use of processes.
the topic of functional safety, and especially the methods and processes used to achieve it in the development of safety-critical products, is a broad and complex subject. generally speaking, the above techniques help companies develop safe and dependable products. however, implementing these in practice remains a challenge for most companies. to learn more about ensuring functional safety via requirements-based testing, test coverage analysis, traceability, process control, collaboration, and quality assurance, join our webinar on the 27th of july 2016.
Published at DZone with permission of Kristof Horvath. See the original article here.
Opinions expressed by DZone contributors are their own.