nRF Connect for VSCode Task SoftReset Option Has No Effect

Hello,

I am using nRF Connect for VSCode (v2022.7.242) and discovered that the softreset option for a task has no effect.

Task:

{
	"type": "nrf-connect-flash",
	"config": "${workspaceFolder}/build",
	"erase": false,
	"recover": false,
	"softreset": true,
	"problemMatcher": [],
	"label": "Flash Target",
	"dependsOn": "Build Target"
},

Output:

Flashing build to undefined
west flash -d /home/ee/proj/build --skip-rebuild -r nrfjprog --dev-id 821006534

-- west flash: using runner nrfjprog
-- runners.nrfjprog: Flashing file: /home/ee/proj/build/zephyr/zephyr.hex
Parsing image file.
Verifying programming.
Verified OK.
Enabling pin reset.
Applying pin reset.
-- runners.nrfjprog: Board with serial number 821006534 flashed successfully.
 *  Terminal will be reused by tasks, press any key to close it. 

As you can see it is no adding the "--softreset" flag.

This is not the case when the softreset application setting is set to true and I use the nrf Connect Flash button. In this case it works correctly:

Flashing build to undefined
west flash -d /home/ee/proj/build --skip-rebuild -r nrfjprog --dev-id 821006534 --softreset

-- west flash: using runner nrfjprog
-- runners.nrfjprog: Flashing file: /home/ee/proj/build/zephyr/zephyr.hex
Parsing image file.
Verifying programming.
Verified OK.
Applying system reset.
Run.
-- runners.nrfjprog: Board with serial number 821006534 flashed successfully.
 *  Terminal will be reused by tasks, press any key to close it. 

I assume this is a bug or have I configured something wrong? 

Parents Reply
  • Hi, 

    Softrest does seem to work if set in application options when using the nRF Connect for VSCode GUI "Flash" button as I showed in the opening post. 

    But when using a custom task with the  "softreset" option set to true, it doesn't do the soft rest. 

    Can you try running the task I have included in the opening post? Does it do a soft reset on your system? 

    I am running the task by either calling my debugger (launch.json) which then runs the task or through the command palette (Run Task -> Flash Target). 

    Thank you. 

Children
Related