"FATAL ERROR: runner nrfjprog received unknown arguments: ['--snr', '683171015']". Not able to flash nRF52840 DK from VS Code.

When trying to flash the nRF52840 DK from VSCode I'm getting the following error:

"FATAL ERROR: runner nrfjprog received unknown arguments: ['--snr', '683171015']"

But when I execute the command "west flash -d c:\nordic\myApps\blinky_pwm\build --skip-rebuild -r nrfjprog" without mentioning "--snr" argument in the command prompt, it works.

Can anyone please let me know what is the issue?

Related