nRF Connect VS Code macOS No Devices connected nrfjprog couldn't be executed

I am trying to develop Zigbee plug using the demo provided by Nordic. Working on my Intel Macbook Pro 13.7.3
The toolchain and SDK are installed, ver 2.9.1. The program can be compiled. 
However, when I was trying to flash, the VS Code has given two errors 
1. No Devices connected, although I have connected NRF52840 and set in flashing mode
2. nrfjprog couldn't be executed, which can be found and executed manually.
Log Attached.
===============
[10:54:37] =========== Toolchain validation report for nRF Connect SDK Toolchain v2.9.1 ===========
Package Using the nRF Connect SDK v2.9.1 at /opt/nordic/ncs/v2.9.1
Exclamation️ nrfjprog couldn't be executed. Please ensure that SEGGER J-Link Software and Documentation Pack and nRF Command Line Tools are both installed.
alex@Alexs-MBP light_bulb_1 % which nrfjprog
/usr/local/bin/nrfjprog

alex@Alexs-MBP light_bulb_1 % /usr/local/bin/nrfjprog --version
[error] [ nRF] - Exception encountered while attempting to initialize multiprocess client: Operation not permitted
ERROR: An internal error has occurred, please try again.
NOTE: For additional output, try running again with logging enabled (--log).
NOTE: Any generated log error messages will be displayed.

alex@Alexs-MBP light_bulb_1 % sudo /usr/local/bin/nrfjprog
Password:
Usage:
-------------------------------------------------------------------------------
-q --quiet Reduces the stdout info. Must be combined with
another command.
-h --help Displays this help.
-v --version Displays the nrfjprog and dll versions.
...

alex@Alexs-MBP light_bulb_1 % ls -la /dev/tty.usbmodem*
crw-rw-rw- 1 root wheel 0x9000006 Apr 9 10:32 /dev/tty.usbmodemEDF39763CD8C1

Parents Reply Children
No Data
Related