Compare
CircuitTwin vs PX4 SITL
PX4 SITL compiles autopilot algorithms for host Linux/macOS inside Gazebo. CircuitTwin runs the real ARM Cortex-M7 Pixhawk 6C ELF against STM32H743 and SPI/I2C sensor twins to catch NuttX and DMA driver bugs.
How CircuitTwin runs your firmware
CircuitTwin runs your firmware on its own engine (ADR-0016), not on Renode, QEMU or another external emulator. Twins are compiled from vendor datasheets and CMSIS-SVD files alongside reference manuals, CMSIS packs and errata (Concepts).
A run that touches registers a twin does not model ends inconclusive, not passed, and its report names what the firmware relied on. Evidence labels stay provisional until an independent reference confirms them; see Runs and results.
Where each fits
Use PX4 SITL for flight-control algorithms and multi-vehicle Gazebo missions; use CircuitTwin for Pixhawk board bring-up, NuttX driver regressions and bus-level sensor failover.
- PX4 SITL fits guidance and navigation loops, EKF2 tuning, ROS 2 autonomy or multi-vehicle Gazebo worlds at high simulation speed (PX4 Simulation, PX4 Gazebo, 2026-11-20).
- CircuitTwin fits flight-controller bring-up, NuttX/STM32H7 driver verification, SPI/I2C sensor failover or catching Cortex-M7 HardFaults before flashing a Pixhawk (Pixhawk 6C, 2026-11-20) (PX4 Pixhawk 6C guide).
Comparison
| Area | CircuitTwin | PX4 SITL |
|---|---|---|
| Binary executed | Executes the actual cross-compiled ARM Cortex-M7 ELF (e.g. px4_fmu-v6c_default.elf) on an STM32H743 board twin (PX4 Pixhawk 6C guide). | Compiles PX4 as a native host x86/arm64 POSIX executable using the Linux/macOS abstraction layer instead of NuttX and ARM machine code (PX4 Simulation, 2026-11-20). |
| Drivers, NuttX & DMA | Runs NuttX boot, STM32H7 RCC/SPI/I2C/DMA registers and real BMI088/barometer/magnetometer sensor drivers. | Bypasses board bring-up, NuttX drivers and SPI/I2C/DMA hardware by injecting simulated sensor structs via simulator_mavlink (PX4 Simulation, 2026-11-20). |
| 3D physics & airframe ecosystem | Includes Proving Ground 3D scenes for closed-loop sensor/actuator testing (Proving Ground), without Gazebo’s library of aerodynamics or camera/LiDAR plugins. | Mature integration with Gazebo, jMAVSim, AirSim and FlightGear covering fixed-wing, VTOL and multicopters plus optical-flow cameras and ROS 2 (PX4 Simulation, PX4 Gazebo, 2026-11-20). |
| Hardware fault testing | Injects real SPI disconnects, I2C NACKs, frozen IMU registers, wrong CHIP_IDs or CAN bus-off faults against the flight-controller binary (Inputs and faults). | Supports MAVLink sensor failure injection at the uORB/topic layer; cannot catch SPI dummy-byte bugs, STM32H7 DMA DTCM faults or HardFaults (PX4 Simulation, 2026-11-20). |
Where PX4 SITL is stronger
- Native host execution runs much faster than instruction-level MCU simulation and connects directly to Gazebo aerodynamics, ROS 2 or vision pipelines (PX4 Gazebo, 2026-11-20).
- Control engineers iterate on guidance and mission logic without maintaining board definitions or peripheral register models.
Where CircuitTwin is stronger
- Runs the real cross-compiled flight-controller ELF, catching NuttX startup regressions, STM32H7 clock/MPU/DMA bugs or ARM compiler miscompilations that POSIX SITL never builds.
- Exercises actual Bosch BMI088 SPI dummy-byte transfers, barometer I2C NACK recovery and redundant IMU switching under injected bus faults.
Sources
Every source below was read on 2026-11-20.
About PX4 SITL
- PX4 Autopilot Documentation — Simulation (SITL & HITL): Architecture of PX4 SITL (host POSIX build + Gazebo/jMAVSim/FlightGear) and HITL.
- PX4 Documentation — Gazebo Simulation: 3D physics, multicopter/VTOL/rover airframes, camera and LiDAR simulation with PX4 SITL.
- PX4 Documentation — Holybro Pixhawk 6C (FMUv6C): STM32H743 flight controller hardware specification with redundant IMUs and barometer.
About CircuitTwin
- ADR-0016, the architecture decision record for the deterministic functional-twin core (accepted 2026-08-20, amended 2026-10-21): the custom engine is the only active execution path. It is an internal record of the CircuitTwin repository.
- Core concepts: Twins built from vendor documents; runs, verdicts and evidence labels; determinism; scenes and links.
- Inputs and faults: Sensor faults, parts off the bus, wiring faults and input variation.
- Test your firmware: Test suites and test matrices, locally and on the hosted service.
- Test in CI: The GitHub Action and the GitLab CI/CD component.
- Board dashboard: Each board and suite with its level, status and evidence file.
- Accuracy report: What the twins are checked against, the results and the known gaps, including timing and the reference emulators.
More
Other comparisons:
- CircuitTwin vs Renode: An open-source emulation framework with a large catalog of boards, compared from its public pages and on the agent benchmark.
- CircuitTwin vs QEMU: A general machine emulator, compared on a benchmark of seeded firmware bugs that ran on both.
- CircuitTwin vs Simantic: A firmware simulator with published firmware demos and tracing options, compared from its public pages.
- CircuitTwin vs Wokwi: A browser and VS Code simulator for ESP32, Arduino and RP2040, compared on PCB import, datasheet twins, fault matrices and unmodelled-register reporting.
- CircuitTwin vs LabWired: An MIT open-core YAML-configured embedded simulator compared on PCB auto-wiring, datasheet twin generation, 17-ISA coverage, 3D Proving Ground, and hosted MCP.
- CircuitTwin vs HardLabs: Design-driven PCB firmware-in-the-loop simulation compared on self-serve datasheet twins, 3D Proving Ground physics, hosted MCP, and published evidence.
- CircuitTwin vs Velxio: A free AGPLv3 browser simulator with WebAssembly ngspice compared on custom PCB import, headless CI matrices, reverse-GDB, and explicit unmodelled-register checks.
- CircuitTwin vs HIL Benches: Physical Hardware-in-the-Loop racks vs deterministic digital twins for PR-level firmware CI, fault matrices, electrical sign-off and cost.
- CircuitTwin vs Proteus VSM: Windows mixed-mode SPICE/MCU schematic simulation compared with Linux/macOS headless CI, KiCad PCB import and datasheet twin generation.
- CircuitTwin vs Arm Virtual Hardware: Official Arm Corstone/Ethos-U FVPs compared with multi-vendor MCUs, custom PCB netlists, sensor twins and bus fault injection.
- CircuitTwin vs Zephyr native_sim: Zephyr POSIX host builds (ASan/UBSan/Twister) compared with running the real cross-compiled MCU zephyr.elf on board twins.
- CircuitTwin vs simavr: Open-source GPL-3.0 8-bit AVR simulation and GTKWave VCD traces compared with datasheet sensor twins, PCB import and 32-bit MCUs.
- CircuitTwin vs Keil uVision Simulator: Windows legacy Cortex-M IDE simulation compared with headless Linux/macOS CI and datasheet-generated vendor peripheral twins.
The records behind CircuitTwin’s numbers:
- Accuracy report: What the twins are checked against, the results and the known gaps, with the record behind each number.
- Board dashboard: Each board and suite with its level, status and evidence file.
- Agent benchmark: Seeded firmware bugs run on a twin, Renode and QEMU, with every case and the record.
- Twin generation and checks: How a twin is generated from vendor documents and checked before you rely on it.