nRF DFU Flash
nrfutil_dfuFlashes a .zip DFU package to an nRF52840 over serial, handling the 1200-baud touch and bootloader wait so firmware can be updated on Meshtastic boards.
Instructions
DFU-flash a .zip package to an nRF52840 via nrfutil dfu serial.
With adafruit-nrfutil the transfer uses --singlebank and fails unless the run printed
"Device programmed."; where /dev/serial/by-id exists the tool does the 1200 baud
touch itself (dropping DTR) and waits for the bootloader, elsewhere it passes
-t 1200. For a board already sitting in serial DFU, use nrfutil_raw with no touch
instead. On the Meshtastic bootloader nrf52_flash_uf2 is several times faster; for
firmware built from the tree prefer pio_flash. Requires confirm=True, or the user's
answer when the client can ask (always, with MESHTASTIC_MCP_CONFIRM=human).
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": {
"port": "<port>",
"package_path": "<package_path>"
},
"name": "nrfutil_dfu"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | Yes | The app's serial port; a `/dev/serial/by-id` link works. | |
| confirm | No | `True` once the user agreed; omitted, a client that can ask prompts the human. | |
| package_path | Yes | The DFU .zip package. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||