From a reference design to a dedicated board
In the previous article we described the decisions that come before the schematic of a new STM32N6-based board. From 20 November to 4 December we moved on to the Altium Designer project. The starting point is the reference design of the NUCLEO-N657X0-Q development board, which we are turning, one step at a time, into dedicated electronics.
For this work we connected two AI agents with separate roles to Altium, through an MCP server that can read and edit schematics, PCBs and libraries: Codex as the developer and Claude as the independent tester. The process follows a human-in-the-loop approach: the engineer responsible for the project stays inside the development loop at every step, not just at the end.
One edits, the other verifies
The developer works on one well-defined step at a time. Before the change, it saves a copy of the affected files with their SHA-256 hashes. It then applies the change, recompiles the project, exports the netlist and compares the before and after states. Every delivery updates the Design Definition File and the test plan, and explains how to undo the step.
The tester does not use the developer’s scripts or checks as evidence; it reads them only for comparison. It writes its own comparison tools, queries Altium in read-only mode and produces a report, a list of findings and a verification matrix. Every test has an explicit outcome: passed, partial or not run.
Human in the loop: three cross-checks on each requirement
The board’s requirements were defined and analysed at the outset in the Design Definition File, which links each requirement to its planned verification. Every implementation step starts from there and returns to it, so the implementation keeps pace with the requirement and receives three cross-checks.
- Development. The developer agent checks the change against the requirement and the sources, recompiles the project and documents the before-and-after comparison.
- Test. The independent tester repeats the check with its own tools, against the requirement and the evidence, and records outcomes and findings.
- Engineer. The engineer responsible for the project authorises each step, makes the functional decisions, reviews reports and findings, and approves revisions of the document. No approval is implied by the agents’ work.
Some decisions are reserved for the engineer by rule, such as the microcontroller’s clock and memory partition settings: the agents calculate and propose, and a person decides on and makes the change. A finding from the tester goes back to the developer as a new task and is closed only after a new verification.
Forty-five small, reversible steps
In two weeks the project went through 45 steps, alongside 44 working revisions of the design definition file. The first phase removed what the dedicated board does not use from the development board: the camera, expansion connectors, application USB and auxiliary circuits.
- Removing the application USB involved 44 components, with the hierarchy, harnesses, routing and silkscreen realigned.
- A routing clean-up removed 1,127 copper primitives left without a component, checking the continuity of every retained net.
- A later step removed 81 components, 550 tracks, 155 vias and 25 polygons, reducing the hierarchy to ten sheets.
The second phase added the circuits of the new board: a 12 V power input with a 5 V, 2 A regulator, the input and output connector sheets, 12 GPIO harnesses carrying 165 signals, an accelerometer on a hardware SPI with two interrupts, the front-panel inputs, and the controls and fault signals of the power switches. In the LED drivers, seven dual-MOSFET sections became seven single MOSFETs; the developer confirmed all 21 terminals and an equivalent netlist after the remapping.
A connection hidden inside a footprint
The most instructive case came after an expansion connector was removed. The footprint of a solder bridge, deleted together with the connector, contained a small copper area that joined two sections of the serial console transmit line running to the debugger’s virtual port. A later copper clean-up then deleted 18 tracks and two vias on that line.
The check used up to that point worked on a simplified model of the connections and did not represent copper inside components. A DRC on the actual copper showed the open line. The developer restored 17 tracks and two vias at their original positions and replaced the footprint’s junction with two short segments. After the PCB was reopened, Altium’s native connectivity search once again connected the microcontroller pin to the series resistor and the ESD protection on the line. The DRC cleared the two violations on that line, with no new error types and unchanged rules.
Since that step, the continuity of retained nets has been checked with Altium’s native tools. A break that would otherwise have reached the manufactured board was fixed in CAD.
The tester also checks the process
The tester’s independence also proved its value on the working method itself. While verifying one step, its report documented that a backup copy had been re-saved by Altium while the developer was compiling the project, because the file had been left open. The copy no longer matched its original hash.
The developer recovered the original from local copies with the same historical hash, kept the altered file for traceability and corrected the reports for the affected steps. Backup copies are no longer opened directly in Altium: to undo a step, the file is restored and its hash is checked.
The same comparison also led to the correction of two reports that had attributed to the starting files duplicates that existed only in intermediate files.
Towards PCB routing
The board is still being designed. The next phases complete the integration of the circuits and verified 3D models for every component, which are the prerequisite for starting the routing, together with independent verification of the most recent steps.
For clients who entrust us with a design, this method delivers more than a schematic: every change starts from a requirement, has a backup, a hash and restore instructions, and goes through checks by the developer, the tester and the engineer. The design definition file separates what has been decided, implemented and verified. The method is part of the AI-assisted engineering we write about on this blog.