# CircuitTwin: full text > Run real embedded firmware on digital twins of STM32, ESP32, RP2040, nRF52, and KiCad boards. Catch bugs in the browser, CI, and Claude/Cursor MCP. The text of every public page of https://circuittwin.ai/, converted from the rendered pages; legal pages are linked from https://circuittwin.ai/llms.txt. Each page starts with its source URL. --- Source: https://circuittwin.ai/ Last updated: 2026-11-24 # Real firmware. Digital hardware. Run the code you flash to your board, wire chips together, and catch hardware bugs before you build anything. [Start now](https://app.circuittwin.ai/try) [Read quickstart](https://circuittwin.ai/docs/quickstart) Drag STM32F767ZI and real sensors onto the canvas, wire I2C pin-to-pin, and run live firmware `claude mcp add --transport http circuittwin https://app.circuittwin.ai/mcp` ## Wire chips together and test failures before you build. Import your KiCad, Altium, or ODB++ board, connect STM32, ESP32, RP2040, Nordic, NXP, TI, and Infineon chips over UART, SPI, I2C, CAN, and Ethernet, and test every change automatically. [Read the STM32 tutorial →](https://circuittwin.ai/stm32-simulator) ![STM32F767ZI pin-level wiring canvas](https://circuittwin.ai/media/ticker/editor-wiring-lg.jpg) Pin-accurate wiring between dual STM32F767ZI boards. ![Live firmware run streaming UART output](https://circuittwin.ai/media/ticker/editor-live-run.jpg) Live firmware output with breakpoints and bus inspection. ## Calibrated on physical silicon. Twins are generated from vendor datasheets and checked against physical calibration hardware across 40 microcontrollers and 17 CPU architectures. Every board publishes its verification level openly so you know what has been tested on real chips. [Inspect public accuracy report →](https://circuittwin.ai/docs/accuracy) ![CircuitTwin Core calibration PCB with STM32H753, STM32F407, STM32G474, and ESP32-S3](https://circuittwin.ai/media/mcu-blade-core-cutout.png) ## Free to run. Pay for new twins. Running firmware and scenes is free on every plan. Weekly twin allowances reset every Monday. Free Try it on your own board $0 /mo No credit card required New twins 5 / wk Firmware runs Unlimited Agents & CLI Included [Start free](https://app.circuittwin.ai/sign-in) Starter Individual firmware engineers $20 /mo Billed monthly New twins 50 / wk Firmware runs Unlimited Agents & CLI Included [Start Starter](https://app.circuittwin.ai/app/plans?plan=plus&interval=monthly) Pro Most used Active boards and daily builds $60 /mo Billed monthly New twins 250 / wk Firmware runs Unlimited Agents & CLI Included [Start Pro](https://app.circuittwin.ai/app/plans?plan=pro&interval=monthly) Team Shared org workspace (5 seats) $400 /mo Billed monthly Shared twins 2,000 / wk Seats included 5 seats Offline licences Included [Start Team](https://app.circuittwin.ai/app/plans?plan=team&interval=monthly) Enterprise Custom volume Custom weekly twin allowances, SSO and directory sync, 30-day air-gapped offline licences, compliance evidence packs, and invoice or PO billing. [Contact sales →](https://circuittwin.ai/contact) ## Common questions. Answers on supported architectures, board formats, coding-agent connections, and how CircuitTwin verifies your real board code. [Read how CircuitTwin works →](https://circuittwin.ai/how-it-works) **What is CircuitTwin?** CircuitTwin is an embedded firmware simulator and 3D virtual proving ground for microcontroller software. It runs the ELF, HEX, or BIN code you flash to your board on digital twins of STM32, ESP32, RP2040, nRF52, and custom KiCad hardware. CircuitTwin builds firmware simulation software for engineers and coding agents, unrelated to wire-harness manufacturing tools. **Which microcontrollers and PCB formats are supported?** CircuitTwin runs firmware across 17 CPU instruction sets including Arm Cortex-M, Cortex-R, RISC-V, Xtensa (ESP32), AVR, and TriCore. Start from catalog boards for STM32, ESP32, RP2040, and nRF52, upload a vendor datasheet PDF or SVD file to generate a new part twin, or import a full PCB design from KiCad, Altium, Eagle, EasyEDA, ODB++, or IPC-2581. **How do AI coding agents like Claude Code, Codex, Gemini, and Cursor connect?** Connect directly to our hosted OAuth Streamable HTTP MCP server at https://app.circuittwin.ai/mcp with zero local downloads. Claude Code, Codex, Gemini CLI, and Cursor can compile your real board code, run it on virtual hardware, inspect bus traces, and check exit verdicts inside the same loop. **How does CircuitTwin work in GitHub Actions and GitLab CI?** Commit a YAML test suite to your repository and run it on every pull request with our GitHub Action, GitLab CI/CD component, or the ct CLI on Windows, Linux, and macOS. Runs are deterministic across machines, produce JUnit XML and JSON reports, and return stable exit codes. **How are CircuitTwin digital twins checked against real silicon?** CircuitTwin generates board and peripheral twins from manufacturer datasheets, reference manuals, SVD files, and CMSIS packs, then verifies them against physical calibration boards across 40 microcontrollers and 17 CPU architectures. Public calibration records and per-board status are published on the Accuracy report and Board dashboard. --- Source: https://circuittwin.ai/how-it-works Last updated: 2026-11-29 Architecture # How CircuitTwin works. Turn datasheets and PCB files into silicon-calibrated digital hardware, run the binaries you flash to your boards, and automate verification for engineers and coding agents. [Start now](https://app.circuittwin.ai/try) [Read quickstart](https://circuittwin.ai/docs/quickstart) ## From datasheet to verified run. Five deterministic stages replace manual bench setup and hardware guesswork. [Install the ct CLI →](https://circuittwin.ai/docs/install) ### Generate twins from vendor documents Upload a manufacturer datasheet PDF, reference manual, SVD, or CMSIS pack, or import a KiCad, Altium, Eagle, EasyEDA, ODB++, or IPC-2581 board. CircuitTwin extracts register maps, bitfields, reset values, interrupts, and netlist connections into deterministic digital hardware. `ct twin generate datasheet.pdf --with reference-manual.pdf` ### Run the code you flash to hardware Execute the same ELF, HEX, or BIN build from STM32CubeIDE, Zephyr, ESP-IDF, CMake, or arm-none-eabi-gcc across 17 CPU architectures. No simulation-only build targets or stubbed HAL layers are needed. `ct run --json --board nucleo-f767zi build/app.elf` ### Wire multi-board systems and test failures Connect multiple microcontrollers, transceivers, and sensors pin-to-pin over UART, SPI, I2C, CAN, CAN FD, RS-485, and Ethernet, or drive closed-loop 3D worlds in Proving Ground. Drop bus lines, corrupt frames, and replay identical deterministic traces. ### Connect coding agents and CI Point Claude Code, Codex, Gemini, or Cursor directly at our hosted OAuth Streamable HTTP MCP server, or install the native ct CLI in GitHub Actions and GitLab CI. Every run emits machine-readable JSON, trace artifacts, and stable exit codes. `claude mcp add --transport http circuittwin https://app.circuittwin.ai/mcp` ### Calibrate and check against physical silicon Twins are tested against physical calibration boards across 40 microcontrollers and 17 CPU architectures. Every board publishes its verification status and measured results openly on the accuracy report and board dashboard. ## Explore further. Jump into the CLI, inspect silicon verification records, or watch a live run. Quickstart guide Install the ct CLI or connect an agent and run your first firmware image in minutes. [Open quickstart →](https://circuittwin.ai/docs/quickstart) STM32 simulator tutorial Step-by-step walkthrough running STM32F4 and STM32F7 binaries without a physical dev board. [Read tutorial →](https://circuittwin.ai/stm32-simulator) Public accuracy report Measured comparison results against real silicon benches and negative-control checks. [Inspect accuracy →](https://circuittwin.ai/docs/accuracy) Watch product demo See multi-board wiring, live bus output, fault injection, and CI checks in 32 seconds. [Watch demo →](https://circuittwin.ai/watch/demo) ## Explore guides. Workflow guides by microcontroller family, PCB tool, bus protocol, and CI use case. [Test Firmware Without Hardware](https://circuittwin.ai/test-firmware-without-hardware): Zero-hardware GitHub Actions and GitLab CI for embedded repositories. [STM32 Simulator Online & CLI](https://circuittwin.ai/stm32-simulator): Run STM32F1, F4, F7, H7, and G4 ELF binaries without a physical board. [Altium Firmware Simulation](https://circuittwin.ai/altium-firmware-simulation): Import Altium schematics, PCBs, and ODB++ files to test real MCU code. [KiCad Firmware Simulation](https://circuittwin.ai/kicad-firmware-simulation): Wire and test custom KiCad PCB netlists before fabrication. [Virtual HIL (vHIL) Simulator](https://circuittwin.ai/virtual-hil-simulator): FMI co-simulation, fault matrices, and multi-ECU scaling in CI. [CAN Bus Firmware Simulator](https://circuittwin.ai/can-bus-firmware-simulator): Multi-ECU CAN and CAN FD testing with DBC decoding and fault injection. [Coding Agents over MCP](https://circuittwin.ai/mcp-embedded-simulation): Connect Claude Code, Codex, Gemini, and Cursor over hosted MCP. [RP2040 & RP2350 Simulator](https://circuittwin.ai/rp2040-simulator): Run Raspberry Pi Pico and Pico 2 builds with PIO, DMA, and board wiring. [ESP32 Firmware Simulator & CI](https://circuittwin.ai/esp32-simulator): Run ESP32, ESP32-S3, and ESP32-C3 ESP-IDF and PlatformIO builds in CI. --- Source: https://circuittwin.ai/watch/demo Last updated: 2026-11-24 Product Demo · 0:32 # CircuitTwin in action: wiring, 3D X-ray faults, and CI matrices. A 32-second screen recording of the CircuitTwin web workspace running real STM32 firmware across four wired boards, a 3D electric vehicle, and a CI failure report. ## What this demo shows 1. **Multi-board UART and CAN wiring:** Four NUCLEO-F767ZI boards connected through two SN65HVD230 CAN transceivers with live per-board consoles and a real-time bus monitor. 2. **3D Proving Ground X-ray fault injection:** Driving the multi-ECU electric car inside the browser 3D viewport, toggling X-ray view, and injecting a live CAN bus short fault. 3. **STM32 datasheet twin catalog:** Searching datasheet-generated MCU twins and running a passing STM32F4DISCOVERY build. 4. **CI test matrix failure triage:** Inspecting a deterministic test matrix cell failure so regressions never reach main. [3D Virtual Proving Ground](https://circuittwin.ai/virtual-proving-ground) [STM32 simulator tutorial](https://circuittwin.ai/stm32-simulator) [Embedded firmware CI](https://circuittwin.ai/embedded-firmware-ci) [MCP embedded server](https://circuittwin.ai/mcp-embedded-simulation) > ## Run your own firmware inside the workspace > > Create a free account to open the browser Proving Ground, install the ct CLI, or connect Claude Code and Cursor over hosted MCP. > > [Start now](https://app.circuittwin.ai/try) [Read the Quickstart](https://circuittwin.ai/docs/quickstart) [Connect a coding agent](https://circuittwin.ai/docs/agents) --- Source: https://circuittwin.ai/pricing Last updated: 2026-11-24 Pricing # Free to run. Pay for new twins. ## Plans ### Free To try it out $0 No charge [Start free](https://app.circuittwin.ai/sign-in) - 5 new twins a week - 200 server test-matrix cells a week ### Starter For individual projects $20/mo Billed monthly [Start with Starter](https://app.circuittwin.ai/app/plans?plan=plus&interval=monthly) - 50 new twins a week - 2,000 server test-matrix cells a week - Cancel any time ### Pro Recommended For daily firmware work $60/mo Billed monthly [Start with Pro](https://app.circuittwin.ai/app/plans?plan=pro&interval=monthly) - 250 new twins a week - 20,000 server test-matrix cells a week - Cancel any time ### Team For firmware teams $400/mo Billed monthly [Start with Team](https://app.circuittwin.ai/app/plans?plan=team&interval=monthly) - 2,000 new twins a week, shared - 150,000 server test-matrix cells a week, shared - 5 seats included, $60/mo per extra seat - Offline licences (up to 30 days) - Compliance evidence packs ### Enterprise For organizations - Custom new twins and test-matrix allowances - SSO, directory sync and audit export - Offline licences (up to 30 days) and compliance evidence packs - Invoice or PO billing and custom agreements Custom Priced for your organization [Contact sales](mailto:support@circuittwin.ai?subject=Enterprise%20plan) Paid plans renew automatically until you cancel. Prices exclude tax. Available in 42 countries (US, Canada, EU, UK, Switzerland, Norway, Australia, New Zealand, Japan, Singapore, South Korea, Taiwan, Israel, India); taxes/VAT/GST handled via Stripe Managed Payments. Elsewhere? [Contact us](https://circuittwin.ai/contact). Some free accounts require a card on file before generating their first twin ($0 charged). [Terms](https://circuittwin.ai/terms) [Refund policy](https://circuittwin.ai/refunds) ## Questions What counts as a new twin? Each twin you build from vendor documents counts as one; the count resets every Monday at 00:00 UTC, and running firmware never counts. Can I cancel? Yes, any time in Settings, and you keep your plan until the end of the period you paid for. Can I get a refund? Yes, in full if you ask within 14 days of your first payment or a yearly renewal. [Refund and Cancellation Policy](https://circuittwin.ai/refunds) Does simulation use credits? No: runs, scenes and suites never spend a credit, but each test-matrix cell our servers run counts against your plan's weekly cell allowance (cells answered from the cache do not), within fair-use rate limits. Questions? Email [support@circuittwin.ai](mailto:support@circuittwin.ai) --- Source: https://circuittwin.ai/docs Last updated: 2026-11-29 # CircuitTwin docs Flash the same firmware ELF you put on silicon onto a board digital twin. Run it from your terminal, browser, IDE, CI or a coding agent. Start with [Install](https://circuittwin.ai/docs/install) and [Quickstart](https://circuittwin.ai/docs/quickstart). You can also browse [45 board twins](https://circuittwin.ai/boards), [47 sensor twins](https://circuittwin.ai/twins), or [56 CI guides](https://circuittwin.ai/guides). ## Surfaces | Surface | Role | | -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | Web app | Projects store wired systems, a 3D world, firmware images plus full run history. | | Twins | Built from vendor datasheets, reference manuals or SVD files ([Bring your board](https://circuittwin.ai/docs/import)). | | Proving Ground | Live 3D environment driving mounted sensors and actuators ([Proving Ground](https://circuittwin.ai/docs/proving-ground)). | | ct CLI | Runs single binaries, test suites, fault matrices or multi-board scenes locally or hosted. Pass \--json on any command ([ct CLI](https://circuittwin.ai/docs/cli)). | | IDE & CI | GDB remote server for STM32CubeIDE or VS Code ([IDE](https://circuittwin.ai/docs/ide)); native GitHub Actions and GitLab CI/CD runners ([CI](https://circuittwin.ai/docs/ci)). | | Agents & MCP | Connect Claude, ChatGPT, Gemini or Cursor directly to the hosted MCP server at https://app.circuittwin.ai/mcp — no download required ([Agents & MCP](https://circuittwin.ai/docs/agents)). | ## Quick links | Task | Start here | | ----------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | Import a custom PCB | Drop KiCad, Altium, Eagle, EasyEDA, ODB++ or IPC-2581 files into a wired board twin ([Bring your board](https://circuittwin.ai/docs/import)). | | Gate pull requests | Run deterministic fault matrices in GitHub Actions or GitLab CI/CD with JUnit reports ([Test in CI](https://circuittwin.ai/docs/ci)). | | Audit published numbers | Every test count links to a dated JSON record with commit revision and SHA-256 ([Accuracy report](https://circuittwin.ai/docs/accuracy)). | ## Get started - [Install](https://circuittwin.ai/docs/install): Install the ct CLI and sign in. - [Quickstart](https://circuittwin.ai/docs/quickstart): Your firmware running on a twin, then turned into a test. ## Core concepts - [Core concepts](https://circuittwin.ai/docs/concepts): Twins, projects, systems, worlds, verdicts and generation credits. ## Guides - [Bring your board](https://circuittwin.ai/docs/import): Generate twins from vendor PDFs; import PCB designs for simulation, routing or EMI screening. - [Test your firmware](https://circuittwin.ai/docs/testing): Test suites, fault matrices, regression baselines, silicon errata and timing modes. - [Inputs and faults](https://circuittwin.ai/docs/inputs): Drive sensor readings, inject faults or sweep unit-to-unit tolerances. - [Wire boards together](https://circuittwin.ai/docs/scenes): Connect multiple MCUs over UART, SPI, I2C, CAN, RS-485 or Ethernet. - [Proving Ground](https://circuittwin.ai/docs/proving-ground): Run wired systems inside a 3D world with physics-fed sensors and live sessions. - [Debug in your IDE](https://circuittwin.ai/docs/ide): STM32CubeIDE and VS Code through the GDB server. - [Test in CI](https://circuittwin.ai/docs/ci): GitHub Actions, GitLab CI/CD and custom runners. - [Coding agents and MCP](https://circuittwin.ai/docs/agents): Connect an assistant over MCP, or script ct with JSON output. - [Compliance support](https://circuittwin.ai/docs/compliance): Requirements traceability, structural coverage, evidence packages. ## Reference - [ct CLI](https://circuittwin.ai/docs/cli): CLI subcommands, flags and exit status codes. - [File formats](https://circuittwin.ai/docs/formats): Schemas for boards, test suites, fault matrices, sensor faults or scenarios. - [Scene format](https://circuittwin.ai/docs/scene-sections): Schema for ct.scene/1: machines, wired buses, harnesses, LIN, vehicles or aircraft. - [Board dashboard](https://circuittwin.ai/docs/board-dashboard): Per-board verification level, status, silicon match, unmodelled registers, timing bands. - [Twin generation and checks](https://circuittwin.ai/docs/twin-generation): How twins are extracted from vendor docs and checked via fact ledgers, driver oracles or CPU differential suites. - [Accuracy report](https://circuittwin.ai/docs/accuracy): Checks against physical silicon, ISA references or vendor drivers, including recorded failures. - [Agent benchmark](https://circuittwin.ai/docs/agent-benchmark): Seeded STM32F407 firmware bugs comparing CircuitTwin against Renode and QEMU with per-case verdicts. - [Access tokens](https://circuittwin.ai/docs/tokens): Create, scope or revoke tokens for the CLI and CI. ## Troubleshooting - [Troubleshooting](https://circuittwin.ai/docs/troubleshooting): Common errors and how to fix them. --- Source: https://circuittwin.ai/docs/install Last updated: 2026-11-24 # Install Install ct with one command on macOS, Linux, or Windows. The web app needs no install. ## Install ct > **Platforms** > > Windows (x86\_64), macOS 13 or later (Apple silicon or Intel), and Linux (x86\_64 or ARM64). macOS and Linux ``` curl -fsSL https://circuittwin.ai/install.sh | sh ct --version ``` Verifies the archive SHA-256 and installs `ct` to `~/.local/bin`. If missing from `PATH`, the script prints the export line to add. On macOS, use this curl command so Gatekeeper does not quarantine the binary. Windows (PowerShell) ``` irm https://circuittwin.ai/install.ps1 | iex ct --version ``` Verifies the archive SHA-256, installs `ct.exe` to `%LOCALAPPDATA%\Programs\CircuitTwin`, and adds it to your user `PATH`. Open a new terminal if `ct` is not found immediately. Physical-board commands (`ct hw`) ship in both the Windows and Linux builds. ## Sign in Create a token in **Settings, Access tokens** ([Access tokens](https://circuittwin.ai/docs/tokens)), then sign in: terminal ``` ct login --server https://app.circuittwin.ai # paste the token when asked ct login --status # checks the stored sign-in ``` Tokens are verified against the server before saving. Run `ct login --logout` to clear them. ## CI and scripts shell ``` export CT_SERVER=https://app.circuittwin.ai export CT_TOKEN="$CIRCUITTWIN_TOKEN" # from a masked CI secret ``` `CT_TOKEN` is sent only to `CT_SERVER`. See [Test in CI](https://circuittwin.ai/docs/ci) for GitHub Actions and GitLab CI/CD. ## Next Follow the [Quickstart](https://circuittwin.ai/docs/quickstart). --- Source: https://circuittwin.ai/docs/quickstart Last updated: 2026-11-24 # Quickstart Run the exact ELF you flash to hardware on a digital twin, then turn it into a repeatable test. ## 1\. Sign in [Sign in](https://app.circuittwin.ai/sign-in) with your email and the 6-digit code. Free plan costs $0\. Available in 42 supported countries. ## 2\. Run in the browser 1. Click **New project** → **New system** and pick your MCU. 2. Open **Runs** → **New run**, choose the system and upload your ELF, HEX or BIN. 3. Set a pass condition (such as a console line) and click **Start run**. Compile exactly as you do for silicon. No simulation build or shim layer needed. The run page streams console output, assertions and twin diagnostics. ## 3\. Run from your terminal [Install ct](https://circuittwin.ai/docs/install), sign in and run until a console marker appears: terminal ``` ct run --board nucleo-f767zi build/app.elf --until "READY" ``` Pass a built-in board id or your own board file to `--board`. Attach bus parts with `--device` (e.g. `--device INA226@I2C1:0x40`). Exit code `0` means pass. ## 4\. Turn it into a test suite.yaml ``` schemaVersion: ct.test-suite/1 id: firmware-smoke name: Firmware smoke test defaults: board: id: nucleo-f767zi cases: - id: boots name: Firmware boots and reports ready firmware: path: build/app.elf assertions: - kind: marker pass: READY - kind: no_fault ``` terminal ``` ct test run suite.yaml --junit report.xml ``` ## Next - [Bring your board](https://circuittwin.ai/docs/import): build part twins or import a PCB - [Test your firmware](https://circuittwin.ai/docs/testing) and [run suites in CI](https://circuittwin.ai/docs/ci) - [Debug in STM32CubeIDE or VS Code](https://circuittwin.ai/docs/ide) - [Run in a 3D Proving Ground](https://circuittwin.ai/docs/proving-ground) --- Source: https://circuittwin.ai/docs/concepts Last updated: 2026-11-24 # Core concepts Key terms used across CircuitTwin. ## Twins A **twin** models a single MCU, sensor, memory or transceiver straight from vendor documents: datasheets, reference manuals, CMSIS-SVD, CMSIS packs, errata or vendor headers. Unmodified firmware drives it because the twin exposes documented instructions, registers, memory maps, interrupts, pins, DMA, timers plus bus traffic. Virtual time advances with core instructions. Once built, any twin stays in the shared catalog for free reuse. See [Bring your board](https://circuittwin.ai/docs/import). ## Projects, systems & worlds | Term | Meaning | | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Project | Holds your systems, one 3D world, firmware binaries plus run history. | | System | Wired parts (MCUs, sensors, memories, transceivers) or nested systems. One-MCU system = board. | | Board | Single MCU plus attached parts: a built-in id like nucleo-f767zi or a [board file](https://circuittwin.ai/docs/formats#board). | | Link | Bus or wire between parts: UART, SPI, I2C, CAN, RS-485 or Ethernet. | | World | Project 3D space holding parts, systems plus ambient conditions (temperature, pressure, light, gravity). See [Proving Ground](https://circuittwin.ai/docs/proving-ground). | | Part | 3D primitive (box, cylinder, sphere) or imported mesh inside a world. | | Class | Functional role assigned to a part: battery, power supply, switch, fuse, load, servo or motor. | ## Runs and results A **run** executes firmware until a stop target (console line, symbol or address), virtual time budget or fault. Reports include console logs, assertions, issues and a final verdict: | Verdict | Meaning | | --------------- | -------------------------------------------------------------------------------------------------------------------- | | Passed / failed | All checks passed, or at least one failed. | | Inconclusive | Run finished, but firmware hit unmodelled hardware. Never counts as a pass; the report names every missing register. | | Error | Run aborted before completion. | Capabilities carry three evidence labels: `verified` (confirmed against independent references such as silicon), `provisional` (modelled from vendor documents) or `unsupported` (plain register file only; flagged in the run). ## Determinism Identical firmware, board, twins and inputs produce identical reports locally, hosted or in CI. Undefined power-up memory reads zero by default, or deterministic noise via `--uninitialized-memory seeded:`. ## Scenarios, scenes & suites | File | Role | | -------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Scenario (ct.scenario/1) | Scripts room physics and sensor stimuli (ct scenario list; see [File formats](https://circuittwin.ai/docs/formats#scenario)). | | Scene (ct.scene/1) | Runs multiple MCUs in lock-step virtual time over wired links. Systems compile directly to scenes ([Wire boards together](https://circuittwin.ai/docs/scenes)). | | Test suite (ct.test-suite/1) & matrix (ct.test-matrix/1) | Automated checks and multi-axis sweeps across boards, faults or inputs ([Test your firmware](https://circuittwin.ai/docs/testing)). | ## How twins are checked CPU cores undergo register-by-register differential testing against independent ISA references on millions of random programs. Board twins are diffed against physical boards running identical ELF binaries. Sensor twins run unmodified vendor driver libraries. ## Generation credits Building a new twin from documents spends one **generation credit**. Reusing catalog parts is free. Allowances reset Monday at 00:00 UTC: Free 5/week, Starter 50, Pro 250, Team 2,000 shared, Enterprise custom. Running firmware, scenes, suites, GDB debug or Proving Ground spends zero credits on every plan. Hosted test-matrix weekly cell limits: Free 200, Starter 2,000, Pro 20,000, Team 150,000 shared, Enterprise custom. Cache hits and local runs do not count. See [Pricing](https://circuittwin.ai/pricing). --- Source: https://circuittwin.ai/docs/import Last updated: 2026-11-24 # Bring your board Generate part twins from vendor datasheets or import an entire PCB design. ## Generate a twin from datasheets Upload a datasheet on the app’s **Datasheets** page or run `ct twin generate`. Attach companion docs (reference manual, errata, vendor headers, SVD) via `--with`. terminal ``` ct twin generate stm32f767zi-datasheet.pdf --with rm0410.pdf --output twins/ ct twin generate bmi088-datasheet.pdf ``` New twins spend one [generation credit](https://circuittwin.ai/docs/concepts#credits); catalog hits are free (`ct catalog find `). Multi-function packages (e.g. accelerometer + gyroscope) generate one function per register map; see [Parts with several functions](https://circuittwin.ai/docs/inputs#several-functions). ## Import a PCB design PCB import maps your MCU, matched parts, nets, supplies and passives into a runnable system. Limit: 64 MiB upload, 4,096 files, 20,000 components, 16,384 copper zones, and 2,000,000 pins. | Tool | Accepted files | | -------- | ------------------------------------------------------------ | | KiCad | .kicad\_pcb, .kicad\_sch, .net, or the project folder | | Eagle | .sch and .brd | | EasyEDA | Standard JSON (netlist or PCB source) or Pro netlist export | | Altium | Protel netlist, wire list, BOM CSV, IPC-2581 or ODB++ export | | ODB++ | Folder, .zip, .tar or .tgz | | IPC-2581 | XML file | | Other | IPC-D-356 + BOM CSV, EDIF 2 0 0, or BOM CSV | ### In the app 1. Open a project → **Import a PCB** and drop the folder, archive or design files. 2. Upload datasheets for unmatched parts, or check **Also ask for a twin build of each part without a twin**. 3. Click **Create the system** → **Open the system**. Ordering codes match exact catalog parts (`STM32F767ZIT6` → `STM32F767ZI`). Breakout designs without an MCU prompt for a host part number. If a module hides its crystal, set the clock in the system. ### From the CLI terminal ``` ct board import ./my-board # writes the board, its report and its design ct board import ./my-board --server --dry-run # hosted: report only, store nothing ct board import ./my-board --server --project --generate ``` Pass `--assign U2=ESP32C3` to fill a missing part number, `--skip` to drop specific references, or `--host-mcu` to assign an MCU to a breakout board. ### Re-importing after PCB edits Re-importing updates parts, wires, MCU, crystals and labelled pins in place while keeping manual overrides (names, consoles, CAN buses, clocks, part settings, card layout and added parts). The import page prints a diff before applying changes. ## Place and route a KiCad board `ct layout` reads a `.kicad_pcb`, its sibling `.kicad_pro` rules and a custom rules JSON, then writes a routed board file plus a JSON report. terminal ``` ct layout route board.kicad_pcb --rules rules.json --out routed.kicad_pcb --report routed.report.json ct layout place board.kicad_pcb --rules rules.json --out placed.kicad_pcb --report placed.report.json ct layout check routed.kicad_pcb --rules rules.json --report check.json ``` rules.json ``` { "schema": "ct.layout-rules/1", "constraints": { "clearanceMm": 0.15, "trackMm": 0.2 }, "classes": [{ "name": "power", "nets": ["+3V3", "VBAT"], "currentA": 1.0 }], "pours": [{ "net": "GND", "layers": ["B.Cu"] }], "strip": { "nets": ["*"] } } ``` - `route` strips listed nets, routes, tunes matching groups, fills pours and verifies items. `place` moves unfixed parts. `check` inspects an existing board. - Supports impedance/current net classes, differential pairs, length/delay matching, keepouts and search budgets. Omitted rules inherit from `.kicad_pro`. - Deterministic: identical inputs yield byte-identical output. Unrouted nets appear in the report. Run KiCad’s native DRC afterward for silkscreen and courtyard checks. ## Screen a layout for EMI and crosstalk `ct board emi` screens KiCad copper in seconds for parallel-track crosstalk, return-path breaks, fast-net Class B radiated fields and rail decoupling impedance. Refill zones and save before running. terminal ``` ct board emi board.kicad_pcb # crosstalk and return paths ct board emi board.kicad_pcb --spec emi-spec.json --out emi.json ``` emi-spec.json ``` { "schema": "ct.board-emi-spec/1", "edge": { "riseS": 2e-9, "swingV": 3.3 }, "nets": [{ "net": "SPI1_SCK", "frequencyHz": 8000000 }], "rails": [{ "net": "+3V3", "voltageV": 3.3, "transientA": 0.5 }] } ``` Default without `--spec`: 2 ns edges, 3.3 V swing across all signal nets. Field estimates require `frequencyHz`; rail checks require `voltageV` and `transientA`. All assumed values are printed in the report. --- Source: https://circuittwin.ai/docs/testing Last updated: 2026-11-23 # Test your firmware Automate firmware assertions with test suites, sweep boards and fault sets with test matrices, and opt in to silicon errata or cycle-approximate timing. ## Write a suite Full suite schema and assertions in [File formats](https://circuittwin.ai/docs/formats#test-suite). suite.yaml ``` schemaVersion: ct.test-suite/1 id: firmware-smoke name: Firmware smoke test defaults: board: id: nucleo-f767zi cases: - id: boots name: Firmware boots and reports ready firmware: path: build/app.elf assertions: - kind: marker pass: READY - kind: no_fault tags: [smoke] ``` ## Run a suite terminal ``` ct test run suite.yaml --junit out/junit.xml --report out/ ct test run suite.yaml --tag smoke --workers 8 ``` Select cases with `--filter TEXT` or `--tag TAG`, preview with `--list`, and set concurrency with `--workers`. For hosted CI runs, use `ct cloud suite run` ([Test in CI](https://circuittwin.ai/docs/ci)). ### Gate on regressions terminal ``` ct test run suite.yaml --report out/ --baseline main-report.json --fail-on-regression ``` Fails if a previously passing case fails or its report digest shifts relative to your main-branch baseline. ## Run a test matrix A matrix expands firmware, boards, scenarios, fault sets, input variation and seeds into unique cells and groups failures by root cause. terminal ``` ct test matrix run power.matrix.yaml --list # the cells; nothing runs ct test matrix run power.matrix.yaml --out results/ # report.json, junit.xml, report.sarif, summary.md ct test matrix run power.matrix.yaml --cloud # on the hosted service ``` - Cached cells skip automatically; pass `--no-cache` to force execution. - `--recheck` re-executes every cell and flags any mismatch as a determinism bug. - `--cloud --no-wait` returns the matrix id immediately (poll via `ct test matrix status ` and `ct test matrix report `). Executed hosted cells count toward your [weekly allowance](https://circuittwin.ai/docs/concepts#credits). Schema in [File formats](https://circuittwin.ai/docs/formats#test-matrix); unit spread in [Inputs and faults](https://circuittwin.ai/docs/inputs#variation). ## Silicon errata Errata are off by default. Enable them to verify firmware workarounds against documented silicon bugs. terminal ``` ct errata list # documents, parts and record counts ct errata list STM32F767ZI --class modelled # the records the twin can apply ct errata show STM32F767ZI st.es0334.2.15.1 # one record, with its workaround ct run firmware.elf --board nucleo-f767zi --until DONE --errata rev:Z ``` | Setting | Behavior | | ------------- | ------------------------------------------------------ | | off | Datasheet behavior (default) | | rev: