flash
Erase target microcontroller, write a hex file, and verify the result in a single operation to program a device reliably.
Instructions
Erase, write, and verify a hex file in one operation.
This is the recommended way to program a device. It erases the target, writes the hex file, and verifies the result. hexfile: absolute path to the .hex file on disk. Returns 'OK' on success.
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": {
"hexfile": "<hexfile>"
},
"name": "flash"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hexfile | Yes | ||
| device | No | ||
| tool | No | ||
| serialnumber | No | ||
| serialport | No | ||
| baudrate | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |