spi_write
Write data to SPI flash from a binary file, hex string, or ASCII string at a target address. Confirmation is required because it overwrites flash contents.
Instructions
Write data to SPI flash (firmware menu 6): from a file, hex string, or ASCII string. DANGEROUS: overwrites flash. [approval-write] [Duration: fast - slow (depends on size).]
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": {
"address": "<address>",
"_confirmed": "<_confirmed>"
},
"name": "spi_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes | Target flash address | |
| data_hex | No | Hex string (e.g. 'DEADBEEF') | |
| _confirmed | Yes | Set true to confirm execution | |
| auto_erase | No | Automatically erase affected blocks | |
| input_path | No | Path to binary file to write | |
| ascii_string | No | ASCII string to write |