nRF52 Back Up Firmware
nrf52_backup_firmwareCopies the installed application from a board's UF2 drive into the data directory before flashing, returning the backup path for byte-for-byte restoration later.
Instructions
Copy CURRENT.UF2 (the installed application) off a board's UF2 drive into the data dir.
The dump restores byte-for-byte with nrf52_flash_uf2; take one before flashing. Reads
only; the board stays in UF2 mode. Returns the backup's path.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "nrf52_backup_firmware"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | The board's app port, ideally its `/dev/serial/by-id` path; omit when only one UF2 drive is mounted. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||