Compliance & Verification

DO-178C firmware testing and traceability workflows

Shift requirements-based firmware testing and fault-response checks left onto deterministic digital twins before target-hardware rig time.

Avionics teams working toward DO-178C objectives spend scarce target-rig hours debugging basic peripheral and fault-handling defects that could be caught at pull-request time. CircuitTwin executes the target ARM ELF with pinned hashes, deterministic virtual clocks and air-gapped offline licences (up to 30 days on Team/Enterprise).

CircuitTwin is an engineering verification tool, not a DO-330 qualified verification tool; use it for rapid pre-rig regression and traceability archives ahead of formal target-hardware credit runs.

Pre-rig traceability artifacts

ArtifactContentsHow teams use it
JSON run recordELF SHA-256, twin digest, verdict, virtual time, exit codeLink each test run to requirement ID and Git commit
JUnit / SARIFStructured per-case pass/fail/inconclusive statusFeed CI dashboards and ALM traceability importers
lcov / CoberturaTarget-binary line/branch execution tracesClose dead-code and exception-handler gaps before rig testing
Offline licenceAir-gapped execution up to 30 daysRun inside restricted defence/aerospace build enclaves

Local CLI workflow

Shell — air-gapped traceable suite run
ct test run --offline --json --recheck \
  --junit reports/req-trace.xml \
  --cobertura reports/coverage.xml \
  tests/flight-control.suite.yaml

Suite & fault configuration

tests/flight-control.suite.yaml
version: 1
board: nucleo-h743zi2
firmware: build/flight_ctrl.elf
tests:
  - name: REQ-IMU-014-redundant-failover
    faults:
      - at_ms: 500
        part: bmi088
        kind: bus_disconnect
        duration_ms: 100
    expect:
      console_contains: "REQ_IMU_014_PASS"
      exit_code: 0

CI pipeline integration

CI — offline enclave runner
# Inside air-gapped build runner with CT_OFFLINE_LICENSE configured:
ct test run --offline --json --recheck --junit reports/req-trace.xml tests/flight-control.suite.yaml

DO-178C object-code execution and fault coverage

Inspect executed instruction addresses on your actual compiled flight binary without instrumenting source code.

Source-level gcov instrumentation alters compiler optimization, stack usage and timing. Avionics teams checking object-code branches need execution traces from the unmodified compiled ELF.

CircuitTwin records executed PC traces and fault-branch triggers on the exact target binary so engineers verify defensive error paths before formal target-hardware credit runs.

Object-code trace capabilities

CapabilityCLI flagEngineering use
Deterministic trace record--record trace/Capture exact executed instruction/event stream
Fault-branch activationsuite.yaml faultsForce defensive hardware-error branches usually dead on benches
Zero-instrumentation ELFct run build/flight.elfRun exact release optimization flags (-O2/-Os)
Shell - capture execution trace on target ELF
ct run --json --board nucleo-h743zi2 --record trace/ build/flight_ctrl.elf
tests/avionics-defensive.suite.yaml
version: 1
board: nucleo-h743zi2
firmware: build/flight_ctrl.elf
tests:
  - name: baro-spi-disconnect-branch
    timeout_ms: 2500
    faults:
      - at_ms: 120
        part: ms5611
        kind: bus_disconnect
        duration_ms: 50
    expect:
      console_contains: "BARO_FAIL_BRANCH_TAKEN"
      exit_code: 0

Troubleshooting checklist

SymptomFix
Requirement IDs missing from CI outputPrefix every suite test name with your ALM requirement ID (e.g. REQ-IMU-014-...) so JUnit carries it verbatim.
Unmodelled peripheral masks hardware behaviourNever suppress exit code 4 on traceability runs; log every unmodelled access for physical target-rig coverage.
Runner has no outbound internet accessProvision an offline licence token (Team/Enterprise) and pre-cache board/sensor twins in the enclave.
Timing margins need silicon sign-offTreat twin timing bands as estimates; execute WCET sign-off on physical target hardware.
Error handler branch never executes in normal testsInject SPI disconnect, register override or NACK faults at exact timestamps to exercise every defensive path.
Trace files grow too large in CIKeep fault suites short (1-3 s virtual time) and archive traces only on release branches.

Frequently asked questions

QuestionAnswer
Does running on CircuitTwin replace formal DO-178C target-hardware verification?No. Use CircuitTwin to exercise defensive fault branches and catch regressions on every commit prior to formal target-hardware verification.

Related boards & component twins

More in Compliance & Verification