nRF52 Flash UF2
nrf52_flash_uf2Flashes an nRF52 board by copying a .uf2 file to its bootloader UF2 drive, validating the image and SoftDevice and requiring confirmation; use after entering UF2 mode.
Instructions
Flash an nRF52 board by copying a .uf2 onto its bootloader UF2 drive.
Several times faster than serial DFU, and no touch or DFU window is involved. The board
must be in UF2 mode (nrf52_enter_uf2). Refuses a file that is not a UF2 and an image built
for the other SoftDevice than the one INFO_UF2.TXT reports. Requires confirm=True, or the
user's answer when the client can ask. Runs as a flashes job whose job_id is in the
result and logged before the wait; follow it with flash_poll if the call is canceled. A
copy the bootloader did not take is a tool error.
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": {
"uf2_path": "<uf2_path>"
},
"name": "nrf52_flash_uf2"
}
}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. | |
| confirm | No | `True` once the user agreed; omitted, a client that can ask prompts the human. | |
| uf2_path | Yes | The .uf2 file to copy. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||