the problem with embedded CI

Testing embedded firmware in CI is hard because your tests need hardware. The usual workarounds are: run host-side unit tests only (misses hardware-dependent behavior), mock everything (misses integration bugs), or buy a hardware-in-the-loop farm (expensive, complex).

Renode is a fourth option: simulate the actual hardware.

what Renode does

Renode is Antmicro's hardware simulator. You give it a platform description file (which chip, which peripherals, where they're memory-mapped) and a firmware binary, and it runs the binary in a cycle-accurate simulation. The UART output goes to stdout. The CAN peripheral behaves like a real CAN peripheral.

For systems validation, this means CI runs the actual firmware binary — not a host-compiled test harness — against a simulated micro. If a frame gets corrupted in the DMA path, CI catches it.

the setup

The GitHub Actions workflow cross-compiles, then runs the resulting ELF through Renode with a timeout. If the firmware reaches its test completion message over simulated UART, the test passes. If it faults or hangs, the workflow fails.

It takes about 90 seconds. It catches real hardware bugs. It runs on every push.