Failed to erase device (nRF9151-DK) when programming via nRF Connect for Desktop

I get the following error when trying to program the device:

The log shows this:

2025-12-10T09:08:50.194Z INFO Initialising the bundled nrfutil device
2025-12-10T09:08:50.228Z DEBUG Started watching devices
2025-12-10T09:08:51.282Z INFO Using the bundled core version for nrfutil device: 8.1.1
2025-12-10T09:08:51.337Z INFO Using nrfutil-device version: 2.10.2
2025-12-10T09:08:51.338Z INFO Using nrf-device-lib version: 0.17.71
2025-12-10T09:08:51.340Z INFO Using nrf-probe version: 0.38.0
2025-12-10T09:08:51.340Z INFO Using JLink version: JLink_V8.76
2025-12-10T09:08:51.343Z INFO Your version of SEGGER J-Link (8.76) is newer than the one this app was tested with (8.18). The tested version is not required, and your J-Link version will most likely work fine. If you get issues related to J-Link with your devices, use the tested version.
2025-12-10T09:09:05.294Z DEBUG Selected device: nRF9151 DK
2025-12-10T09:09:05.856Z DEBUG Changed step: Info
2025-12-10T09:09:12.013Z DEBUG Changed step: Rename
2025-12-10T09:10:00.777Z DEBUG Changed step: Program

Is there a way to resolve this?

Initially I was already unable to find the device via Visual Studio (with the nrf extensions). It says no devices found in Connected Devices although it does find the device via nrfutil. I get a warning about the legacy USB drivers being missing. I did do the Segger J-Link installation with the legacy USB driver checkbox enabled but for some reason it is unable to find them.

This is the reason I went to the nRF Connect for Desktop application to see if I could at least connect to and program the device from there.

  • Hi Samuel,

    Can you try running this command "JLink_Windows_V876_x86_64.exe -InstUSBDriver=1" it should install the USB drivers.

    Best regards,

    Simon D-M

  • Hi Simon,

    Thanks for the reply. I did this, it just runs the same installer but pre-selects the checkbox for me. After installation both nRF Connect for Desktop and Visual Studio are still unable to find the drivers.

  • Some additional information. When I try to manually set the driver for the board in windows Device Manager it refuses to accept the drivers in C:\Program Files\SEGGER\JLink_V876\USBDriver\x64. Are these the correct ones? If so, I wonder whether there is something wrong with the hardware ID. Based on what I have read, the hardware ID needs to match one of the ones listed in the .inf file. 

    Here are the hardware IDs of my board:

  • Have you tried rebooting your computer ? Also, you can try completely uninstalling J-Link and reinstalling it.

    Otherwise, you can also try to uninstall everything and reinstalling it while following this guide on how to install nRF Connect SDK and VS Code. As it is the recommended way of doing it.

    Tell me if you still have issue after that. Hopefully this will do the trick.

    Best regards,

    Simon D-M

  • Hi,

    SamuelAustin said:
    When I try to manually set the driver for the board in windows Device Manager it refuses to accept the drivers in C:\Program Files\SEGGER\JLink_V876\USBDriver\x64. Are these the correct ones?

    When I check the drivers in use for my device, I get that.

    I also tried uninstalling J-Link and reinstalling it without the legacy USB drivers, but it still works. I can't reproduce the issue on my side.

    SamuelAustin said:
    If so, I wonder whether there is something wrong with the hardware ID. Based on what I have read, the hardware ID needs to match one of the ones listed in the .inf file. 

    Your hardware ID seems fine. I have almost the same, it is just the PID that is slightly different (1069) but it probably is that I am using a different version of the board or something like that.

    Another thing you can try, if you suspect the board of failing, is to recover the board by using nrfutil download it and install the device module with the command "nrfutil.exe install device" and then try to recover the DK with the command "nrfutil.exe device recover". 

    Best regards,

    Simon D-M

Related