A low-poly robot with a glowing violet eye, sitting cross-legged and soldering a circuit board into its own forearm, surrounded by tweezers and loose components.
←  All case studies Synapsio case study

We used our AI-HIL platform to build its own hardware.

Bringing up a new embedded device has traditionally followed the same sequence: read and understand the datasheet, translate it into the device’s register maps, prototype on a breadboard or a starter kit, get the compiler and libraries in place for an initial build, and only once that setup is ready begin the real work of writing code, building it, flashing it and validating the behaviour on the bench.

For a developer bench-top board with multi-bus communication across SPI, I2C, UART and GPIO, that sequence typically takes an experienced team 16 to 24 weeks, and most of that time goes on setup and on finding the faults that only appear on real silicon, rather than on the firmware itself.

The timeline is conventionally dominated by:

Translating register maps from datasheets into peripheral initialisation drivers.

Manually wiring the test harness and configuring instruments.

Writing ad-hoc test scripts that break whenever the pinout changes.

Chasing silicon-dependent race conditions and power transients that software-in-the-loop simulation cannot detect.

Bringing up the signal acquisition gateway tested an alternative workflow: replacing manual bench bring-up with Synapsio, the agentic firmware workbench Better Devices builds and operates, end to end, and the time to bring up the device dropped from weeks to days. Synapsio is an internal closed-loop platform that uses LLM-driven agents to automate firmware synthesis, physical device flashing and time-correlated measurement, with an engineer reviewing and approving each stage before it reaches hardware.

The complete firmware implementation, functional bring-up and automated HIL regression suite were completed in fourteen calendar days.

01

System Architecture & Test Bench Topology

1.1 The device architecture

The gateway board integrates:

Microcontroller
32-bit Arm Cortex-M architecture.
Physical interfaces
Digital and analogue I/Os, high-speed SPI channels, isolated I2C bus, multichannel DMA-driven UART, and external hardware interrupt lines.
Bench constraints
Developer bench-top deployment requiring reliable, repeatable performance: clean cold-boot sequences, robust brownout handling, and strict bus timing margins.
1.2 Bench architecture overview

The bench consists of three primary subsystems:

The host machine running Synapsio and the compiler and programmer toolchain.

The simulation and instrumentation bridge running the logic analyser, mixed-signal scope, and programmable stimulus channels.

The device running firmware for the gateway.

02

The Synapsio Pipeline

Rather than relying on unconstrained LLM outputs, Synapsio strictly isolates non-deterministic reasoning (planning) from deterministic hardware execution: compilation, flashing, and electrical measurement.

The engineer supplies a single input, the test intent, which describes how the device should behave:

$ build-device <test_intent>

For the gateway, the intent was: “Perform loopback test using DMA ring-buffer integrity, and timing validation across SPI1 and UART2.”

From that intent, the Synapsio agent workflow plans the work, picks the parts, drafts and checks the wiring, confirms the wire harness on the test bench, writes the test plan, generates the firmware, flashes the device, and runs the tests on the bench. The first seven stages are described below; the eighth, where the captured trace is reconciled against the plan, has a section of its own.

Step I of VII

Intent Ingestion & Planning

The agent workflow parses the test intent into register addresses, timing constraints, and pinout definitions based on the device datasheet, then generates two parallel artifacts:

Firmware Plan: Peripheral setup, register configurations, interrupt management and handlers.

HIL Test Plan: Expected signal timelines, stimulus patterns, voltage threshold limits (0.0 V to 3.3 V) and timeout tolerances.

Step II of VII

Parts Selection & Wiring Draft

Working from the plan, Synapsio selects the components the bench needs and drafts the wiring between the device, the instrumentation bridge, and the stimulus channels. The draft is checked against the device’s pinout and electrical limits before anything is connected: logic-level compatibility, bus loading, and channel-to-pin assignments are all validated at this stage.

Step III of VII

Harness Confirmation on the Bench

Once the physical wire harness is ready and approved, Synapsio confirms it matches the drafted wiring. Continuity and pin-mapping checks run through the instrumentation bridge, so a swapped pair or a missing connection is caught before any firmware is flashed. Because the harness is declared in YAML rather than hard-coded into test scripts, a pinout change is only an update instead of a rewrite.

Step IV of VII

Test Plan Authoring

With the harness confirmed, the HIL Test Plan from Step 1 is finalised into executable assertions: which stimulus to inject on which channel, what the captured trace must show, and within what tolerance. The plan is fixed before the firmware is written, so the firmware is validated against an independent specification rather than against its own behaviour.

Step V of VII

Firmware Synthesis & Static Verification

Synapsio writes the device firmware and immediately pipes it through the cross-compiler with strict linting flags.

If a syntax error, register naming mismatch, or type issue occurs, the compiler diagnostic output is fed back into the agent loop.

The agent refactors the code automatically until a clean firmware image is generated. No unverified binary ever touches physical silicon.

Step VI of VII

Silicon Flashing & Device Bring-Up

The firmware is flashed to the device, the board is reset to a clean power state, and Synapsio confirms the device has come up correctly before stimulating any I/O.

Step VII of VII

Physical Stimulus & Time-Synchronised Acquisition

Synapsio drives the planned stimulus into the device on real silicon and captures the electrical response, logic levels, timing and voltage, on a microsecond timeline.

Step VIII

Timeline Reconciliation & Event Validation

Synapsio evaluates the captured physical trace against the formal test plan:

If the captured physical behaviour matches expected parameters within tolerance, the test passes. If an anomaly occurs, Synapsio pairs the exact timestamped signal trace with the relevant line of firmware for developer inspection.

T + 0.000 ms
DUT reset released → VDD stabilised at 3.29 V
T + 1.240 ms
UART data-stream detected → Baud rate 115,202 bps
T + 1.850 ms
Stimulus injected on SPI (0xAA 0x55 0xFF)
T + 1.856 ms
SPI loopback captured → Bytes match (PASS)
T + 1.860 ms
CS line hold time measured: 4.12 µs (spec min: 2.00 µs)
03

Empirical Benchmark: Traditional Bring-Up vs. Synapsio

The gateway bring-up was benchmarked against comparable internal controller projects executed using standard manual bench workflows.

Phase Traditional Manual HIL Synapsio Closed-Loop HIL Velocity Multiplier
Driver Bring-Up & Peripheral Init

6–8 Weeks

6 Days

~8x faster
Test Rig Wiring & Stimulus Scripts

4–6 Weeks

4 Days

~8x faster
Edge-Case Isolation & Regression

6–10 Weeks

4 Days

~14x faster
Total Time to Verified Hardware

16–24 Weeks (4–6 Mo)

14 Days (2 Wks)

10x Overall
Script Maintenance Overhead
High (breaks on pin changes)
Low (declarative YAML updates)
Minimal ongoing cost
Silicon Parity
Manual, ad-hoc probing
Automated, bit-level physical capture
100% auditable
04

Hardware-Specific Defects Caught Pre-Tape-Out

Software-in-the-loop simulation runs in idealised environments where peripherals respond instantly and power rails never fluctuate. Synapsio’s physical signal capture isolated two faults that would have escaped SIL.

Finding 01

One byte lost when two buses were busy at once.

The SPI and UART buses were both active at the same time. The interrupt handling for one kept the other waiting for 12 microseconds, long enough for a single byte to be lost from the UART buffer. Every software test had passed this code. On the bench, Synapsio’s timeline assertions caught the missing byte, showed the exact moment it happened, and pointed at which handler was running. The fix was in the NVIC priority grouping, and it took an afternoon once the timeline showed where to look.

This is the interrupt design that passed engineer review. It compiled clean, it read correctly, and it was correct as long as only one bus was busy. Under contention it lost data. A software test would have passed it. The bench caught it on the first run.

Finding 02

Logic Level Sag Under High-Drive Conditions

The 3.3 V rail dipping below the input threshold A trace holding steady at 3.3 volts drops sharply through the VIH threshold line when multiple GPIO lines switch together, then recovers. The dip is 210 millivolts. 3.3 V VIH −210 mV

Simultaneous switching of multiple GPIO lines caused an instantaneous 210 mV drop on the board’s internal 3.3 V rail, breaching the minimum input threshold (VIH) of an adjacent sensor transceiver.

On most boards this is a reliability fault. On a signal acquisition gateway it is a correctness fault: a measurement device whose own rail dips when its GPIOs switch would report clean signals as marginal, and nobody would know why. This was a hardware decoupling limitation, not a firmware defect, and no firmware test would normally find it. It was caught because the scope was on the rail during a firmware test, and it was fixed before layout freeze rather than after a respin.

05

Engineering Service Engagement Model

Building dedicated HIL infrastructure internally is often bottlenecked by the requirement for specialised test engineering talent.

Synapsio is built and operated by Better Devices, embedded engineering consultancy, Berlin.