原理图进,板子亮。
gen_pinmap.h
| 网名 | 引脚 | 端口 |
|---|---|---|
| VINDET | 10 | PA0 |
| ALARM | 11 | PA1 |
| VBDET | 15 | PA5 |
| IADP | 17 | PA7 |
| B_SCL | 21 | PB10 |
| B_SDA | 22 | PB11 |
常量 72 · 引脚 41
$ make -j8
arm-none-eabi-gcc -c src/App/gen_pinmap.c …
arm-none-eabi-gcc -c src/App/main.c …
arm-none-eabi-gcc -c src/App/smart_caps.c …
src/App/smart_caps.c:88:5: error: 'PIN_LED1__PORT' undeclared
make: *** [obj/smart_caps.o] Error 1
$ make -j8
… 0 errors, 0 warnings
Linking firmware.elf
text 41234 data 512 bss 3120
$ openocd -f jlink.cfg -c "program firmware.elf verify reset exit"
** Programming Finished **
** Verified OK **
验证报告
- 模板:CS32F090 · 92 文件
- 字节回归:9 项通过
- 编译与烧录:日志已留档
- 读原理图确定性程序
- 推引脚与常量确定性程序
- 本机编译Agent 在本机
- 报错修到过Agent 在本机
- 重编通过Agent 在本机
- 烧录验证Agent 在本机
每一句都有凭据
四条边界,每条都有真实产物。
不合成状态机。
$ cmp templates/pack_capabilities/pack_state_machine.c output/App/pack_state_machine.c && echo identical identical $ cmp templates/pack_capabilities/afe_state_machine.c output/App/afe_state_machine.c && echo identical identical $ cmp firmware_src/App/state_machine.c output/App/state_machine.c && echo identical identicalschematic-to-code · 某电池包板的产物与模板逐文件比较(2026-09-24 实跑)
没接入的 MCU 族,拒收,不瞎生成。
>>> get_adapter_from_fused({'mcu': {'model': 'GD32E230'}}) KeyError: "MCU NOT_COVERED: model='GD32E230' is empty or not a registered MCU family. Refusing the historical CMS32L032 fallback. Customer action: provide the complete MCU part number and SDK."scripts/v5/mcu_adapters · 未注册型号实调(2026-09-24 实跑)
固件逐字节可比对。
$ pytest tests/test_codegen_byte_match.py -q -rs .........sss SKIPPED [2] arm-none-eabi-gcc not in PATH; install xPack to enable 9 passed, 3 skipped in 1.81stests/test_codegen_byte_match.py · 生成物与留档逐字节比对(2026-09-24 实跑)
每一次修改都留痕。
run.trace.json · 每一站一条记录 stage:intake OK 34 ms stage:parse OK 403 ms stage:fuse OK 26 ms stage:coverage_gate ERROR 159 ms rejected this inputv5 orchestrator 的运行轨迹:连拒收也有记录(2026-09-24 实跑)
三步到位
- 01接入你们的 MCU 族与固件模板
- 02用你们的一块板跑通
- 03产线交付与培训