vincent@VM-Kubuntu-23:~/work/WX$ nrfutil device list
1052078938
Product         J-Link
Board version   PCA10201
Ports           /dev/ttyACM0, vcom: 0
                /dev/ttyACM1, vcom: 1
Traits          boardController, devkit, jlink, modem, seggerUsb, serialPorts, usb

Supported devices found: 1

vincent@VM-Kubuntu-23:~/work/WX$ west flash --recover
FATAL ERROR: --build-dir was not given, and neither /home/vincent/work/WX nor /home/vincent/work/WX/build are zephyr build directories.
vincent@VM-Kubuntu-23:~/work/WX$ cd nrf_test_ws2812/
vincent@VM-Kubuntu-23:~/work/WX/nrf_test_ws2812$ west flash --recover
-- west flash: rebuilding
[0/5] Performing build step for 'nrf_test_ws2812'
ninja: no work to do.
[4/5] cd /home/vincent/work/WX/nrf_test_ws2812/build/_sysbuild && /home/vincent/ncs/toolchains/911f4c5c26/usr/local/bin/cmake -E true
-- west flash: using runner nrfutil
-- runners.nrfutil: reset after flashing requested
Using board 001052078938
-- runners.nrfutil: Recovering and erasing all flash memory.
-- runners.nrfutil: Flashing file: /home/vincent/work/WX/nrf_test_ws2812/build/merged.hex
-- runners.nrfutil: Connecting to probe
-- runners.nrfutil: Recover
Error: One or more batch tasks failed:
* 1052078938: Device error: Failed to read AccessPort register 0x00: Unknown error in the J-Link DLL (error code =-1) (Generic)

FATAL ERROR: command exited with status 1: nrfutil --json device x-execute-batch --batch-path /home/vincent/work/WX/nrf_test_ws2812/build/nrf_test_ws2812/zephyr/generated_nrfutil_batch.json --serial-number 1052078938
vincent@VM-Kubuntu-23:~/work/WX/nrf_test_ws2812$ nrfutil device erase
❌ Failed to erase 1052078938, Failed to attach to target: The Application core access port is protected (All)                                                                                                                                                   Error: One or more erase tasks failed:
* 1052078938: Failed to attach to target: The Application core access port is protected (All) (NotAvailableBecauseProtection)


The operation was unavailable for some of the devices because they had readback protection enabled. These devices might be possible to unlock using the `recover` subcommand. See `nrfutil device recover --help` for more information.

vincent@VM-Kubuntu-23:~/work/WX/nrf_test_ws2812$ nrfutil device recover
❌ Failed to recover 1052078938, Device error: Emulator error: Failed to connect to device: Unable to detect a supported core                                                                                                                                    Error: One or more recover tasks failed:
* 1052078938: Device error: Emulator error: Failed to connect to device: Unable to detect a supported core (Generic)

vincent@VM-Kubuntu-23:~/work/WX/nrf_test_ws2812$ nrfutil device erase
❌ Failed to erase 1052078938, Device error: Failed to read from memory address 0x50003620: Failed to write AccessPort register 0x04: Unknown error in the J-Link DLL (error code =-1)                                                                           Error: One or more erase tasks failed:
* 1052078938: Device error: Failed to read from memory address 0x50003620: Failed to write AccessPort register 0x04: Unknown error in the J-Link DLL (error code =-1) (Generic)

vincent@VM-Kubuntu-23:~/work/WX/nrf_test_ws2812$ nrfutil device list
1052078938
Product         J-Link
Board version   PCA10201
Ports           /dev/ttyACM0, vcom: 0
                /dev/ttyACM1, vcom: 1
Traits          boardController, devkit, jlink, modem, seggerUsb, serialPorts, usb

Supported devices found: 1

vincent@VM-Kubuntu-23:~/work/WX/nrf_test_ws2812$ nrfutil device recover
❌ Failed to recover 1052078938, Device error: Unable to recognize the device: Unknown part number 0x12880000                                                                                                                                                    Error: One or more recover tasks failed:
* 1052078938: Device error: Unable to recognize the device: Unknown part number 0x12880000  (Generic)

vincent@VM-Kubuntu-23:~/work/WX/nrf_test_ws2812$ nrfutil device recover --family NRF91
error: invalid value 'NRF91' for '--family <FAMILY>'
  [possible values: nrf51, nrf52, nrf53, nrf54l, nrf54h, nrf91, nrf92]

For more information, try '--help'.
vincent@VM-Kubuntu-23:~/work/WX/nrf_test_ws2812$ nrfutil device recover --family nrf91
❌ Failed to recover 1052078938, Device error: Unable to detect CTRL-AP at 4                                                                                                                                                                                     Error: One or more recover tasks failed:
* 1052078938: Device error: Unable to detect CTRL-AP at 4 (Generic)

vincent@VM-Kubuntu-23:~/work/WX/nrf_test_ws2812$ nrfutil device device-info
serial_number: 001052078938
        boardVersion: PCA10201
        deviceFamily: NRF91_FAMILY
        deviceName: nRF9151
        deviceVersion: NRF9151_xxxx_REV3
        jlinkObFirmwareVersion: J-Link OB-nRF5340-NordicSemi compiled Jul  8 2025 10:15:34

vincent@VM-Kubuntu-23:~/work/WX/nrf_test_ws2812$ nrfutil device fw-update
error: unrecognized subcommand 'fw-update'

Usage: nrfutil device [OPTIONS] [COMMAND]

For more information, try '--help'.
vincent@VM-Kubuntu-23:~/work/WX/nrf_test_ws2812$ nrfutil device recover
❌ Failed to recover 1052078938, Device error: Failed to write DebugPort register 0x08: Unknown error in the J-Link DLL (error code =-1)                                                                                                                         Error: One or more recover tasks failed:
* 1052078938: Device error: Failed to write DebugPort register 0x08: Unknown error in the J-Link DLL (error code =-1) (Generic)

vincent@VM-Kubuntu-23:~/work/WX/nrf_test_ws2812$ nrfutil device recover
❌ Failed to recover 1052078938, Device error: Unable to recognize the device: Unknown part number 0x91590009                                                                                                                                                    Error: One or more recover tasks failed:
* 1052078938: Device error: Unable to recognize the device: Unknown part number 0x91590009  (Generic)

vincent@VM-Kubuntu-23:~/work/WX/nrf_test_ws2812$ nrfutil device recover
❌ Failed to recover 1052078938, Device error: NVMC Failed to write to NVMC.CONFIG:  failed: Failed to read from memory address 0x50003108: Failed to write DebugPort register 0x08: Unknown error in the J-Link DLL (error code =-1)                            Error: One or more recover tasks failed:
* 1052078938: Device error: NVMC Failed to write to NVMC.CONFIG:  failed: Failed to read from memory address 0x50003108: Failed to write DebugPort register 0x08: Unknown error in the J-Link DLL (error code =-1) (Generic)

vincent@VM-Kubuntu-23:~/work/WX/nrf_test_ws2812$ nrfutil device recover
❌ Failed to recover 1052078938, Device error: Failed to read AccessPort register 0xfc: Unknown error in the J-Link DLL (error code =-1)                                                                                                                         Error: One or more recover tasks failed:
* 1052078938: Device error: Failed to read AccessPort register 0xfc: Unknown error in the J-Link DLL (error code =-1) (Generic)

vincent@VM-Kubuntu-23:~/work/WX/nrf_test_ws2812$ nrfutil device recover
❌ Failed to recover 1052078938, Device error: Failed to read AccessPort register 0x08: Unknown error in the J-Link DLL (error code =-1)                                                                                                                         Error: One or more recover tasks failed:
* 1052078938: Device error: Failed to read AccessPort register 0x08: Unknown error in the J-Link DLL (error code =-1) (Generic)

vincent@VM-Kubuntu-23:~/work/WX/nrf_test_ws2812$ nrfutil device recover --swd-clock-frequency 100
❌ Failed to recover 1052078938, Device error: Failed to read AccessPort register 0x34: Unknown error in the J-Link DLL (error code =-1)                                                                                                                         Error: One or more recover tasks failed:
* 1052078938: Device error: Failed to read AccessPort register 0x34: Unknown error in the J-Link DLL (error code =-1) (Generic)

vincent@VM-Kubuntu-23:~/work/WX/nrf_test_ws2812$ nrfutil device recover --swd-clock-frequency 10
❌ Failed to recover 1052078938, Device error: Setting the debug port SELECT register failed while powering up sys and debug regions (Unknown error in the J-Link DLL (error code =-1)).                                                                         Error: One or more recover tasks failed:
* 1052078938: Device error: Setting the debug port SELECT register failed while powering up sys and debug regions (Unknown error in the J-Link DLL (error code =-1)).

   This might indicate that the debug port is unavailable. Double-check device power supply and SWD lines, and ensure that SWD is not disabled (Generic)

vincent@VM-Kubuntu-23:~/work/WX/nrf_test_ws2812$ nrfutil device recover --swd-clock-frequency 20
❌ Failed to recover 1052078938, Device error: Setting the debug port SELECT register failed while powering up sys and debug regions (Unknown error in the J-Link DLL (error code =-1)).                                                                         Error: One or more recover tasks failed:
* 1052078938: Device error: Setting the debug port SELECT register failed while powering up sys and debug regions (Unknown error in the J-Link DLL (error code =-1)).

   This might indicate that the debug port is unavailable. Double-check device power supply and SWD lines, and ensure that SWD is not disabled (Generic)

vincent@VM-Kubuntu-23:~/work/WX/nrf_test_ws2812$ nrfutil device recover --swd-clock-frequency 30
❌ Failed to recover 1052078938, Device error: Setting the debug port SELECT register failed while powering up sys and debug regions (Unknown error in the J-Link DLL (error code =-1)).                                                                         Error: One or more recover tasks failed:
* 1052078938: Device error: Setting the debug port SELECT register failed while powering up sys and debug regions (Unknown error in the J-Link DLL (error code =-1)).

   This might indicate that the debug port is unavailable. Double-check device power supply and SWD lines, and ensure that SWD is not disabled (Generic)

vincent@VM-Kubuntu-23:~/work/WX/nrf_test_ws2812$ nrfutil device recover --swd-clock-frequency 50
❌ Failed to recover 1052078938, Device error: Setting the debug port SELECT register failed while powering up sys and debug regions (Unknown error in the J-Link DLL (error code =-1)).                                                                         Error: One or more recover tasks failed:
* 1052078938: Device error: Setting the debug port SELECT register failed while powering up sys and debug regions (Unknown error in the J-Link DLL (error code =-1)).

   This might indicate that the debug port is unavailable. Double-check device power supply and SWD lines, and ensure that SWD is not disabled (Generic)

vincent@VM-Kubuntu-23:~/work/WX/nrf_test_ws2812$ nrfutil device recover --swd-clock-frequency 100
❌ Failed to recover 1052078938, Device error: Setting the debug port SELECT register failed while powering up sys and debug regions (Unknown error in the J-Link DLL (error code =-1)).                                                                         Error: One or more recover tasks failed:
* 1052078938: Device error: Setting the debug port SELECT register failed while powering up sys and debug regions (Unknown error in the J-Link DLL (error code =-1)).

   This might indicate that the debug port is unavailable. Double-check device power supply and SWD lines, and ensure that SWD is not disabled (Generic)

vincent@VM-Kubuntu-23:~/work/WX/nrf_test_ws2812$ nrfutil device recover
❌ Failed to recover 1052078938, Device error: Emulator error: Failed to connect to device: Unable to detect a supported core                                                                                                                                    Error: One or more recover tasks failed:
* 1052078938: Device error: Emulator error: Failed to connect to device: Unable to detect a supported core (Generic)

vincent@VM-Kubuntu-23:~/work/WX/nrf_test_ws2812$ nrfutil device recover
❌ Failed to recover 1052078938, Device error: Memory access error at 0x50039e10. Probably a memory protection issue. Probe access is Secure                                                                                                                     Error: One or more recover tasks failed:
* 1052078938: Device error: Memory access error at 0x50039e10. Probably a memory protection issue. Probe access is Secure (Generic)

vincent@VM-Kubuntu-23:~/work/WX/nrf_test_ws2812$ nrfutil device recover
❌ Failed to recover 1052078938, Device error: Failed to read AccessPort register 0x00: Unknown error in the J-Link DLL (error code =-1)                                                                                                                         Error: One or more recover tasks failed:
* 1052078938: Device error: Failed to read AccessPort register 0x00: Unknown error in the J-Link DLL (error code =-1) (Generic)

vincent@VM-Kubuntu-23:~/work/WX/nrf_test_ws2812$ nrfutil device recover --family nrf91
❌ Failed to recover 1052078938, Device error: Failed to read from memory address 0x500038e4: Failed to write DebugPort register 0x08: Unknown error in the J-Link DLL (error code =-1)                                                                          Error: One or more recover tasks failed:
* 1052078938: Device error: Failed to read from memory address 0x500038e4: Failed to write DebugPort register 0x08: Unknown error in the J-Link DLL (error code =-1) (Generic)

vincent@VM-Kubuntu-23:~/work/WX/nrf_test_ws2812$ nrfutil device recover --family nrf91
❌ Failed to recover 1052078938, Device error: Setting the debug port SELECT register failed while powering up sys and debug regions (Unknown error in the J-Link DLL (error code =-1)).                                                                         Error: One or more recover tasks failed:
* 1052078938: Device error: Setting the debug port SELECT register failed while powering up sys and debug regions (Unknown error in the J-Link DLL (error code =-1)).

   This might indicate that the debug port is unavailable. Double-check device power supply and SWD lines, and ensure that SWD is not disabled (Generic)

vincent@VM-Kubuntu-23:~/work/WX/nrf_test_ws2812$ nrfutil device recover --family nrf91
❌ Failed to recover 1052078938, Device error: Memory access error at 0x50039e10. Probably a memory protection issue. Probe access is Secure                                                                                                                     Error: One or more recover tasks failed:
* 1052078938: Device error: Memory access error at 0x50039e10. Probably a memory protection issue. Probe access is Secure (Generic)

vincent@VM-Kubuntu-23:~/work/WX/nrf_test_ws2812$ nrfutil device recover
❌ Failed to recover 1052078938, Device error: Memory access error at 0x00000000. Probably a memory protection issue. Probe access is Secure                                                                                                                     Error: One or more recover tasks failed:
* 1052078938: Device error: Memory access error at 0x00000000. Probably a memory protection issue. Probe access is Secure (Generic)


vincent@VM-Kubuntu-23:~/work/WX/nrf_test_ws2812$ nrfutil device recover --x-force-device NRF9151_xxxx_REV3
❌ Failed to recover 1052078938, Device error: Unable to recognize the device: The device NRF9151_xxxx_REV3 does not correspond to any known device in thError: One or more recover tasks failed:
* 1052078938: Device error: Unable to recognize the device: The device NRF9151_xxxx_REV3 does not correspond to any known device in the device database  (Generic)

vincent@VM-Kubuntu-23:~/work/WX/nrf_test_ws2812$ nrfutil device recover --x-force-device NRF9151
❌ Failed to recover 1052078938, Device error: Failed to write AccessPort register 0x00: Unknown error in the J-Link DLL (error code =-1)                Error: One or more recover tasks failed:
* 1052078938: Device error: Failed to write AccessPort register 0x00: Unknown error in the J-Link DLL (error code =-1) (Generic)

vincent@VM-Kubuntu-23:~/work/WX/nrf_test_ws2812$ nrfutil device recover --x-force-device NRF9151
❌ Failed to recover 1052078938, Device error: TrustZone Flash access error. Probe has Secure access                                                     Error: One or more recover tasks failed:
* 1052078938: Device error: TrustZone Flash access error. Probe has Secure access (Generic)

vincent@VM-Kubuntu-23:~/work/WX/nrf_test_ws2812$
