ERROR Unsupported device. The detected device could not be recognized as neither JLink device nor Nordic USB device

Hi experts, 

I have a problem with programming NRF5340 SoC when using the NRF-Programmer tool. About our board, we use PCBA instead of NRF5340 Dev-Kit.

Step1: My coworker has flashed and erased OK when using SEGGER-J-Flash. The images below are described as flashing and erasing successfully.

Step2: When I received the board, I used the NRF-Programmer tool to flash new firmware to the device. I choose "peripheral_heart_rate_nrf5340_dk" firmware from this link for bring-up the new hardware purposes. The first flashing was successful as this log: 

2022-11-21T12:34:26.550Z DEBUG Application data folder: C:\Users\quocbui\AppData\Roaming\nrfconnect\pc-nrfconnect-programmer
2022-11-21T12:34:26.637Z INFO Using nrf-device-lib-js version: 0.4.13
2022-11-21T12:34:26.638Z INFO Using nrf-device-lib version: 0.12.8
2022-11-21T12:34:26.638Z INFO Using nrfjprog DLL version: 10.16.0
2022-11-21T12:34:26.638Z INFO Using JLink version: JLink_V7.82c
2022-11-21T12:34:26.686Z DEBUG App pc-nrfconnect-programmer v3.0.4 official
2022-11-21T12:34:26.686Z DEBUG App path: C:\Users\quocbui\.nrfconnect-apps\node_modules\pc-nrfconnect-programmer
2022-11-21T12:34:26.686Z DEBUG nRFConnect 3.12.0, required by the app is (^3.12.0)
2022-11-21T12:34:26.686Z DEBUG nRFConnect path: C:\Users\quocbui\AppData\Local\Programs\nrfconnect\resources\app.asar
2022-11-21T12:34:26.686Z DEBUG HomeDir: C:\Users\quocbui
2022-11-21T12:34:26.686Z DEBUG TmpDir: C:\Users\quocbui\AppData\Local\Temp
2022-11-21T12:34:26.687Z INFO Installed JLink version does not match the provided version (V7.66a)
2022-11-21T12:34:28.558Z INFO Using @nordicsemiconductor/nrf-device-lib-js to communicate with target via JLink
2022-11-21T12:34:28.559Z INFO JLink OB firmware version J-Link V9 compiled May  7 2021 16:26:12
2022-11-21T12:34:28.559Z INFO Device family NRF53_FAMILY
2022-11-21T12:34:28.559Z INFO Device version NRF5340_xxAA_ENGD
2022-11-21T12:34:28.559Z INFO Board version Unknown
2022-11-21T12:34:28.559Z INFO Loading readback protection status for Application core
2022-11-21T12:34:28.559Z INFO Loading readback protection status for Network core
2022-11-21T12:34:29.118Z INFO Readback protection status: NRFDL_PROTECTION_STATUS_NONE
2022-11-21T12:34:29.495Z INFO Readback protection status: NRFDL_PROTECTION_STATUS_NONE
2022-11-21T12:34:30.240Z INFO Parse memory regions for Application core
2022-11-21T12:34:30.240Z INFO Parse memory regions for Network core
2022-11-21T12:34:30.244Z INFO Update files regions according to Application core
2022-11-21T12:34:30.244Z INFO Parse memory regions for file
2022-11-21T12:34:30.244Z INFO Update files regions according to Network core
2022-11-21T12:34:30.244Z INFO Parse memory regions for file
2022-11-21T12:34:30.251Z INFO Device is loaded and ready for further operation
2022-11-21T12:34:31.556Z DEBUG Client Id: e314825a-04dd-4ded-96f4-beb3b080321d
2022-11-21T12:34:33.338Z DEBUG Google Analytics for category pc-nrfconnect-programmer has initialized
2022-11-21T12:34:33.835Z INFO Recovering NRFDL_DEVICE_CORE_APPLICATION core
2022-11-21T12:34:37.517Z INFO Recovering NRFDL_DEVICE_CORE_APPLICATION core completed
2022-11-21T12:34:37.517Z INFO Recovering NRFDL_DEVICE_CORE_NETWORK core
2022-11-21T12:34:41.003Z INFO Recovering NRFDL_DEVICE_CORE_NETWORK core completed
2022-11-21T12:34:41.008Z INFO Device recovery completed
2022-11-21T12:34:41.010Z INFO Using @nordicsemiconductor/nrf-device-lib-js to communicate with target via JLink
2022-11-21T12:34:41.010Z INFO JLink OB firmware version J-Link V9 compiled May  7 2021 16:26:12
2022-11-21T12:34:41.010Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Open jlink OB version","label":"J-Link V9 compiled May  7 2021 16:26:12"}
2022-11-21T12:34:41.012Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Open jlink device family","label":"NRF53_FAMILY"}
2022-11-21T12:34:41.013Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Open jlink device version","label":"NRF5340_xxAA_ENGD"}
2022-11-21T12:34:41.013Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Open jlink device board version","label":"Unknown"}
2022-11-21T12:34:41.014Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Open device","label":"jlink"}
2022-11-21T12:34:41.015Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"architecture","label":"ia32"}
2022-11-21T12:34:41.016Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Open jlink OB version","label":"J-Link V9 compiled May  7 2021 16:26:12"}
2022-11-21T12:34:41.016Z INFO Device family NRF53_FAMILY
2022-11-21T12:34:41.017Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Open jlink device family","label":"NRF53_FAMILY"}
2022-11-21T12:34:41.017Z INFO Device version NRF5340_xxAA_ENGD
2022-11-21T12:34:41.017Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Open jlink device version","label":"NRF5340_xxAA_ENGD"}
2022-11-21T12:34:41.018Z INFO Board version Unknown
2022-11-21T12:34:41.018Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Open jlink device board version","label":"Unknown"}
2022-11-21T12:34:41.019Z INFO Loading readback protection status for Application core
2022-11-21T12:34:41.019Z INFO Loading readback protection status for Network core
2022-11-21T12:34:41.549Z INFO Readback protection status: NRFDL_PROTECTION_STATUS_NONE
2022-11-21T12:34:41.917Z INFO Readback protection status: NRFDL_PROTECTION_STATUS_NONE
2022-11-21T12:34:42.587Z INFO Parse memory regions for Application core
2022-11-21T12:34:42.587Z INFO Parse memory regions for Network core
2022-11-21T12:34:42.590Z INFO Update files regions according to Application core
2022-11-21T12:34:42.591Z INFO Parse memory regions for file
2022-11-21T12:34:42.591Z INFO Update files regions according to Network core
2022-11-21T12:34:42.591Z INFO Parse memory regions for file
2022-11-21T12:34:42.596Z INFO Device is loaded and ready for further operation
2022-11-21T12:34:58.734Z INFO Parsing HEX file:  C:\Users\quocbui\Downloads\peripheral_heart_rate_nrf5340_dk\Peripheral_Heart_Rate_nRF5340_DK\hci_open_amp.hex
2022-11-21T12:34:58.762Z INFO File was last modified at  11/21/2022, 10:06:04 AM
2022-11-21T12:34:58.834Z INFO Update files regions according to Application core
2022-11-21T12:34:58.835Z INFO Parse memory regions for file
2022-11-21T12:34:58.835Z INFO Update files regions according to Network core
2022-11-21T12:34:58.835Z INFO Parse memory regions for file
2022-11-21T12:34:58.862Z INFO Parsing HEX file:  C:\Users\quocbui\Downloads\peripheral_heart_rate_nrf5340_dk\Peripheral_Heart_Rate_nRF5340_DK\peripheral_hr.hex
2022-11-21T12:34:58.862Z INFO File was last modified at  11/21/2022, 10:06:04 AM
2022-11-21T12:34:58.899Z INFO Update files regions according to Application core
2022-11-21T12:34:58.899Z INFO Parse memory regions for file
2022-11-21T12:34:58.899Z INFO Update files regions according to Network core
2022-11-21T12:34:58.899Z INFO Parse memory regions for file
2022-11-21T12:35:12.809Z INFO Recovering NRFDL_DEVICE_CORE_APPLICATION core
2022-11-21T12:35:16.587Z INFO Recovering NRFDL_DEVICE_CORE_APPLICATION core completed
2022-11-21T12:35:16.587Z INFO Recovering NRFDL_DEVICE_CORE_NETWORK core
2022-11-21T12:35:20.106Z INFO Recovering NRFDL_DEVICE_CORE_NETWORK core completed
2022-11-21T12:35:20.108Z INFO Device recovery completed
2022-11-21T12:35:20.109Z INFO Writing procedure starts for NRFDL_DEVICE_CORE_APPLICATION core
2022-11-21T12:35:20.145Z INFO Writing HEX to NRFDL_DEVICE_CORE_APPLICATION core
2022-11-21T12:35:20.438Z INFO {"chip_erase_mode":"ERASE_ALL","qspi_erase_mode":"ERASE_NONE","reset":"RESET_NONE","verify":"VERIFY_NONE"} 100%
2022-11-21T12:35:20.438Z INFO Uploading image through JLink: 0%
2022-11-21T12:35:21.429Z INFO Uploading image through JLink: 100%
2022-11-21T12:35:21.608Z INFO Writing HEX to NRFDL_DEVICE_CORE_APPLICATION core completed
2022-11-21T12:35:21.608Z INFO Writing procedure ends for NRFDL_DEVICE_CORE_APPLICATION core
2022-11-21T12:35:21.608Z INFO Writing procedure starts for NRFDL_DEVICE_CORE_NETWORK core
2022-11-21T12:35:21.671Z INFO Writing HEX to NRFDL_DEVICE_CORE_NETWORK core
2022-11-21T12:35:22.026Z INFO {"chip_erase_mode":"ERASE_ALL","qspi_erase_mode":"ERASE_NONE","reset":"RESET_NONE","verify":"VERIFY_NONE"} 100%
2022-11-21T12:35:22.026Z INFO Uploading image through JLink: 0%
2022-11-21T12:35:23.457Z INFO Uploading image through JLink: 100%
2022-11-21T12:35:23.621Z INFO Writing HEX to NRFDL_DEVICE_CORE_NETWORK core completed
2022-11-21T12:35:23.622Z INFO Writing procedure ends for NRFDL_DEVICE_CORE_NETWORK core
2022-11-21T12:35:24.068Z INFO Resetting device completed
2022-11-21T12:35:24.070Z INFO Using @nordicsemiconductor/nrf-device-lib-js to communicate with target via JLink
2022-11-21T12:35:24.070Z INFO JLink OB firmware version J-Link V9 compiled May  7 2021 16:26:12
2022-11-21T12:35:24.070Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Open jlink OB version","label":"J-Link V9 compiled May  7 2021 16:26:12"}
2022-11-21T12:35:24.071Z INFO Device family NRF53_FAMILY
2022-11-21T12:35:24.071Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Open jlink device family","label":"NRF53_FAMILY"}
2022-11-21T12:35:24.072Z INFO Device version NRF5340_xxAA_ENGD
2022-11-21T12:35:24.072Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Open jlink device version","label":"NRF5340_xxAA_ENGD"}
2022-11-21T12:35:24.073Z INFO Board version Unknown
2022-11-21T12:35:24.073Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Open jlink device board version","label":"Unknown"}
2022-11-21T12:35:24.073Z INFO Loading readback protection status for Application core
2022-11-21T12:35:24.073Z INFO Loading readback protection status for Network core
2022-11-21T12:35:24.559Z INFO Readback protection status: NRFDL_PROTECTION_STATUS_NONE
2022-11-21T12:35:24.828Z INFO Readback protection status: NRFDL_PROTECTION_STATUS_NONE
2022-11-21T12:35:25.348Z INFO Parse memory regions for Application core
2022-11-21T12:35:25.348Z INFO Parse memory regions for Network core
2022-11-21T12:35:25.349Z INFO Update files regions according to Application core
2022-11-21T12:35:25.349Z INFO Parse memory regions for file
2022-11-21T12:35:25.349Z INFO Update files regions according to Network core
2022-11-21T12:35:25.350Z INFO Parse memory regions for file
2022-11-21T12:35:25.354Z INFO Device is loaded and ready for further operation
2022-11-21T12:36:18.310Z INFO Recovering NRFDL_DEVICE_CORE_APPLICATION core
2022-11-21T12:36:22.066Z INFO Recovering NRFDL_DEVICE_CORE_APPLICATION core completed
2022-11-21T12:36:22.066Z INFO Recovering NRFDL_DEVICE_CORE_NETWORK core
2022-11-21T12:36:25.617Z INFO Recovering NRFDL_DEVICE_CORE_NETWORK core completed
2022-11-21T12:36:25.619Z INFO Device recovery completed
2022-11-21T12:36:25.620Z INFO Using @nordicsemiconductor/nrf-device-lib-js to communicate with target via JLink
2022-11-21T12:36:25.620Z INFO JLink OB firmware version J-Link V9 compiled May  7 2021 16:26:12
2022-11-21T12:36:25.620Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Open jlink OB version","label":"J-Link V9 compiled May  7 2021 16:26:12"}
2022-11-21T12:36:25.622Z INFO Device family NRF53_FAMILY
2022-11-21T12:36:25.622Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Open jlink device family","label":"NRF53_FAMILY"}
2022-11-21T12:36:25.623Z INFO Device version NRF5340_xxAA_ENGD
2022-11-21T12:36:25.623Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Open jlink device version","label":"NRF5340_xxAA_ENGD"}
2022-11-21T12:36:25.624Z INFO Board version Unknown
2022-11-21T12:36:25.624Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Open jlink device board version","label":"Unknown"}
2022-11-21T12:36:25.624Z INFO Loading readback protection status for Application core
2022-11-21T12:36:25.624Z INFO Loading readback protection status for Network core
2022-11-21T12:36:26.070Z INFO Readback protection status: NRFDL_PROTECTION_STATUS_NONE
2022-11-21T12:36:26.468Z INFO Readback protection status: NRFDL_PROTECTION_STATUS_NONE
2022-11-21T12:36:27.020Z INFO Parse memory regions for Application core
2022-11-21T12:36:27.021Z INFO Parse memory regions for Network core
2022-11-21T12:36:27.023Z INFO Update files regions according to Application core
2022-11-21T12:36:27.023Z INFO Parse memory regions for file
2022-11-21T12:36:27.024Z INFO Update files regions according to Network core
2022-11-21T12:36:27.024Z INFO Parse memory regions for file
2022-11-21T12:36:27.028Z INFO Device is loaded and ready for further operation
2022-11-21T12:37:31.181Z INFO Using @nordicsemiconductor/nrf-device-lib-js to communicate with target via JLink
2022-11-21T12:37:31.181Z INFO JLink OB firmware version J-Link V9 compiled May  7 2021 16:26:12
2022-11-21T12:37:31.182Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Open jlink OB version","label":"J-Link V9 compiled May  7 2021 16:26:12"}
2022-11-21T12:37:31.182Z INFO Device family NRF53_FAMILY
2022-11-21T12:37:31.183Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Open jlink device family","label":"NRF53_FAMILY"}
2022-11-21T12:37:31.184Z INFO Device version NRF5340_xxAA_ENGD
2022-11-21T12:37:31.184Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Open jlink device version","label":"NRF5340_xxAA_ENGD"}
2022-11-21T12:37:31.185Z INFO Board version Unknown
2022-11-21T12:37:31.185Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Open jlink device board version","label":"Unknown"}
2022-11-21T12:37:31.186Z INFO Loading readback protection status for Application core
2022-11-21T12:37:31.186Z INFO Loading readback protection status for Network core
2022-11-21T12:37:31.186Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Open device","label":"jlink"}
2022-11-21T12:37:31.862Z ERROR Failed to load readback protection status: async task failure for id: 643378140891 msg: JLINKARM_DLL_ERROR (Origin: "Error when running nrfdl_device_control_get_protection")
2022-11-21T12:37:31.863Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Report error","label":"win32; ia32; v3.0.4; Failed to load readback protection status: async task failure for id: 643378140891 msg: JLINKARM_DLL_ERROR (Origin: \"Error when running nrfdl_device_control_get_protection\")"}
2022-11-21T12:37:32.065Z ERROR Failed to load readback protection status: async task failure for id: 643378140810 msg: JLINKARM_DLL_ERROR (Origin: "Error when running nrfdl_device_control_get_protection")
2022-11-21T12:37:32.065Z DEBUG Sending usage data {"category":"pc-nrfconnect-programmer","action":"Report error","label":"win32; ia32; v3.0.4; Failed to load readback protection status: async task failure for id: 643378140810 msg: JLINKARM_DLL_ERROR (Origin: \"Error when running nrfdl_device_control_get_protection\")"}
2022-11-21T12:37:32.069Z INFO Parse memory regions for Application core
2022-11-21T12:37:32.069Z INFO Parse memory regions for Network core
2022-11-21T12:37:32.071Z INFO Update files regions according to Application core
2022-11-21T12:37:32.071Z INFO Parse memory regions for file
2022-11-21T12:37:32.071Z INFO Update files regions according to Network core
2022-11-21T12:37:32.072Z INFO Parse memory regions for file
2022-11-21T12:37:32.077Z INFO Device is loaded and ready for further operation
. But then, the device has been not connected even when I use either SEGGER-J-Flash or NRF-Programmer for connecting. The log show this file: 
2022-11-21T12:53:01.207Z DEBUG Application data folder: C:\Users\quocbui\AppData\Roaming\nrfconnect\pc-nrfconnect-programmer
2022-11-21T12:53:01.286Z INFO Using nrf-device-lib-js version: 0.4.13
2022-11-21T12:53:01.287Z INFO Using nrf-device-lib version: 0.12.8
2022-11-21T12:53:01.287Z INFO Using nrfjprog DLL version: 10.16.0
2022-11-21T12:53:01.287Z INFO Using JLink version: JLink_V7.82c
2022-11-21T12:53:01.330Z DEBUG App pc-nrfconnect-programmer v3.0.4 official
2022-11-21T12:53:01.330Z DEBUG App path: C:\Users\quocbui\.nrfconnect-apps\node_modules\pc-nrfconnect-programmer
2022-11-21T12:53:01.330Z DEBUG nRFConnect 3.12.0, required by the app is (^3.12.0)
2022-11-21T12:53:01.330Z DEBUG nRFConnect path: C:\Users\quocbui\AppData\Local\Programs\nrfconnect\resources\app.asar
2022-11-21T12:53:01.330Z DEBUG HomeDir: C:\Users\quocbui
2022-11-21T12:53:01.330Z DEBUG TmpDir: C:\Users\quocbui\AppData\Local\Temp
2022-11-21T12:53:01.331Z INFO Installed JLink version does not match the provided version (V7.66a)
2022-11-21T12:53:03.220Z ERROR Unsupported device.
            The detected device could not be recognized as
            neither JLink device nor Nordic USB device.
2022-11-21T12:53:06.223Z DEBUG Client Id: e314825a-04dd-4ded-96f4-beb3b080321d
2022-11-21T12:53:06.982Z DEBUG Google Analytics for category pc-nrfconnect-programmer has initialized
2022-11-21T12:53:30.933Z ERROR Unsupported device.
            The detected device could not be recognized as
            neither JLink device nor Nordic USB device.
2022-11-21T12:54:58.692Z ERROR Unsupported device.
            The detected device could not be recognized as
            neither JLink device nor Nordic USB device.
2022-11-21T12:55:03.845Z ERROR Unsupported device.
            The detected device could not be recognized as
            neither JLink device nor Nordic USB device.
2022-11-21T12:55:04.870Z ERROR Unsupported device.
            The detected device could not be recognized as
            neither JLink device nor Nordic USB device.
2022-11-21T12:55:11.445Z ERROR Unsupported device.
            The detected device could not be recognized as
            neither JLink device nor Nordic USB device.
2022-11-21T12:55:12.399Z ERROR Unsupported device.
            The detected device could not be recognized as
            neither JLink device nor Nordic USB device.
2022-11-21T12:55:14.632Z ERROR Unsupported device.
            The detected device could not be recognized as
            neither JLink device nor Nordic USB device.
2022-11-21T12:55:17.798Z ERROR Unsupported device.
            The detected device could not be recognized as
            neither JLink device nor Nordic USB device.
2022-11-21T13:00:50.526Z ERROR Unsupported device.
            The detected device could not be recognized as
            neither JLink device nor Nordic USB device.
2022-11-21T13:01:08.074Z ERROR Unsupported device.
            The detected device could not be recognized as
            neither JLink device nor Nordic USB device.
2022-11-21T13:01:19.941Z ERROR Unsupported device.
            The detected device could not be recognized as
            neither JLink device nor Nordic USB device.
2022-11-21T13:01:40.948Z ERROR Unsupported device.
            The detected device could not be recognized as
            neither JLink device nor Nordic USB device.
2022-11-21T13:01:42.097Z ERROR Unsupported device.
            The detected device could not be recognized as
            neither JLink device nor Nordic USB device.
2022-11-21T13:01:56.302Z ERROR Unsupported device.
            The detected device could not be recognized as
            neither JLink device nor Nordic USB device.
2022-11-21T13:01:57.551Z ERROR Unsupported device.
            The detected device could not be recognized as
            neither JLink device nor Nordic USB device.
2022-11-21T13:01:58.379Z ERROR Unsupported device.
            The detected device could not be recognized as
            neither JLink device nor Nordic USB device.
2022-11-21T13:04:09.960Z ERROR Unsupported device.
            The detected device could not be recognized as
            neither JLink device nor Nordic USB device.
2022-11-21T13:04:10.875Z ERROR Unsupported device.
            The detected device could not be recognized as
            neither JLink device nor Nordic USB device.
2022-11-21T13:04:11.623Z ERROR Unsupported device.
            The detected device could not be recognized as
            neither JLink device nor Nordic USB device.
2022-11-21T13:04:14.209Z ERROR Unsupported device.
            The detected device could not be recognized as
            neither JLink device nor Nordic USB device.
2022-11-21T13:04:17.102Z ERROR Unsupported device.
            The detected device could not be recognized as
            neither JLink device nor Nordic USB device.
2022-11-21T13:04:18.417Z ERROR Unsupported device.
            The detected device could not be recognized as
            neither JLink device nor Nordic USB device.
2022-11-21T13:04:19.101Z ERROR Unsupported device.
            The detected device could not be recognized as
            neither JLink device nor Nordic USB device.
2022-11-21T13:04:21.571Z ERROR Unsupported device.
            The detected device could not be recognized as
            neither JLink device nor Nordic USB device.
2022-11-21T13:04:22.130Z ERROR Unsupported device.
            The detected device could not be recognized as
            neither JLink device nor Nordic USB device.
2022-11-21T13:04:22.848Z ERROR Unsupported device.
            The detected device could not be recognized as
            neither JLink device nor Nordic USB device.

Have you any idea about this case? 

Thank you in advance.

Related