Back to the glossary

Embedded and systems

Embedded testing

Embedded testing covers all testing of software that runs on embedded systems: microcontrollers and control units with limited resources and a direct connection to hardware.

Also known as: embedded software testing, firmware testing

What makes embedded software different?

Embedded software controls physical devices, from coffee machines to medical devices and vehicles. It runs with little memory, often without an operating system, has to meet real-time requirements and communicates over interfaces such as CAN, SPI, UART or GPIO. As a result, many faults only show up when the software interacts with the hardware.

Typical test levels

  • Unit tests of the logic, on a PC or directly on the target
  • Software-in-the-loop for the software together with a simulated environment
  • Hardware-in-the-loop for the real device on a test bench
  • System tests on the finished product

Common challenges

Target hardware is scarce, test setups are manual and results are hard to reproduce. The biggest lever is usually to encapsulate hardware dependencies cleanly in the code and test as much as possible automatically without hardware. Whatever remains belongs on an automated test bench.