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](https://circuittwin.ai/docs/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](https://circuittwin.ai/docs/concepts#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](https://docs.px4.io/main/en/simulation/) , [PX4 Gazebo](https://docs.px4.io/main/en/sim%5Fgazebo%5Fgz/), 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](https://docs.px4.io/main/en/flight%5Fcontroller/pixhawk6c.html), 2026-11-20) ([PX4 Pixhawk 6C guide](https://circuittwin.ai/guides/px4-pixhawk-6c-simulation)).

## Comparison

__CircuitTwin and PX4 SITL__
| 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](https://circuittwin.ai/guides/px4-pixhawk-6c-simulation)).         | 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](https://docs.px4.io/main/en/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](https://docs.px4.io/main/en/simulation/), 2026-11-20).                                                                                 |
| 3D physics & airframe ecosystem | Includes Proving Ground 3D scenes for closed-loop sensor/actuator testing ([Proving Ground](https://circuittwin.ai/docs/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](https://docs.px4.io/main/en/simulation/) , [PX4 Gazebo](https://docs.px4.io/main/en/sim%5Fgazebo%5Fgz/), 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](https://circuittwin.ai/docs/inputs)).        | Supports MAVLink sensor failure injection at the uORB/topic layer; cannot catch SPI dummy-byte bugs, STM32H7 DMA DTCM faults or HardFaults ([PX4 Simulation](https://docs.px4.io/main/en/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](https://docs.px4.io/main/en/sim%5Fgazebo%5Fgz/), 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)](https://docs.px4.io/main/en/simulation/): Architecture of PX4 SITL (host POSIX build + Gazebo/jMAVSim/FlightGear) and HITL.
- [PX4 Documentation — Gazebo Simulation](https://docs.px4.io/main/en/sim%5Fgazebo%5Fgz/): 3D physics, multicopter/VTOL/rover airframes, camera and LiDAR simulation with PX4 SITL.
- [PX4 Documentation — Holybro Pixhawk 6C (FMUv6C)](https://docs.px4.io/main/en/flight%5Fcontroller/pixhawk6c.html): 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](https://circuittwin.ai/docs/concepts): Twins built from vendor documents; runs, verdicts and evidence labels; determinism; scenes and links.
- [Inputs and faults](https://circuittwin.ai/docs/inputs): Sensor faults, parts off the bus, wiring faults and input variation.
- [Test your firmware](https://circuittwin.ai/docs/testing): Test suites and test matrices, locally and on the hosted service.
- [Test in CI](https://circuittwin.ai/docs/ci): The GitHub Action and the GitLab CI/CD component.
- [Board dashboard](https://circuittwin.ai/docs/board-dashboard): Each board and suite with its level, status and evidence file.
- [Accuracy report](https://circuittwin.ai/docs/accuracy): What the twins are checked against, the results and the known gaps, including timing and the reference emulators.

## More

Other comparisons:

- [CircuitTwin vs Renode](https://circuittwin.ai/compare/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](https://circuittwin.ai/compare/qemu): A general machine emulator, compared on a benchmark of seeded firmware bugs that ran on both.
- [CircuitTwin vs Simantic](https://circuittwin.ai/compare/simantic): A firmware simulator with published firmware demos and tracing options, compared from its public pages.
- [CircuitTwin vs Wokwi](https://circuittwin.ai/compare/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](https://circuittwin.ai/compare/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](https://circuittwin.ai/compare/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](https://circuittwin.ai/compare/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](https://circuittwin.ai/compare/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](https://circuittwin.ai/compare/proteus): 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](https://circuittwin.ai/compare/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](https://circuittwin.ai/compare/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](https://circuittwin.ai/compare/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](https://circuittwin.ai/compare/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](https://circuittwin.ai/docs/accuracy): What the twins are checked against, the results and the known gaps, with the record behind each number.
- [Board dashboard](https://circuittwin.ai/docs/board-dashboard): Each board and suite with its level, status and evidence file.
- [Agent benchmark](https://circuittwin.ai/docs/agent-benchmark): Seeded firmware bugs run on a twin, Renode and QEMU, with every case and the record.
- [Twin generation and checks](https://circuittwin.ai/docs/twin-generation): How a twin is generated from vendor documents and checked before you rely on it.
