In the following example, the tasks.json file includes a custom nrf-connect-flash type from the previous example, but with the additional runner parameter set to nrfjprog.
Note
Starting with the nRF Connect SDK v3.0.0, all Nordic Semiconductor boards are using the nRF Util as the default west runner for the west flash command. This change ensures that the programming process is consistent across all boards. Overriding the default selection with a custom runner task can cause programming issues.
{
"version": "2.0.0",
"tasks": [
{
"type": "nrf-connect-flash",
"config": "${workspaceFolder:hello_world}/build_nrf52840",
"snr": "683888634",
"runner": "nrfjprog",
"erase": false,
"problemMatcher": [],
"label": "nRF Connect: Flash build_nrf52840 (active)"
}
]
}