nrfutil device list command fails

I just freshly (Nov 25, 2024) installed the nrfutil 'core' exe and the nrfutil device command.

I try to list my nrf devices (a nrf52840 dongle is connected and another nrf52840 through jlink), but the command fails:

$ nrfutil device list
thread '<unnamed>' panicked at src\serialport\module\src\windows.rs:118:55:
called `Option::unwrap()` on a `None` value
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread '<unnamed>' panicked at core\src\panicking.rs:221:5:
panic in a function that cannot unwind
stack backtrace:
0: 0x7ffcc9b646a1 - nrfdl_plugin_identifier
1: 0x7ffcc9b760d9 - nrfdl_plugin_identifier
2: 0x7ffcc9b62de7 - nrfdl_plugin_identifier
3: 0x7ffcc9b65ea9 - nrfdl_plugin_identifier
4: 0x7ffcc9b65a2c - nrfdl_plugin_identifier
5: 0x7ffcc9b66722 - nrfdl_plugin_identifier
6: 0x7ffcc9b665bf - nrfdl_plugin_identifier
7: 0x7ffcc9b64def - nrfdl_plugin_identifier
8: 0x7ffcc9b66206 - nrfdl_plugin_identifier
9: 0x7ffcc9b84e6d - nrfdl_plugin_identifier
10: 0x7ffcc9b84f13 - nrfdl_plugin_identifier
11: 0x7ffcc9b84fab - nrfdl_plugin_identifier
12: 0x7ffcc9a6dcab - nrfdl_plugin_enumerate
13: 0x7ffcf43b1060 - <unknown>
14: 0x7ffcf43b4d38 - is_exception_typeof
15: 0x7ffd491149c6 - RtlCaptureContext2
16: 0x7ffcc9a6d946 - nrfdl_plugin_enumerate
17: 0x7ffd0f02933a - <unknown>
18: 0x7ffd0f0268bd - <unknown>
19: 0x7ffd0f023e86 - <unknown>
20: 0x7ffd0f023b6f - <unknown>
21: 0x7ffd0f004553 - <unknown>
22: 0x7ffd0f024822 - <unknown>
23: 0x7ffd0f027e03 - <unknown>
24: 0x7ffd0f004e64 - <unknown>
25: 0x7ffd0f003918 - <unknown>
26: 0x7ffd1da229a9 - Concurrency::details::_Schedule_chore
27: 0x7ffd490d287a - RtlHashUnicodeString
28: 0x7ffd490a5e46 - RtlClearThreadWorkOnBehalfTicket
29: 0x7ffd46ee257d - BaseThreadInitThunk
30: 0x7ffd490caf08 - RtlUserThreadStart
thread caused non-unwinding panic. aborting.
Error: Subprocess C:\Users\ronaldh\.nrfutil\bin\nrfutil-device.exe failed with unexpected exit code Some(-1073740791)

Setting the RUST_BACKTRACE env-var produces the extra:

Stack backtrace:
0: git_odb_object_data
1: git_odb_object_data
2: git_midx_writer_new
3: <unknown>
4: <unknown>
5: <unknown>
6: <unknown>
7: git_odb_object_data
8: <unknown>
9: git_midx_writer_new
10: BaseThreadInitThunk
11: RtlUserThreadStart

Unplugging either or both connected nrf devices from USB doesn't change the behavior.

What gives?

NOTE: programming the nrf52840 dongle using the programmer tool in "nrf connect desktop" is just fine.

Parents Reply Children
  • I ran the command with --log-level trace and attached the logs: nrfutil-device.log

    [2024-11-25T09:15:27.658Z] [nrfutil] INFO - nrfutil (version = 7.12.0, platform = x86_64-pc-windows-msvc) invoked with self-upgrade --from-tarball C:\Users\ronaldh\.nrfutil\bootstrap\nrfutil-core-install-vbYCq2\nrfutil-x86_64-pc-windows-msvc-7.12.0.tar.gz 
    [2024-11-25T09:15:27.899Z] [nrfutil] INFO - nrfutil (version = 7.12.0, platform = x86_64-pc-windows-msvc) invoked with install device 
    [2024-11-25T09:16:41.331Z] [nrfutil] INFO - nrfutil (version = 7.12.0, platform = x86_64-pc-windows-msvc) invoked with device list 
    [2024-11-25T09:27:53.247Z] [nrfutil] INFO - nrfutil (version = 7.12.0, platform = x86_64-pc-windows-msvc) invoked with self-update 
    [2024-11-25T09:28:05.894Z] [nrfutil] INFO - nrfutil (version = 7.12.0, platform = x86_64-pc-windows-msvc) invoked with list 
    [2024-11-25T09:28:49.538Z] [nrfutil] INFO - nrfutil (version = 7.12.0, platform = x86_64-pc-windows-msvc) invoked with install self-update 
    [2024-11-25T09:29:05.842Z] [nrfutil] INFO - nrfutil (version = 7.12.0, platform = x86_64-pc-windows-msvc) invoked with help 
    [2024-11-25T09:31:21.906Z] [nrfutil] INFO - nrfutil (version = 7.12.0, platform = x86_64-pc-windows-msvc) invoked with device 
    [2024-11-25T09:31:42.062Z] [nrfutil] INFO - nrfutil (version = 7.12.0, platform = x86_64-pc-windows-msvc) invoked with device list 
    [2024-11-25T09:39:39.080Z] [nrfutil] INFO - nrfutil (version = 7.12.0, platform = x86_64-pc-windows-msvc) invoked with device list 
    [2024-11-25T09:39:55.027Z] [nrfutil] INFO - nrfutil (version = 7.12.0, platform = x86_64-pc-windows-msvc) invoked with device list 
    [2024-11-25T09:40:00.924Z] [nrfutil] INFO - nrfutil (version = 7.12.0, platform = x86_64-pc-windows-msvc) invoked with device list 
    [2024-11-25T09:45:27.435Z] [nrfutil] INFO - nrfutil (version = 7.12.0, platform = x86_64-pc-windows-msvc) invoked with device list 
    [2024-11-25T15:10:47.990Z] [nrfutil] INFO - nrfutil (version = 7.12.0, platform = x86_64-pc-windows-msvc) invoked with version 
    [2024-11-25T15:10:57.538Z] [nrfutil] INFO - nrfutil (version = 7.12.0, platform = x86_64-pc-windows-msvc) invoked with --version 
    [2024-11-25T15:12:37.947Z] [nrfutil] INFO - nrfutil (version = 7.12.0, platform = x86_64-pc-windows-msvc) invoked with device --version 
    [2024-11-25T15:15:25.863Z] [nrfutil] INFO - nrfutil (version = 7.12.0, platform = x86_64-pc-windows-msvc) invoked with device list 
    [2024-11-26T14:37:51.029Z] [nrfutil] INFO - nrfutil (version = 7.12.0, platform = x86_64-pc-windows-msvc) invoked with device list 
    [2024-11-27T12:10:57.225Z] [nrfutil] INFO - nrfutil (version = 7.12.0, platform = x86_64-pc-windows-msvc) invoked with --version 
    [2024-11-27T12:11:08.779Z] [nrfutil] INFO - nrfutil (version = 7.12.0, platform = x86_64-pc-windows-msvc) invoked with --version 
    [2024-11-27T12:16:01.014Z] [nrfutil] INFO - nrfutil (version = 7.12.0, platform = x86_64-pc-windows-msvc) invoked with device list 
    [2024-11-27T12:17:32.876Z] [nrfutil] INFO - nrfutil (version = 7.12.0, platform = x86_64-pc-windows-msvc) invoked with device list 
    [2024-11-27T12:18:37.616Z] [nrfutil] INFO - nrfutil (version = 7.12.0, platform = x86_64-pc-windows-msvc) invoked with device list 
    [2024-11-27T12:20:32.465Z] [nrfutil] INFO - nrfutil (version = 7.12.0, platform = x86_64-pc-windows-msvc) invoked with device list 
    [2024-11-27T12:25:59.466Z] [nrfutil] INFO - nrfutil (version = 7.12.0, platform = x86_64-pc-windows-msvc) invoked with device list 
    [2024-11-27T12:26:24.535Z] [nrfutil] INFO - nrfutil (version = 7.12.0, platform = x86_64-pc-windows-msvc) invoked with device list 
    [2024-11-28T09:39:39.581Z] [nrfutil] INFO - nrfutil (version = 7.12.0, platform = x86_64-pc-windows-msvc) invoked with list 
    [2024-11-28T09:41:22.350Z] [nrfutil] INFO - nrfutil (version = 7.12.0, platform = x86_64-pc-windows-msvc) invoked with list --outdated 
    [2024-11-28T09:41:52.209Z] [nrfutil] INFO - nrfutil (version = 7.12.0, platform = x86_64-pc-windows-msvc) invoked with upgrade 
    [2024-11-28T09:42:20.231Z] [nrfutil] INFO - nrfutil (version = 7.12.0, platform = x86_64-pc-windows-msvc) invoked with device list 
    [2024-11-28T09:44:06.578Z] [nrfutil] INFO - nrfutil (version = 7.12.0, platform = x86_64-pc-windows-msvc) invoked with device --version 
    [2024-11-28T09:49:34.861Z] [nrfutil] INFO - nrfutil (version = 7.12.0, platform = x86_64-pc-windows-msvc) invoked with device list 
    [2024-11-28T09:53:45.170Z] [nrfutil] INFO - nrfutil (version = 7.12.0, platform = x86_64-pc-windows-msvc) invoked with device list 
    [2024-12-06T08:34:11.053Z] [nrfutil] INFO - nrfutil (version = 7.12.0, platform = x86_64-pc-windows-msvc) invoked with list 
    [2024-12-06T08:34:37.023Z] [nrfutil] INFO - nrfutil (version = 7.12.0, platform = x86_64-pc-windows-msvc) invoked with device list 
    [2024-12-09T13:27:13.617Z] [nrfutil] INFO - nrfutil (version = 7.12.0, platform = x86_64-pc-windows-msvc) invoked with install ble-sniffer 
    [2024-12-12T09:34:27.057Z] [nrfutil] INFO - nrfutil (version = 7.12.0, platform = x86_64-pc-windows-msvc) invoked with list 
    [2024-12-12T09:34:41.055Z] [nrfutil] INFO - nrfutil (version = 7.12.0, platform = x86_64-pc-windows-msvc) invoked with update 
    [2024-12-12T09:35:02.254Z] [nrfutil] INFO - nrfutil (version = 7.12.0, platform = x86_64-pc-windows-msvc) invoked with device update 
    [2024-12-12T09:35:17.295Z] [nrfutil] INFO - nrfutil (version = 7.12.0, platform = x86_64-pc-windows-msvc) invoked with help 
    [2024-12-12T09:35:51.030Z] [nrfutil] INFO - nrfutil (version = 7.12.0, platform = x86_64-pc-windows-msvc) invoked with upgrade 
    [2024-12-12T09:36:12.063Z] [nrfutil] INFO - nrfutil (version = 7.12.0, platform = x86_64-pc-windows-msvc) invoked with device list 
    [2024-12-12T09:46:47.618Z] [nrfutil] INFO - nrfutil (version = 7.12.0, platform = x86_64-pc-windows-msvc) invoked with device list 
    [2024-12-18T16:46:29.908Z] [nrfutil] INFO - nrfutil (version = 7.12.0, platform = x86_64-pc-windows-msvc) invoked with device list 
    [2024-12-19T08:20:32.017Z] [nrfutil] INFO - nrfutil (version = 7.12.0, platform = x86_64-pc-windows-msvc) invoked with device list 
    [2024-12-19T08:20:59.292Z] [nrfutil] INFO - nrfutil (version = 7.12.0, platform = x86_64-pc-windows-msvc) invoked with device list 
    [2025-02-13T15:00:26.459Z] [nrfutil] INFO - nrfutil (version = 7.12.0, platform = x86_64-pc-windows-msvc) invoked with 
    [2025-02-13T15:00:40.783Z] [nrfutil] INFO - nrfutil (version = 7.12.0, platform = x86_64-pc-windows-msvc) invoked with list 
    [2025-02-13T15:00:55.468Z] [nrfutil] INFO - nrfutil (version = 7.12.0, platform = x86_64-pc-windows-msvc) invoked with upgrade device 
    [2025-02-13T15:01:37.922Z] [nrfutil] INFO - nrfutil (version = 7.12.0, platform = x86_64-pc-windows-msvc) invoked with device list 
    [2025-02-13T15:03:19.778Z] [nrfutil] INFO - nrfutil (version = 7.12.0, platform = x86_64-pc-windows-msvc) invoked with device list 
    [2025-02-13T15:03:46.711Z] [nrfutil] INFO - nrfutil (version = 7.12.0, platform = x86_64-pc-windows-msvc) invoked with device list 
    [2025-02-13T15:24:34.970Z] [nrfutil] INFO - nrfutil (version = 7.12.0, platform = x86_64-pc-windows-msvc) invoked with device list 
    [2025-02-13T15:26:25.865Z] [nrfutil] INFO - nrfutil (version = 7.12.0, platform = x86_64-pc-windows-msvc) invoked with device list 
    [2025-02-13T15:26:46.233Z] [nrfutil] INFO - nrfutil (version = 7.12.0, platform = x86_64-pc-windows-msvc) invoked with device list 
    [2025-02-18T08:23:03.585Z] [nrfutil] INFO - nrfutil (version = 7.12.0, platform = x86_64-pc-windows-msvc) invoked with device list 
    [2025-02-18T08:23:20.525Z] [nrfutil] INFO - nrfutil (version = 7.12.0, platform = x86_64-pc-windows-msvc) invoked with device list --log-level trace 
    

  • Additionally as a reference, here is the lsusb -v of the samsung phone that makes nrfutil device list fail:

    lsusb -v -s 1:44


    Bus 001 Device 044: ID 04e8:6860 Samsung Electronics Co., Ltd Galaxy series, misc. (MTP mode)
    Couldn't open device, some information will be missing
    Device Descriptor:
      bLength                18
      bDescriptorType         1
      bcdUSB               2.00
      bDeviceClass            0
      bDeviceSubClass         0
      bDeviceProtocol         0
      bMaxPacketSize0        64
      idVendor           0x04e8 Samsung Electronics Co., Ltd
      idProduct          0x6860 Galaxy series, misc. (MTP mode)
      bcdDevice            4.04
      iManufacturer           1 SAMSUNG
      iProduct                2 SAMSUNG_Android
      iSerial                 3 R9WWB0G0KBT
      bNumConfigurations      1
      Configuration Descriptor:
        bLength                 9
        bDescriptorType         2
        wTotalLength       0x0071
        bNumInterfaces          3
        bConfigurationValue     1
        iConfiguration          4
        bmAttributes         0x80
          (Bus Powered)
        MaxPower              500mA
        Interface Descriptor:
          bLength                 9
          bDescriptorType         4
          bInterfaceNumber        0
          bAlternateSetting       0
          bNumEndpoints           3
          bInterfaceClass         6 Imaging
          bInterfaceSubClass      1 Still Image Capture
          bInterfaceProtocol      1 Picture Transfer Protocol (PIMA 15470)
          iInterface              5
          Endpoint Descriptor:
            bLength                 7
            bDescriptorType         5
            bEndpointAddress     0x81  EP 1 IN
            bmAttributes            2
              Transfer Type            Bulk
              Synch Type               None
              Usage Type               Data
            wMaxPacketSize     0x0200  1x 512 bytes
            bInterval               0
          Endpoint Descriptor:
            bLength                 7
            bDescriptorType         5
            bEndpointAddress     0x01  EP 1 OUT
            bmAttributes            2
              Transfer Type            Bulk
              Synch Type               None
              Usage Type               Data
            wMaxPacketSize     0x0200  1x 512 bytes
            bInterval               0
          Endpoint Descriptor:
            bLength                 7
            bDescriptorType         5
            bEndpointAddress     0x82  EP 2 IN
            bmAttributes            3
              Transfer Type            Interrupt
              Synch Type               None
              Usage Type               Data
            wMaxPacketSize     0x001c  1x 28 bytes
            bInterval               6
        Interface Association:
          bLength                 8
          bDescriptorType        11
          bFirstInterface         1
          bInterfaceCount         2
          bFunctionClass          2 Communications
          bFunctionSubClass       2 Abstract (modem)
          bFunctionProtocol       1 AT-commands (v.25ter)
          iFunction               8
        Interface Descriptor:
          bLength                 9
          bDescriptorType         4
          bInterfaceNumber        1
          bAlternateSetting       0
          bNumEndpoints           1
          bInterfaceClass         2 Communications
          bInterfaceSubClass      2 Abstract (modem)
          bInterfaceProtocol      1 AT-commands (v.25ter)
          iInterface              6
          CDC Header:
            bcdCDC               1.10
          CDC Call Management:
            bmCapabilities       0x00
            bDataInterface          2
          CDC ACM:
            bmCapabilities       0x02
              line coding and serial state
          CDC Union:
            bMasterInterface        1
            bSlaveInterface         2
          Endpoint Descriptor:
            bLength                 7
            bDescriptorType         5
            bEndpointAddress     0x84  EP 4 IN
            bmAttributes            3
              Transfer Type            Interrupt
              Synch Type               None
              Usage Type               Data
            wMaxPacketSize     0x000a  1x 10 bytes
            bInterval               9
        Interface Descriptor:
          bLength                 9
          bDescriptorType         4
          bInterfaceNumber        2
          bAlternateSetting       0
          bNumEndpoints           2
          bInterfaceClass        10 CDC Data
          bInterfaceSubClass      0
          bInterfaceProtocol      0
          iInterface              7
          Endpoint Descriptor:
            bLength                 7
            bDescriptorType         5
            bEndpointAddress     0x83  EP 3 IN
            bmAttributes            2
              Transfer Type            Bulk
              Synch Type               None
              Usage Type               Data
            wMaxPacketSize     0x0200  1x 512 bytes
            bInterval               0
          Endpoint Descriptor:
            bLength                 7
            bDescriptorType         5
            bEndpointAddress     0x02  EP 2 OUT
            bmAttributes            2
              Transfer Type            Bulk
              Synch Type               None
              Usage Type               Data
            wMaxPacketSize     0x0200  1x 512 bytes
            bInterval               0
          UNRECOGNIZED CDC:  08 24 80 0c 00 01 00 01

  • Hi,

    Can you try to update your "nrfutil device" to the newest version and retake logs if problem persists?

    Best regards,
    Dejan

  • The 2.7.16 version of nrfutil-device solves the problem! Thanks.

    Here is the --loglevel trace: 2251.nrfutil-device.log

  • Hi,

    Ronald Hoogenboom said:
    The 2.7.16 version of nrfutil-device solves the problem! Thanks.

    This is great to hear. Thank you for this update.

    Best regards,
    Dejan

Related