I am unable to connect the device to nRF Connect programmer. Following is the error. how to resolve it? what actually is the problem?

I am unable to connect the device to nRF Connect programmer. Following is the error. how to resolve it? what actually is the problem?

Yes, no worries! It is just that the nrfjprog is a requirement when using the Programmer Tool, see the log below:
2021-05-27T10:53:35.806Z INFO Application data folder: C:\Users\<user>\AppData\Roaming\nrfconnect\pc-nrfconnect-programmer 2021-05-27T10:53:35.863Z INFO Using nrfjprog library 10.12.1, pc-nrfjprog-js 1.7.6 2021-05-27T10:53:35.867Z DEBUG App pc-nrfconnect-programmer v1.4.8 official 2021-05-27T10:53:35.868Z DEBUG App path: C:\Users\<user>\.nrfconnect-apps\node_modules\pc-nrfconnect-programmer 2021-05-27T10:53:35.868Z DEBUG nRFConnect 3.6.1 is supported by the app (^3.6.0) 2021-05-27T10:53:35.868Z DEBUG nRFConnect path: C:\Users\<user>\AppData\Local\Programs\nrfconnect\resources\app.asar 2021-05-27T10:53:35.868Z DEBUG HomeDir: C:\Users\<user> 2021-05-27T10:53:35.868Z DEBUG TmpDir: C:\Users\<user>\AppData\Local\Temp 2021-05-27T10:53:56.456Z INFO Using nrfjprog to communicate with target 2021-05-27T10:53:56.699Z INFO Using J-Link Software version 6.88 2021-05-27T10:53:57.099Z INFO Segger serial: 960105639 2021-05-27T10:53:57.099Z INFO Segger speed: 2000 kHz 2021-05-27T10:53:57.099Z INFO Segger version: J-Link OB-K22-NordicSemi compiled Jan 21 2020 17:33:01 2021-05-27T10:53:57.100Z INFO Core probed: 960105639 2021-05-27T10:53:57.100Z INFO Core RAM: 512KiB 2021-05-27T10:53:57.100Z INFO Core ROM: 1024KiB in pages of 4KiB 2021-05-27T10:53:57.122Z INFO Device is closed without reset due to app protection 2021-05-27T10:53:57.122Z INFO Model: NRF5340_xxAA_ENGD. 2021-05-27T10:53:57.909Z INFO Segger serial: 960105639 2021-05-27T10:53:57.909Z INFO Segger speed: 2000 kHz 2021-05-27T10:53:57.909Z INFO Segger version: J-Link OB-K22-NordicSemi compiled Jan 21 2020 17:33:01 2021-05-27T10:53:57.909Z INFO Core probed: 960105639:1 2021-05-27T10:53:57.909Z INFO Core RAM: 64KiB 2021-05-27T10:53:57.909Z INFO Core ROM: 256KiB in pages of 2KiB 2021-05-27T10:53:57.931Z INFO Device is closed without reset due to app protection 2021-05-27T10:53:58.199Z INFO Skipped reading, since at least one core has app readback protection
Ok, let’s see: J-Link seems to be ok, Command Line Tools as well.
Are you using the nRF5340 DK or a customised board?
Yes, no worries! It is just that the nrfjprog is a requirement when using the Programmer Tool, see the log below:
2021-05-27T10:53:35.806Z INFO Application data folder: C:\Users\<user>\AppData\Roaming\nrfconnect\pc-nrfconnect-programmer 2021-05-27T10:53:35.863Z INFO Using nrfjprog library 10.12.1, pc-nrfjprog-js 1.7.6 2021-05-27T10:53:35.867Z DEBUG App pc-nrfconnect-programmer v1.4.8 official 2021-05-27T10:53:35.868Z DEBUG App path: C:\Users\<user>\.nrfconnect-apps\node_modules\pc-nrfconnect-programmer 2021-05-27T10:53:35.868Z DEBUG nRFConnect 3.6.1 is supported by the app (^3.6.0) 2021-05-27T10:53:35.868Z DEBUG nRFConnect path: C:\Users\<user>\AppData\Local\Programs\nrfconnect\resources\app.asar 2021-05-27T10:53:35.868Z DEBUG HomeDir: C:\Users\<user> 2021-05-27T10:53:35.868Z DEBUG TmpDir: C:\Users\<user>\AppData\Local\Temp 2021-05-27T10:53:56.456Z INFO Using nrfjprog to communicate with target 2021-05-27T10:53:56.699Z INFO Using J-Link Software version 6.88 2021-05-27T10:53:57.099Z INFO Segger serial: 960105639 2021-05-27T10:53:57.099Z INFO Segger speed: 2000 kHz 2021-05-27T10:53:57.099Z INFO Segger version: J-Link OB-K22-NordicSemi compiled Jan 21 2020 17:33:01 2021-05-27T10:53:57.100Z INFO Core probed: 960105639 2021-05-27T10:53:57.100Z INFO Core RAM: 512KiB 2021-05-27T10:53:57.100Z INFO Core ROM: 1024KiB in pages of 4KiB 2021-05-27T10:53:57.122Z INFO Device is closed without reset due to app protection 2021-05-27T10:53:57.122Z INFO Model: NRF5340_xxAA_ENGD. 2021-05-27T10:53:57.909Z INFO Segger serial: 960105639 2021-05-27T10:53:57.909Z INFO Segger speed: 2000 kHz 2021-05-27T10:53:57.909Z INFO Segger version: J-Link OB-K22-NordicSemi compiled Jan 21 2020 17:33:01 2021-05-27T10:53:57.909Z INFO Core probed: 960105639:1 2021-05-27T10:53:57.909Z INFO Core RAM: 64KiB 2021-05-27T10:53:57.909Z INFO Core ROM: 256KiB in pages of 2KiB 2021-05-27T10:53:57.931Z INFO Device is closed without reset due to app protection 2021-05-27T10:53:58.199Z INFO Skipped reading, since at least one core has app readback protection
Ok, let’s see: J-Link seems to be ok, Command Line Tools as well.
Are you using the nRF5340 DK or a customised board?
I am using nRF5340 DK board.