mohan-bee/stm32-midi-keys

Clips rectangular ground-region geometry to fit within the board’s scaled rounded-edge outline using polygon intersection.

Version
1.0.2
License
unset
Stars
0

validation/copper-cleanup-failure.log

$ tsci build index.circuit.tsx --disable-parts-engine --autorouter-debug --autorouter-timeout 180s --autorouter-dump-srj all --pcb-png --pcb-svgs
Building 1 file(s)...
Building index.circuit.tsx...
Generating circuit JSON...
trace: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)
Wrote debug artifact: dist/autorouter-debug/placement-unrouted.png
Autorouting <board#1804 /> phase 1/2 "usb-and-clock" start: connections=9, obstacles=1112, previous_traces=0, router=tscircuit, version=latest, solver=AutoroutingPipelineSolver9_PreloadedTraceGraph, cache=miss, cache_id=8e83005a/848990f6
  connections: net.USB_USB_CONN_DM, net.USB_USB_CONN_DP, net.USB_CC1, net.USB_CC2, net.USB_SHIELD, net.OSC_IN, net.OSC_OUT, net.USB_DM, net.USB_DP
Wrote debug artifact: dist/autorouter-debug/phase-0.input.simple-route.json
  phase 1/2 "usb-and-clock" progress: solver=AutoroutingPipelineSolver9_PreloadedTraceGraph solver_phase=topologyPlanningSolver steps=1 progress=16% iterations_per_second=343 elapsed=2.4s
  phase 1/2 "usb-and-clock" done: routed_traces=21, jumpers=0, errors=0, elapsed=12.4s
Wrote debug artifact: dist/autorouter-debug/phase-0.output.traces.json
Wrote debug artifact: dist/autorouter-debug/phase-0-routed.png
Saved autorouting paths to .tscircuit/autorouting-artifacts/index-circuit-tsx-2e2764dae4/subcircuit_source_group_0-phase-0-order-0-stage-0.pcb-trace-paths.json (import this JSON into <autoroutingphase pcbTracePaths={...} />).
Autorouting <board#1804 /> phase 2/2 "touch-control-and-power" start: connections=59, obstacles=1112, previous_traces=21, router=tscircuit, version=latest, solver=AutoroutingPipelineSolver9_PreloadedTraceGraph, cache=miss, cache_id=8e83005a/7d5cd60f
  connections: net.KEY_AS, net.Keys_PAD_AS, net.GND, net.VBUS, net.P3V3, net.Net_JP1_B, net.P5V, net.Net_BZ1, net.KEY_D, net.Keys_PAD_D, net.CHAIN_INT, net.I2C_SDA, net.KEY_A, net.Keys_PAD_A, net.KEY_C, net.Keys_PAD_C, net.Keys_PAD_DS, net.LED_USER, net.Net_D2_A, net.NRST, net.KEY_F, net.Keys_PAD_F, net.KEY_FS, net.Keys_PAD_FS, net.P3_3VA, net.SPK_PWM, net.Net_Q1_G, net.KEY_DS, net.I2C_SCL, net.Keys_PAD_E, net.TSC_G5_CS, net.KEY_CS, net.Keys_PAD_CS, net.Keys_PAD_G, net.Keys_PAD_B, net.TSC_G1_CS, net.KEY_G, net.KEY_B, net.OCT_DN, net.Keys_PAD_DN, net.BOOT0, net.Keys_PAD_UP, net.Net_D1_A, net.MIDI_TX, net.Expansion_MIDI_SINK, net.TSC_G6_CS, net.TSC_G3_CS, net.KEY_E, net.Keys_PAD_GS, net.OCT_UP, net.Expansion_MIDI_SRC, net.GPIO_PC13, net.GPIO_PC14, net.GPIO_PC15, net.KEY_GS, net.TSC_G2_CS, net.GPIO_PA10, net.SWDIO, net.SWCLK
Wrote debug artifact: dist/autorouter-debug/phase-1.input.simple-route.json
  phase 2/2 "touch-control-and-power" progress: solver=AutoroutingPipelineSolver9_PreloadedTraceGraph solver_phase=topologyPlanningSolver steps=1 progress=16% iterations_per_second=430 elapsed=397ms
  phase 2/2 "touch-control-and-power" progress: solver=AutoroutingPipelineSolver9_PreloadedTraceGraph solver_phase=highDensityRouteSolver steps=16 progress=55% iterations_per_second=6768 elapsed=10.4s
  phase 2/2 "touch-control-and-power" progress: solver=AutoroutingPipelineSolver9_PreloadedTraceGraph solver_phase=highDensityRouteSolver steps=45 progress=56% iterations_per_second=19 elapsed=20.5s
  phase 2/2 "touch-control-and-power" progress: solver=AutoroutingPipelineSolver9_PreloadedTraceGraph solver_phase=highDensityForceImproveSolver steps=75 progress=56% iterations_per_second=1821 elapsed=30.7s
  phase 2/2 "touch-control-and-power" progress: solver=AutoroutingPipelineSolver9_PreloadedTraceGraph solver_phase=pipeline9JointDrcRepairSolver steps=102 progress=84% iterations_per_second=4 elapsed=42.9s
  phase 2/2 "touch-control-and-power" progress: solver=AutoroutingPipelineSolver9_PreloadedTraceGraph solver_phase=pipeline9JointDrcRepairSolver steps=125 progress=87% iterations_per_second=45 elapsed=54.9s
  phase 2/2 "touch-control-and-power" done: routed_traces=169, jumpers=0, errors=0, elapsed=56.1s
Wrote debug artifact: dist/autorouter-debug/phase-1.output.traces.json
Wrote debug artifact: dist/autorouter-debug/phase-1-routed.png
Could not save autorouting paths for subcircuit_source_group_0: Routes contain a junction or endpoint that cannot select a unique PCB port
9161 | 
9162 |             if (stop) {
9163 |                 return [min_dist_and_segment_new, stop];
9164 |             }
9165 | 
9166 |             if (Flatten.Utils.LT(min_dist_and_segment_new[0], Math.sqrt(node.item.key.low))) {
                                                                                         ^
TypeError: undefined is not an object (evaluating 'node.item.key.low')
      at minmax_tree_calc_distance (/Users/mohan/Documents/Codex/2026-10-08/hey-x20/outputs/stm32-midi-keys/node_modules/@flatten-js/core/dist/main.mjs:9166:83)
      at shape2planarSet (/Users/mohan/Documents/Codex/2026-10-08/hey-x20/outputs/stm32-midi-keys/node_modules/@flatten-js/core/dist/main.mjs:9195:53)
      at distanceTo (/Users/mohan/Documents/Codex/2026-10-08/hey-x20/outputs/stm32-midi-keys/node_modules/@flatten-js/core/dist/main.mjs:8373:61)
      at copperPolygonsTouch (/Users/mohan/Documents/Codex/2026-10-08/hey-x20/outputs/stm32-midi-keys/node_modules/@tscircuit/circuit-json-util/dist/index.js:3130:139)
      at findFloatingCopper (/Users/mohan/Documents/Codex/2026-10-08/hey-x20/outputs/stm32-midi-keys/node_modules/@tscircuit/core/dist/index.js:123425:11)
      at Board_doInitialPcbCopperPourCleanup (/Users/mohan/Documents/Codex/2026-10-08/hey-x20/outputs/stm32-midi-keys/node_modules/@tscircuit/core/dist/index.js:123460:47)
      at doInitialPcbCopperPourCleanup (/Users/mohan/Documents/Codex/2026-10-08/hey-x20/outputs/stm32-midi-keys/node_modules/@tscircuit/core/dist/index.js:124124:5)
      at runRenderPhase (/Users/mohan/Documents/Codex/2026-10-08/hey-x20/outputs/stm32-midi-keys/node_modules/@tscircuit/core/dist/index.js:1392:24)
      at runRenderCycle (/Users/mohan/Documents/Codex/2026-10-08/hey-x20/outputs/stm32-midi-keys/node_modules/@tscircuit/core/dist/index.js:1341:12)
      at render (/Users/mohan/Documents/Codex/2026-10-08/hey-x20/outputs/stm32-midi-keys/node_modules/@tscircuit/core/dist/index.js:122795:16)
      at generateCircuitJson (/Users/mohan/Documents/Codex/2026-10-08/hey-x20/outputs/stm32-midi-keys/node_modules/tscircuit/node_modules/@tscircuit/cli/dist/cli/main.js:185266:12)

Fatal error [circuit_generation_failed]: undefined is not an object (evaluating 'node.item.key.low')
Generating preview images...
No successful build output available for preview image generation.

Build complete
  Circuits  0 passed 1 failed
  Options   pcb-png, pcb-svgs, autorouter-debug, autorouter-timeout, autorouter-dump-srj
  Output    dist

⚠ Build completed with errors
Build exiting with code 1: fatal circuit build errors occurred
error: script "build" exited with code 1