This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

JLINKARM_DLL_COULD_NOT_BE_OPENED

OS: Ununtu 20.3 LTS - Kernel: 5.4.0-109-generic

Software: Power Profiler launched through nRF Connect for Desktop v3.11.0

Hardware: Power Profiler Kit II

Problem: Cannot connect to PPK2

When I open Power Profiler I get an error: Failed to get the library versions: JLINKARM_DLL_COULD_NOT_BE_OPENED (Origin: "Failed to get module versions.")

Linux itself picks up the device as follows:

[ 3461.245809] usb 1-4: new full-speed USB device number 5 using xhci_hcd
[ 3461.581567] usb 1-4: New USB device found, idVendor=1915, idProduct=c00a, bcdDevice= 1.00
[ 3461.581571] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 3461.581574] usb 1-4: Product: PPK2
[ 3461.581576] usb 1-4: Manufacturer: Nordic Semiconductor
[ 3461.581578] usb 1-4: SerialNumber: DB2BFA1BC4C2
[ 3461.617423] cdc_acm 1-4:1.1: ttyACM0: USB ACM device
[ 3461.619424] usbcore: registered new interface driver cdc_acm
[ 3461.619425] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters

systemd gives the following coredump:

PID: 35689 (nrfconnect)
UID: 0 (root)
GID: 0 (root)
Signal: 5 (TRAP)
Timestamp: Tue 2022-04-19 19:01:00 SAST (24h ago)
Command Line: /tmp/.mount_nrfconbY3LnQ/nrfconnect
Executable: /tmp/.mount_nrfconbY3LnQ/nrfconnect
Control Group: /user.slice/user-1000.slice/[email protected]/apps.slice/apps-org.gnome.Terminal.slice/vte-spawn-a0ba016c-0170-4e85-ab33-ccd9e42da6eb.scope
Unit: [email protected]
User Unit: vte-spawn-a0ba016c-0170-4e85-ab33-ccd9e42da6eb.scope
Slice: user-1000.slice
Owner UID: 1000 (ernst)
Boot ID: 98fd9a43018e441e963214193a048de0
Machine ID: 09143d0261be487380a9ec9bf41d5922
Hostname: ernst
Storage: /var/lib/systemd/coredump/core.nrfconnect.0.98fd9a43018e441e963214193a048de0.35689.1650387660000000000000.lz4
Message: Process 35689 (nrfconnect) of user 0 dumped core.

Stack trace of thread 35689:
#0 0x000055645b12ace3 n/a (/tmp/.mount_nrfconbY3LnQ/nrfconnect + 0x4685ce3)
#1 0x0000556458895f98 n/a (/tmp/.mount_nrfconbY3LnQ/nrfconnect + 0x1df0f98)
#2 0x000055645963294c n/a (/tmp/.mount_nrfconbY3LnQ/nrfconnect + 0x2b8d94c)
#3 0x00005564596312e3 n/a (/tmp/.mount_nrfconbY3LnQ/nrfconnect + 0x2b8c2e3)
#4 0x0000556459631432 n/a (/tmp/.mount_nrfconbY3LnQ/nrfconnect + 0x2b8c432)
#5 0x0000556458892f0e n/a (/tmp/.mount_nrfconbY3LnQ/nrfconnect + 0x1dedf0e)
#6 0x00007f92505530b3 __libc_start_main (libc.so.6 + 0x240b3)
#7 0x000055645858a96a n/a (/tmp/.mount_nrfconbY3LnQ/nrfconnect + 0x1ae596a)

  • Hi,

    What version of nfjprog and JLink do you have installed? You can find this by running 'nrfjprog --version'. If you do not have nrfjprog v10.15.4 and JLink v7.58b please try installing or updating to these versions and see if this solves the issue.

    Best regards,

    Marte

  • Thanks, I had nrfjprog installed, but the command nrfjprog -- version showed:

    nrfjprog --version
    ERROR: JLinkARM DLL load failed. Try again. If it keeps failing, please
    ERROR: reinstall latest JLinkARM from Segger webpage.
    NOTE: For additional output, try running again with logging enabled (--log).
    NOTE: Any generated log error messages will be displayed.

    I installed JLink v7.58b and now it starts without errors and Power Profiler shows:

    21:09:17.274    Using nrf-device-lib-js version: 0.4.5
    21:09:17.274    Using nrf-device-lib version: 0.11.0
    21:09:17.274    Using nrfjprog DLL version: 10.15.1
    21:09:17.274    Using JLink version: JLink_V7.58b

    When I however click on "SELECT DEVICE" the PPK2 is not listed.  The screen displays "Connect a Nordic development kit to your computer".  Linux did pickup the PPK2 when I connected the device as follows:

    [ 3709.425093] usb 1-4: USB disconnect, device number 6
    [ 3715.999059] usb 1-4: new full-speed USB device number 7 using xhci_hcd
    [ 3716.327105] usb 1-4: New USB device found, idVendor=1915, idProduct=c00a, bcdDevice= 1.00
    [ 3716.327109] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [ 3716.327111] usb 1-4: Product: PPK2
    [ 3716.327113] usb 1-4: Manufacturer: Nordic Semiconductor
    [ 3716.327115] usb 1-4: SerialNumber: DB2BFA1BC4C2
    [ 3716.345998] cdc_acm 1-4:1.1: ttyACM0: USB ACM device

  • Hi,

    Can you gather logs from Power Profiler with verbose logging enabled?

    1. Make sure PPK2 is connected to your computer
    2. In Power Profiler go to the 'About' tab and enable verbose logging
    3. Select 'Restart with verbose logging'
    4. After the app restarts click on 'open log file' at the bottom of the terminal.
    5. Either save the log file somewhere and upload it here with Insert -> Image/video/file, or copy the contents of the log file and go to Insert -> Code then paste the log there.

    Best regards,

    Marte

  • 2022-04-22T15:47:28.922Z DEBUG Application data folder: /home/ernst/.config/nrfconnect/pc-nrfconnect-ppk
    2022-04-22T15:47:29.293Z DEBUG iface: wlxd8eb9715f4de
    2022-04-22T15:47:29.293Z DEBUG IP4: 192.168.0.175
    2022-04-22T15:47:29.294Z DEBUG IP6: fe80::6d13:88d5:40f9:e8e2
    2022-04-22T15:47:29.294Z DEBUG MAC: d8:eb:97:15:f4:de
    2022-04-22T15:47:29.296Z DEBUG Client Id: d4d6150c6ee12f569fda873000e7baea2bd7f2f1
    2022-04-22T15:47:29.298Z DEBUG Google Analytics for category pc-nrfconnect-ppk has initialized
    2022-04-22T15:47:29.376Z INFO Using nrf-device-lib-js version: 0.4.5
    2022-04-22T15:47:29.376Z INFO Using nrf-device-lib version: 0.11.0
    2022-04-22T15:47:29.376Z INFO Using nrfjprog DLL version: 10.15.1
    2022-04-22T15:47:29.376Z INFO Using JLink version: JLink_V7.58b
    2022-04-22T15:47:29.380Z VERBOSE [nrfdl][trace](17:47:28.926) [NRFJPROG] [SeggerBackend] [Debug] Segger Backend closed.
    2022-04-22T15:47:29.381Z VERBOSE [nrfdl][trace](17:47:28.926) [NRFJPROG] [nRFXX] [Debug] nRF family DLL closed
    2022-04-22T15:47:29.382Z VERBOSE [nrfdl][trace](17:47:29.027) DeviceLister::enumerate: Checking future_status of enumerate_task_status
    2022-04-22T15:47:29.382Z VERBOSE [nrfdl][trace](17:47:29.027) DeviceLister::enumerate: Waiting for enumerate task to complete
    2022-04-22T15:47:29.383Z VERBOSE [nrfdl][trace](17:47:29.027) DeviceLister::enumerate::enumerate_task: Start
    2022-04-22T15:47:29.384Z VERBOSE [nrfdl][trace](17:47:29.027) DeviceLister::enumerate::enumerate_task: Device_pool is empty
    2022-04-22T15:47:29.384Z VERBOSE [nrfdl][trace](17:47:29.027) DeviceLister::enumerate::enumerate_task: Before async_lister->enumarate
    2022-04-22T15:47:29.385Z VERBOSE [nrfdl][trace](17:47:29.027) USBPlatformAPI::enumerate: Starting iteration 0
    2022-04-22T15:47:29.385Z VERBOSE [nrfdl][trace](17:47:29.027) USBPlatformAPI::enumerate: Doing copyDeviceToUsb of device #0
    2022-04-22T15:47:29.386Z DEBUG [nrfdl][debug](17:47:29.028) NRFDLException(6): Unable to open USB device. Error code: -3. idProduct=3, idVendor=7531
    2022-04-22T15:47:29.387Z VERBOSE [nrfdl][trace](17:47:29.028) USBPlatformAPI::enumerate: new device is not registered, skipping to next entry in list!
    2022-04-22T15:47:29.387Z VERBOSE [nrfdl][trace](17:47:29.028) USBPlatformAPI::enumerate: Starting iteration 1
    2022-04-22T15:47:29.388Z VERBOSE [nrfdl][trace](17:47:29.028) USBPlatformAPI::enumerate: Doing copyDeviceToUsb of device #1
    2022-04-22T15:47:29.388Z DEBUG [nrfdl][debug](17:47:29.028) NRFDLException(6): Unable to open USB device. Error code: -3. idProduct=50484, idVendor=1133
    2022-04-22T15:47:29.389Z VERBOSE [nrfdl][trace](17:47:29.028) USBPlatformAPI::enumerate: new device is not registered, skipping to next entry in list!
    2022-04-22T15:47:29.389Z VERBOSE [nrfdl][trace](17:47:29.028) USBPlatformAPI::enumerate: Starting iteration 2
    2022-04-22T15:47:29.390Z VERBOSE [nrfdl][trace](17:47:29.028) USBPlatformAPI::enumerate: Doing copyDeviceToUsb of device #2
    2022-04-22T15:47:29.390Z DEBUG [nrfdl][debug](17:47:29.028) NRFDLException(6): Unable to open USB device. Error code: -3. idProduct=2, idVendor=7531
    2022-04-22T15:47:29.391Z VERBOSE [nrfdl][trace](17:47:29.028) USBPlatformAPI::enumerate: new device is not registered, skipping to next entry in list!
    2022-04-22T15:47:29.391Z VERBOSE [nrfdl][trace](17:47:29.028) USBPlatformAPI::enumerate: Starting iteration 3
    2022-04-22T15:47:29.392Z VERBOSE [nrfdl][trace](17:47:29.028) USBPlatformAPI::enumerate: Doing copyDeviceToUsb of device #3
    2022-04-22T15:47:29.392Z DEBUG [nrfdl][debug](17:47:29.028) NRFDLException(6): Unable to open USB device. Error code: -3. idProduct=2067, idVendor=8457
    2022-04-22T15:47:29.393Z VERBOSE [nrfdl][trace](17:47:29.028) USBPlatformAPI::enumerate: new device is not registered, skipping to next entry in list!
    2022-04-22T15:47:29.393Z VERBOSE [nrfdl][trace](17:47:29.028) USBPlatformAPI::enumerate: Starting iteration 4
    2022-04-22T15:47:29.394Z VERBOSE [nrfdl][trace](17:47:29.028) USBPlatformAPI::enumerate: Doing copyDeviceToUsb of device #4
    2022-04-22T15:47:29.395Z DEBUG [nrfdl][debug](17:47:29.028) NRFDLException(6): Unable to open USB device. Error code: -3. idProduct=3, idVendor=7531
    2022-04-22T15:47:29.395Z VERBOSE [nrfdl][trace](17:47:29.028) USBPlatformAPI::enumerate: new device is not registered, skipping to next entry in list!
    2022-04-22T15:47:29.396Z VERBOSE [nrfdl][trace](17:47:29.028) USBPlatformAPI::enumerate: Starting iteration 5
    2022-04-22T15:47:29.396Z VERBOSE [nrfdl][trace](17:47:29.028) USBPlatformAPI::enumerate: Doing copyDeviceToUsb of device #5
    2022-04-22T15:47:29.397Z DEBUG [nrfdl][debug](17:47:29.028) NRFDLException(6): Unable to open USB device. Error code: -3. idProduct=20, idVendor=3468
    2022-04-22T15:47:29.397Z VERBOSE [nrfdl][trace](17:47:29.028) USBPlatformAPI::enumerate: new device is not registered, skipping to next entry in list!
    2022-04-22T15:47:29.398Z VERBOSE [nrfdl][trace](17:47:29.028) USBPlatformAPI::enumerate: Starting iteration 6
    2022-04-22T15:47:29.398Z VERBOSE [nrfdl][trace](17:47:29.028) USBPlatformAPI::enumerate: Doing copyDeviceToUsb of device #6
    2022-04-22T15:47:29.399Z DEBUG [nrfdl][debug](17:47:29.028) NRFDLException(6): Unable to open USB device. Error code: -3. idProduct=49162, idVendor=6421
    2022-04-22T15:47:29.399Z VERBOSE [nrfdl][trace](17:47:29.028) USBPlatformAPI::enumerate: new device is not registered, skipping to next entry in list!
    2022-04-22T15:47:29.400Z VERBOSE [nrfdl][trace](17:47:29.028) USBPlatformAPI::enumerate: Starting iteration 7
    2022-04-22T15:47:29.400Z VERBOSE [nrfdl][trace](17:47:29.028) USBPlatformAPI::enumerate: Doing copyDeviceToUsb of device #7
    2022-04-22T15:47:29.401Z DEBUG [nrfdl][debug](17:47:29.028) NRFDLException(6): Unable to open USB device. Error code: -3. idProduct=25165, idVendor=8436
    2022-04-22T15:47:29.401Z VERBOSE [nrfdl][trace](17:47:29.028) USBPlatformAPI::enumerate: new device is not registered, skipping to next entry in list!
    2022-04-22T15:47:29.402Z VERBOSE [nrfdl][trace](17:47:29.028) USBPlatformAPI::enumerate: Starting iteration 8
    2022-04-22T15:47:29.403Z VERBOSE [nrfdl][trace](17:47:29.028) USBPlatformAPI::enumerate: Doing copyDeviceToUsb of device #8
    2022-04-22T15:47:29.403Z DEBUG [nrfdl][debug](17:47:29.028) NRFDLException(6): Unable to open USB device. Error code: -3. idProduct=10259, idVendor=8457
    2022-04-22T15:47:29.404Z VERBOSE [nrfdl][trace](17:47:29.028) USBPlatformAPI::enumerate: new device is not registered, skipping to next entry in list!
    2022-04-22T15:47:29.404Z VERBOSE [nrfdl][trace](17:47:29.028) USBPlatformAPI::enumerate: Starting iteration 9
    2022-04-22T15:47:29.405Z VERBOSE [nrfdl][trace](17:47:29.028) USBPlatformAPI::enumerate: Doing copyDeviceToUsb of device #9
    2022-04-22T15:47:29.405Z DEBUG [nrfdl][debug](17:47:29.028) NRFDLException(6): Unable to open USB device. Error code: -3. idProduct=2, idVendor=7531
    2022-04-22T15:47:29.406Z VERBOSE [nrfdl][trace](17:47:29.028) USBPlatformAPI::enumerate: new device is not registered, skipping to next entry in list!
    2022-04-22T15:47:29.406Z VERBOSE [nrfdl][trace](17:47:29.028) USBPlatformAPI::enumerate: Found 0 devices
    2022-04-22T15:47:29.407Z VERBOSE [nrfdl][trace](17:47:29.028) DeviceLister::enumerate::enumerate_task: After async_lister->enumarate
    2022-04-22T15:47:29.408Z VERBOSE [nrfdl][trace](17:47:29.028) DeviceLister::enumerate: Enumerating with sync lister
    2022-04-22T15:47:29.409Z VERBOSE [nrfdl][trace](17:47:29.028) SerialPortLister::enumerate
    2022-04-22T15:47:29.410Z DEBUG [nrfdl][debug](17:47:29.028) Linux serialport enumerate.
    2022-04-22T15:47:29.411Z VERBOSE [nrfdl][trace](17:47:29.034) DeviceLister::enumerate: Enumerating with sync lister
    2022-04-22T15:47:29.412Z VERBOSE [nrfdl][trace](17:47:29.034) JLinkLister::enumerate
    2022-04-22T15:47:29.412Z DEBUG [nrfdl][debug](17:47:29.034) [->] enumerate
    2022-04-22T15:47:29.413Z DEBUG [nrfdl][debug](17:47:29.034) [HighLevel][TID:139646854645504] get_connected_probes
    2022-04-22T15:47:29.413Z DEBUG [nrfdl][debug](17:47:29.035) nrfjprog_function return value: 0
    2022-04-22T15:47:29.414Z DEBUG [nrfdl][debug](17:47:29.035) [<-] enumerate [took 0ms]
    2022-04-22T15:47:29.415Z VERBOSE [nrfdl][trace](17:47:29.035) DeviceLister::enumerate: Enumerating with sync lister
    2022-04-22T15:47:29.415Z VERBOSE [nrfdl][trace](17:47:29.035) BrokenLister::enumerate
    2022-04-22T15:47:29.416Z VERBOSE [nrfdl][trace](17:47:29.035) DeviceLister::enumerate: Found device with serial number: DB2BFA1BC4C2
    2022-04-22T15:47:29.416Z VERBOSE [nrfdl][trace](17:47:29.035) DeviceLister::enumerate: Completed waiting for enumerate task
    2022-04-22T15:47:29.417Z VERBOSE [nrfdl][trace](17:47:29.035) DeviceLister::enumerate: done
    2022-04-22T15:47:29.433Z DEBUG App pc-nrfconnect-ppk v3.4.3 official
    2022-04-22T15:47:29.433Z DEBUG App path: /home/ernst/.nrfconnect-apps/node_modules/pc-nrfconnect-ppk
    2022-04-22T15:47:29.434Z DEBUG nRFConnect 3.11.0, required by the app is (^3.9.2)
    2022-04-22T15:47:29.434Z DEBUG nRFConnect path: /tmp/.mount_nrfcontJCjF0/resources/app.asar
    2022-04-22T15:47:29.434Z DEBUG HomeDir: /home/ernst
    2022-04-22T15:47:29.434Z DEBUG TmpDir: /tmp

Related