Flash ELF on a real MCU
flash_elfFlash a pre-built ELF you compiled locally (see AGENTS.md hello/). Pass the binary as elf_base64, or elf_url on https. Do not pass a filesystem path. Requires a Pay With Prompt voucher (merchant cloudhil, 10 credits = 1 flash). Cloudhil verifies it server-side before programming. Returns result.mailbox (NNOK 0x4E4E4F4B) and result.uart. nucleo-n6 and lpc55569-evk require .elf. Oneshot ≤20s then erase. Needs a Cloudhil account (Connect / OAuth).
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": {
"board": "<board>",
"voucher": "<voucher>"
},
"name": "flash_elf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| board | Yes | nucleo-n6, disco-h7, nucleo-f4, or lpc55569-evk | |
| elf_url | No | https URL of the ELF if it is too large for elf_base64 | |
| voucher | Yes | Pay With Prompt voucher pwpv_… for merchant cloudhil, from https://paywithprompt.com. Not logged. | |
| filename | No | Original filename ending in .elf .bin or .hex (default firmware.elf) | |
| elf_base64 | No | Base64 of the ELF/BIN/HEX you compiled locally (max 2 MiB decoded) | |
| uart_seconds | No | Observe 0..20 seconds (default 20) |