工程配置文件 (kvpac.config.json)

{
  "name": "MyProject",
  "version": "1.0.0",
  "target": "stm32",
  "optimization": 2,
  "sources": ["src/"],
  "libraries": ["lib/standard.lib"],
  "io_config": "io-config.json",
  "build_options": {
    "debug_info": true,
    "watchdog_enabled": true,
    "stack_size": 4096
  }
}

参数说明

通用参数

参数 类型 默认值 说明
name string - 工程名称
target string simulator 目标平台
optimization int 2 优化级别 (0-3)
sources array [] 源文件目录

运行时参数

参数 类型 默认值 说明
stack_size int 4096 任务栈大小 (bytes)
watchdog_enabled bool true 看门狗开关
debug_info bool true 生成调试信息

通信参数

参数 类型 默认值 说明
ws_port int 2020 WebSocket 端口
modbus_enabled bool true Modbus 开关
modbus_port int 502 Modbus TCP 端口