Image

Survey Results Reveal Embedded Safety and Security Trends

April 18, 2016
The Barr Group’s latest survey of embedded programmers reveals some interesting statistics about safety and security in current development.

The Barr Group’s latest survey queried thousands of embedded programmers and reveals some interesting statistics about safety and security in current development. Here are a few of my observations.

There was no surprise in the programming language category (Fig. 1). C remains the mainstay for embedded developers, with C++ being the only alternative of note. And I suspect a majority of embedded C++ development uses a minimal number of object-oriented programming (OOP) features. That is not necessarily bad, but it would essentially push the C stack even higher.

1. The primary embedded programming language remains C.

The reason for the popularity of C is clear given its relative portability and wide availability. There is not a new microcontroller or microprocessor that does not have a C compiler for it that is usually part of a free developer package from the chip vendor. Unfortunately C’s flexibility and dependence on programmers doing the right thing that it also tends to be the most prone to generating lots of bugs that are getting us into trouble as we are inundated by the interconnected Internet of Things (IoT).

I was not surprised to see Ada way down on the list, but it had good company. Many know of my preference for Ada for embedded applications and it is available for microcontrollers like ARM’s Cortex-M. I leave it to authors with more expertise to address Ada’s myths and comparison to C.

I brought up the issue of programming languages first because it ties into their No. 1 finding that safety risks abound (Fig. 2). Injuries can be related to automotive accidents for the growing number of electronics with a car to products that could catch fire. This does not include security-related issues that could indirectly affect safety.

2. Safety can be a major issue with embedded products.

The drill-down (Fig. 3) was for only those involved in projects that could cause injuries. One might expect 100% adherence to best safety practices in design and coding, but it looks like there are still gaps. This could be due to the fact that many safety standards are voluntary.

3. Those involved with products where problems could result in injuries often lacked even simple practices like having a coding standard.

For the same subset, the amount of system level testing was over 80% but under 60% for regression testing (Fig. 4). The results were much lower for the entire group. That is not surprising given that testing costs time and money. Implementing a system to automate testing is often something overlooked or deemed too expensive for many embedded projects. This tends to be a requirement for application areas that have safety and security critical standards where the added costs are expected. Still, these tend to be in areas like aviation or medical where mandatory standards exist.

4. For the same subset, the amount of system-level testing was over 80% but under 60% for regression testing.

Not surprisingly, connectivity is on the rise. The survey shows that over 60% of the current crop of projects will be connected. Over 80% will have a wired connection and almost half will have a wireless connection. Many of the wireless devices will also have a wired connection, hence the overlap, but it is likely that the wireless link will be the primary one. 

Another tidbit is that the number of multiple processor designs is significant and increasing. Only 25% of the projects used a single core, with a third having two or three processors. That leaves over 40% using four or more cores.

Given the number of stories about security issues and the aforementioned results, it is surprising that security is not more of a consideration. In fact, almost 40% of the projects did not require security (Fig. 5). There did seem to be interest in having more security, but don’t start celebrating yet.

5. Almost 40% of respondents indicated that their projects required some level of security.

So what security issues were important? Surprisingly, or not, product tampering topped the list (Fig. 6). A significant number of concerns were vendor-related versus the user of the product. The challenge is interpreting the results since injury or death are unlikely to be concerns for most embedded developers, where they are at the top of the list for areas like medical and aviation. Likewise, there is the question of how much effort and cost will be used to address the various areas. Hopefully, a product’s security support will not be limited to protecting the vendor’s IP.

6. The majority of security concerns had less to do with customer concerns and concepts of security.

This brings us back to coding support to address safety and security issues. If you start at the language and coding level, then languages like Ada, tools like static analysis, and automated enforcement of coding standards are what will make a difference. Unfortunately, that is not where things stand now (Fig. 7).

7. Coding standards and practices can help developers deliver safer and more secure products, but that is not something that is being done by the majority at this time.

Embedded application development is not getting easier. It is becoming much more difficult and involves many more pieces than in the past. Adding connectivity to a product not only makes it more complex, but it also opens up a host of security issues.

If you have not been implementing coding standards or using tools like static analysis, then it is something that you need to check out. They really do help reduce bugs and that can actually reduce overall development time. I suspect that a suggestion to check out Ada will quickly be discarded out of hand, but I make it anyway.

In the meantime, check out the full survey results on the Barr Group’s site

Looking for parts? Go to SourceESB.

About the Author

William G. Wong | Senior Content Director - Electronic Design and Microwaves & RF

I am Editor of Electronic Design focusing on embedded, software, and systems. As Senior Content Director, I also manage Microwaves & RF and I work with a great team of editors to provide engineers, programmers, developers and technical managers with interesting and useful articles and videos on a regular basis. Check out our free newsletters to see the latest content.

You can send press releases for new products for possible coverage on the website. I am also interested in receiving contributed articles for publishing on our website. Use our template and send to me along with a signed release form. 

Check out my blog, AltEmbedded on Electronic Design, as well as his latest articles on this site that are listed below. 

You can visit my social media via these links:

I earned a Bachelor of Electrical Engineering at the Georgia Institute of Technology and a Masters in Computer Science from Rutgers University. I still do a bit of programming using everything from C and C++ to Rust and Ada/SPARK. I do a bit of PHP programming for Drupal websites. I have posted a few Drupal modules.  

I still get a hand on software and electronic hardware. Some of this can be found on our Kit Close-Up video series. You can also see me on many of our TechXchange Talk videos. I am interested in a range of projects from robotics to artificial intelligence. 

Sponsored Recommendations

Comments

To join the conversation, and become an exclusive member of Electronic Design, create an account today!