What should GPIO and other digital-interface tests verify beyond a happy-path signal?
Answer
Verify direction, default and pull states, active polarity, debounce, edge handling, timing, invalid reconfiguration and safe behaviour during boot, reset and low power. Exercise stuck-high, stuck-low, noisy and missing signals with measured electrical levels, and confirm that diagnostics distinguish an external wiring problem from an internal software fault.
Strong answer includes
- covers electrical state and firmware interpretation
- injects stuck and noisy inputs
- checks safe defaults during lifecycle transitions
Practical example
A button-input GPIO is tested only by pressing the button in the lab. In the field, a corroded connector causes the pin to float instead of reading a clean high or low, and the firmware interprets the resulting noise as dozens of rapid presses. A test that injected a floating or noisy signal with a bench signal generator would have exposed the missing debounce logic before shipping.