FDE产品学习文档联系 中/EN

原理图进,板子亮。

从原理图到烧录成功,编译报错自己修,直到板子跑起来。

谈谈部署到你们公司 →

用你们的 SDK、你们的固件模板、你们的编译链。

schematic.SchDocU3 · CS32F09010VINDET11ALARM12B_CTLD15VBDET16B_CHGD17IADP21B_SCL22B_SDA27FUSE30KEYDET31ACOK42BMS_TXR7 R8D2C3

gen_pinmap.h

网名引脚端口
VINDET10PA0
ALARM11PA1
VBDET15PA5
IADP17PA7
B_SCL21PB10
B_SDA22PB11

常量 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 **

PCBJ1SWDLED1 · 1 Hz

验证报告

  • 模板:CS32F090 · 92 文件
  • 字节回归:9 项通过
  • 编译与烧录:日志已留档
  1. 读原理图确定性程序
  2. 推引脚与常量确定性程序
  3. 本机编译Agent 在本机
  4. 报错修到过Agent 在本机
  5. 重编通过Agent 在本机
  6. 烧录验证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
    identical

    schematic-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.81s

    tests/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 input

    v5 orchestrator 的运行轨迹:连拒收也有记录(2026-09-24 实跑)

三步到位

  1. 01接入你们的 MCU 族与固件模板
  2. 02用你们的一块板跑通
  3. 03产线交付与培训

我们需要你们提供

  • 原理图
  • 芯片 SDK
  • 现有固件模板
  • 编译工具链
  • 一块样板与烧录器
谈谈部署 →