flash_file
Writes a bitstream or firmware image to the SPI flash at a specified offset, overwriting existing content and optionally rebooting the FPGA to boot the new image.
Instructions
PERSISTENT: write a file to the SPI flash at the given offset. Overwrites existing content; requires confirm=true after asking the user.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "flash_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File to write to SPI flash (bitstream or firmware image). | |
| offset | No | Flash byte offset, multiple of 256 (0 = bitstream, 0xB0000 = SoC firmware). | |
| reboot | No | Soft-reset the FPGA afterwards so it boots the new image. | |
| confirm | No | Must be true; ask the user before setting it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||