烧录板载 SPI Flash
fpga_flash_spiProgram SPI flash on FPGA via JTAG-to-SPI bridge for persistent configuration. Requires explicit confirmation and verifies expected IDCODE before burning.
Instructions
通过 FPGA JTAG->SPI bridge 持久烧录。危险动作:必须 confirm=true,且内部先 scan 并校验 expectIdcode。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | 远程执行设备 id(pango-mcp.config.json 的 hosts;省略=本机)。远程时 .sbit 推到该设备后在其上烧 SPI flash。 | |
| port | No | cdt_js 端口,默认来自配置或 65420 | |
| sbit | Yes | .sbit 绝对路径 | |
| confirm | No | 必须为 true 才实际烧录 | |
| sfcPath | No | 生成的 .sfc 路径;默认与 sbit 同名(远程时在远端临时目录生成) | |
| flashPart | Yes | SPI flash 型号,例如 W25Q128Q | |
| pdsVersion | No | 可选 PDS 版本/标签 | |
| timeoutSec | No | 超时秒数,默认 300 | |
| deviceIndex | No | JTAG 设备索引,默认 0 | |
| expectIdcode | Yes | 期望 IDCODE 或别名(PG2L100H/PG2L200H/GW/TG)。比较时忽略 IDCODE 高 4 位硅版本。 |