Automating Firmware Generation from Schematics for Microcontroller based Designs
Automating Firmware Generation from Schematics for Microcontroller based Designs • 8th October 2026
 

Automating Firmware Generation from Schematics for Microcontroller based Designs

PLUTO's PCDU

Power Conditioning and Distribution Unit

Generate Firmware from KiCad

state of the art

  • github.com/DLR-RY/kicad_firmware_generation
  • Group components to Groups → firmware interested in inter-Group connections
  • Implemented for KiCad v9
  • Applied in PCDU development process
  • Found electrical design fault: swapped pins in PCDU

Synthetic Benchmark

  • 120 test cases
  • Made with KiCad Open-Hardware projects
  • Automatically add synthetic annotations to schematics
  • Test runtime of kicad_firmware_generation
  • Result: negligible runtime

Systematic Fault Injection

  • Inject faults into PCDU schematics:
    swap labels, delete cables
  • 8885 unique faults
  • Over a week on CES server
  • Manual sample (300 cases) for fault classification
  • Result: detected 75% of otherwise not found Group Pin swaps