Hi devzone,
I tried to create a task and bind it to an action in the NCS VSCode extension in order to use a different runner to flash my board. I am using toolchain v2.5.1.
I am using a Seeed Studio Xiao BLE Sense board, which uses a UF2 bootloader. A UF2 runner has been added to west : https://github.com/zephyrproject-rtos/zephyr/pull/54206 and when I try to use it with the command line it works fine.
However I would like to use that runner when using the Flash button in the VSCode extension for NCS. I modified the tasks.json and settings.json files like so :
{ "nrf-connect.applications": [ "${workspaceFolder}\\app" ], "nrf-connect.taskBindings": { "flash": [ { "taskName": "nRF Connect: UF2 Flash: app/build (active)", "buildConfigs": [ "${workspaceFolder}\\app\\build" ] } ] } }
{ "tasks": [ { "type": "nrf-connect-flash", "config": "c:\\Users\\nicol\\Documents\\xiao-round-display\\xiao-round-display.git\\app\\build", "problemMatcher": [], "label": "nRF Connect: Flash: app/build (active)", }, { "type": "nrf-connect-flash", "config": "c:\\Users\\nicol\\Documents\\xiao-round-display\\xiao-round-display.git\\app\\build", "runner": "uf2", "problemMatcher": [], "label": "nRF Connect: UF2 Flash: app/build (active)", }, ] }
I can see that the UF2 flashing task is shown in the Actions tab :

But when I click on it this error appears, and it seems to loop indefinitely.
Is there a problem in my configuration ? Is the uf2 runner supported by the VSCode extension ?
Obviously I can work around it, but I find the extension very helpful, and it would be nice to have
Thanks!
Nicolas Goualard