This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF Command Line Tools 10.13.0, 10.12.0 missing JLinkARM.dll

Hello Nordic Devzone Community,

I'm having some trouble install nRF Command Line Tools on a 64-bit Linux host. From Nordic's page www.nordicsemi.com/.../download I've downloaded version 10.13.0, and then 10.12.0. SHA256 sums verify correctly. For some reason 10.14.0 is not available even though there is a selectable radio button for this version. These tools install in /opt. Updating my $PATH variable I can confirm the version of nrfjprog which is now installed:

$ nrfjprog --version

nrfjprog version: 10.12.2

JLinkARM.dll version: 6.88a

When I attempt to program a Zephyr app to a sparkfun_thing_plus_nrf9160 development board, I keep seeing the error message "JLinkARM.dll . . .  JLINK_OpenEx(...) failed to open DLL".

Both 10.13.0 and 10.12.0 show this behavior.  When working in a Linux environment is it not correct to follow the install steps?:

   *  unzip nRF-Command-Line-Tools_10_12_2_Linux-amd64.zip

   *  tar xvzf nRF-Command-Line-Tools_10_12_2_Linux-amd64.tar.gz

   *  sudo dpkg -i JLink_Linux_V750a_x86_64.deb   nRF-Command-Line-Tools_10_13_0_Linux-amd64.deb

Dragging and dropping full log file here . . .

- Ted

# Attempting to run nrfjprog version 10.13.0:
[2021-Sept-02 19:03:48] [ info] --------------------------------------------------------------------------------
[2021-Sept-02 19:03:48] [ info] nrfjprog --program /home/guest/embedded/z1-sandbox-2021-08-26/kionix-driver-demo/build/zephyr/merged.hex --sectorerase -f NRF91 --snr 59104091 --log 
[2021-Sept-02 19:03:48] [ info] nrfjprog version 10.13.0 
[2021-Sept-02 19:03:48] [ info] --------------------------------------------------------------------------------
[2021-Sept-02 19:03:48] [ info] Load library at /opt/nrfjprog/libnrfjprogdll.so.
[2021-Sept-02 19:03:48] [ info] Library loaded, loading member functions.
[2021-Sept-02 19:03:48] [ info] Member functions succesfully loaded.
[2021-Sept-02 19:03:48] [debug] [ Client] - open
[2021-Sept-02 19:03:48] [debug] [ Client] - start
[2021-Sept-02 19:03:48] [trace] [ Client] - Command open executed for 1 milliseconds with result 0
[2021-Sept-02 19:03:48] [debug] [ Client] - enum_emu_snr
[2021-Sept-02 19:03:48] [ info] [ Client] - stdout: Jlinkarm nRF Worker ready. Handling sequence cc8adcde-97e5-4128-959c-77aec6ea0e82.
[2021-Sept-02 19:03:48] [debug] [SeggerBackend] - Logger sink registered in Segger backend logger
[2021-Sept-02 19:03:48] [debug] [  JLink] - Logger sink registered in JLink logger
[2021-Sept-02 19:03:48] [debug] [  nRF91] - open
[2021-Sept-02 19:03:48] [debug] [SeggerBackend] - open_dll
[2021-Sept-02 19:03:48] [debug] [SeggerBackend] - No J-Link DLL path was provided. Attempting to auto detect.
[2021-Sept-02 19:03:48] [ info] [SeggerBackend] - Load library at /opt/SEGGER/JLink/libjlinkarm.so.7.
[2021-Sept-02 19:03:48] [ info] [SeggerBackend] - Library loaded, loading member functions.
[2021-Sept-02 19:03:48] [ info] [SeggerBackend] - Member functions succesfully loaded.
[2021-Sept-02 19:03:48] [debug] [SeggerBackend] - dll_version
[2021-Sept-02 19:03:48] [ info] [SeggerBackend] - Segger dll version 7.50.a loaded.
[2021-Sept-02 19:03:48] [trace] [ Worker] - Command open executed for 1 milliseconds with result 0
[2021-Sept-02 19:03:48] [debug] [  nRF91] - enum_emu_snr
[2021-Sept-02 19:03:48] [debug] [SeggerBackend] - is_connected_to_emu
[2021-Sept-02 19:03:48] [debug] [SeggerBackend] - enum_emu_snr
[2021-Sept-02 19:03:48] [debug] [SeggerBackend] - ---just_enum_emu_snr
[2021-Sept-02 19:03:48] [debug] [SeggerBackend] - ---just_get_num_emus
[2021-Sept-02 19:03:48] [trace] [ Client] - Command enum_emu_snr executed for 88 milliseconds with result 0
[2021-Sept-02 19:03:48] [debug] [ Client] - connect_to_emu_with_snr
[2021-Sept-02 19:03:48] [debug] [SeggerBackend] - is_connected_to_emu
[2021-Sept-02 19:03:48] [trace] [ Worker] - Command enum_emu_snr executed for 88 milliseconds with result 0
[2021-Sept-02 19:03:48] [debug] [  nRF91] - connect_to_emu_with_snr
[2021-Sept-02 19:03:48] [debug] [SeggerBackend] - is_connected_to_emu
[2021-Sept-02 19:03:48] [debug] [SeggerBackend] - connect_to_emu_with_snr
[2021-Sept-02 19:03:48] [debug] [SeggerBackend] - is_connected_to_emu
[2021-Sept-02 19:03:48] [debug] [SeggerBackend] - ---just_enum_emu_snr
[2021-Sept-02 19:03:48] [debug] [SeggerBackend] - ---just_get_num_emus
[2021-Sept-02 19:03:48] [debug] [SeggerBackend] - ---just_connect_to_emu_with_snr
[2021-Sept-02 19:03:48] [debug] [SeggerBackend] - ---just_connect_to_emu_without_snr
[2021-Sept-02 19:03:48] [debug] [SeggerBackend] - Segger logging enabled.
[2021-Sept-02 19:03:48] [trace] [  JLink] -    ***** Error: 
[2021-Sept-02 19:03:48] [trace] [  JLink] - Cannot connect to J-Link.
[2021-Sept-02 19:03:48] [trace] [  JLink] - - 73.444ms returns "Cannot connect to J-Link."  
[2021-Sept-02 19:03:48] [trace] [  JLink] - JLINK_HasError()  
[2021-Sept-02 19:03:48] [error] [SeggerBackend] - JLinkARM.dll Open returned error 'Cannot connect to J-Link.'
[2021-Sept-02 19:03:48] [trace] [  JLink] - JLINK_OpenEx(...)  
[2021-Sept-02 19:03:48] [trace] [  JLink] - - 67.289ms returns "Failed to open DLL"  
[2021-Sept-02 19:03:48] [trace] [  JLink] - JLINK_HasError()  
[2021-Sept-02 19:03:48] [error] [SeggerBackend] - JLinkARM.dll Open returned error 'Failed to open DLL'
[2021-Sept-02 19:03:48] [trace] [  JLink] - JLINK_OpenEx(...)  
[2021-Sept-02 19:03:48] [trace] [  JLink] - - 62.642ms returns "Failed to open DLL"  
[2021-Sept-02 19:03:48] [trace] [  JLink] - JLINK_HasError()  
[2021-Sept-02 19:03:48] [error] [SeggerBackend] - JLinkARM.dll Open returned error 'Failed to open DLL'
[2021-Sept-02 19:03:48] [trace] [  JLink] - JLINK_OpenEx(...)  
[2021-Sept-02 19:03:48] [trace] [  JLink] - - 60.873ms returns "Failed to open DLL"  
[2021-Sept-02 19:03:48] [trace] [  JLink] - JLINK_HasError()  
[2021-Sept-02 19:03:48] [error] [SeggerBackend] - JLinkARM.dll Open returned error 'Failed to open DLL'
[2021-Sept-02 19:03:48] [trace] [  JLink] - JLINK_OpenEx(...)  
[2021-Sept-02 19:03:48] [trace] [ Client] - Command connect_to_emu_with_snr executed for 448 milliseconds with result -102
[2021-Sept-02 19:03:48] [trace] [  JLink] - - 61.803ms returns "Failed to open DLL"  
[2021-Sept-02 19:03:48] [trace] [  JLink] - JLINK_HasError()  
[2021-Sept-02 19:03:48] [error] [SeggerBackend] - JLinkARM.dll Open returned error 'Failed to open DLL'
[2021-Sept-02 19:03:48] [debug] [SeggerBackend] - is_connected_to_emu
[2021-Sept-02 19:03:48] [trace] [  JLink] - JLINK_IsOpen()  
[2021-Sept-02 19:03:48] [trace] [  JLink] - - 0.002ms returns 0x00  
[2021-Sept-02 19:03:48] [trace] [  JLink] - JLINK_HasError()  
[2021-Sept-02 19:03:48] [trace] [ Worker] - Command connect_to_emu_with_snr executed for 448 milliseconds with result -102
[2021-Sept-02 19:03:48] [debug] [  nRF91] - close
[2021-Sept-02 19:03:48] [debug] [SeggerBackend] - is_connected_to_device
[2021-Sept-02 19:03:48] [debug] [SeggerBackend] - is_connected_to_emu
[2021-Sept-02 19:03:48] [trace] [  JLink] - JLINK_IsOpen()  
[2021-Sept-02 19:03:48] [trace] [  JLink] - - 0.003ms returns 0x00  
[2021-Sept-02 19:03:48] [trace] [  JLink] - JLINK_HasError()  
[2021-Sept-02 19:03:48] [error] [SeggerBackend] - Cannot call is_connected_to_device when connect_to_emu_without_snr or connect_to_emu_with_snr has not been called.
[2021-Sept-02 19:03:48] [debug] [  nRF91] - close
[2021-Sept-02 19:03:48] [debug] [SeggerBackend] - is_connected_to_emu
[2021-Sept-02 19:03:48] [trace] [  JLink] - JLINK_IsOpen()  
[2021-Sept-02 19:03:48] [trace] [  JLink] - - 0.003ms returns 0x00  
[2021-Sept-02 19:03:48] [trace] [  JLink] - JLINK_HasError()  
[2021-Sept-02 19:03:48] [debug] [SeggerBackend] - close
[2021-Sept-02 19:03:48] [debug] [SeggerBackend] - disconnect_from_emu
[2021-Sept-02 19:03:48] [debug] [SeggerBackend] - is_connected_to_emu
[2021-Sept-02 19:03:48] [trace] [  JLink] - JLINK_IsOpen()  
[2021-Sept-02 19:03:48] [trace] [  JLink] - - 0.002ms returns 0x00  
[2021-Sept-02 19:03:48] [trace] [  JLink] - JLINK_HasError()  
[2021-Sept-02 19:03:48] [debug] [SeggerBackend] - Segger Backend closed.
[2021-Sept-02 19:03:48] [debug] [  nRF91] - nRF family DLL closed
[2021-Sept-02 19:03:48] [trace] [ Client] - Command close executed for 10 milliseconds with result 0
[2021-Sept-02 19:03:48] [debug] [ Client] - terminate
[2021-Sept-02 19:03:48] [trace] [ Client] - Command terminate executed for 0 milliseconds with result 0
[2021-Sept-02 19:03:48] [trace] [ Worker] - Command close executed for 10 milliseconds with result 0
[2021-Sept-02 19:03:48] [trace] [ Worker] - Command terminate executed for 0 milliseconds with result 0
[2021-Sept-02 19:03:48] [trace] [ Worker] - Executed 5 commands for 547 milliseconds
[2021-Sept-02 19:03:48] [debug] [ Client] - Child process terminated with result 0
[2021-Sept-02 19:03:48] [trace] [ Client] - Executed 5 commands for 547 milliseconds
[2021-Sept-02 19:03:48] [debug] [ Client] - terminate
[2021-Sept-02 19:04:11] [ info] --------------------------------------------------------------------------------
[2021-Sept-02 19:04:11] [ info] nrfjprog --program /home/guest/embedded/z1-sandbox-2021-08-26/kionix-driver-demo/build/zephyr/merged.hex --sectorerase -f NRF91 --snr 59104091 --log 
[2021-Sept-02 19:04:11] [ info] nrfjprog version 10.13.0 
[2021-Sept-02 19:04:11] [ info] --------------------------------------------------------------------------------
[2021-Sept-02 19:04:11] [ info] Load library at /opt/nrfjprog/libnrfjprogdll.so.
[2021-Sept-02 19:04:11] [ info] Library loaded, loading member functions.
[2021-Sept-02 19:04:11] [ info] Member functions succesfully loaded.
[2021-Sept-02 19:04:11] [debug] [ Client] - open
[2021-Sept-02 19:04:11] [debug] [ Client] - start
[2021-Sept-02 19:04:11] [ info] [ Client] - stdout: Jlinkarm nRF Worker ready. Handling sequence 43b41f67-8448-4058-99c1-6890dcc6aed3.
[2021-Sept-02 19:04:11] [debug] [SeggerBackend] - Logger sink registered in Segger backend logger
[2021-Sept-02 19:04:11] [debug] [  JLink] - Logger sink registered in JLink logger
[2021-Sept-02 19:04:11] [debug] [  nRF91] - open
[2021-Sept-02 19:04:11] [debug] [SeggerBackend] - open_dll
[2021-Sept-02 19:04:11] [debug] [SeggerBackend] - No J-Link DLL path was provided. Attempting to auto detect.
[2021-Sept-02 19:04:11] [ info] [SeggerBackend] - Load library at /opt/SEGGER/JLink/libjlinkarm.so.7.
[2021-Sept-02 19:04:11] [trace] [ Client] - Command open executed for 32 milliseconds with result 0
[2021-Sept-02 19:04:11] [debug] [ Client] - enum_emu_snr
[2021-Sept-02 19:04:11] [ info] [SeggerBackend] - Library loaded, loading member functions.
[2021-Sept-02 19:04:11] [ info] [SeggerBackend] - Member functions succesfully loaded.
[2021-Sept-02 19:04:11] [debug] [SeggerBackend] - dll_version
[2021-Sept-02 19:04:11] [ info] [SeggerBackend] - Segger dll version 7.50.a loaded.
[2021-Sept-02 19:04:11] [trace] [ Worker] - Command open executed for 32 milliseconds with result 0
[2021-Sept-02 19:04:11] [debug] [  nRF91] - enum_emu_snr
[2021-Sept-02 19:04:11] [debug] [SeggerBackend] - is_connected_to_emu
[2021-Sept-02 19:04:11] [debug] [SeggerBackend] - enum_emu_snr
[2021-Sept-02 19:04:11] [debug] [SeggerBackend] - ---just_enum_emu_snr
[2021-Sept-02 19:04:11] [debug] [SeggerBackend] - ---just_get_num_emus
[2021-Sept-02 19:04:11] [trace] [ Client] - Command enum_emu_snr executed for 77 milliseconds with result 0
[2021-Sept-02 19:04:11] [debug] [ Client] - connect_to_emu_with_snr
[2021-Sept-02 19:04:11] [debug] [SeggerBackend] - is_connected_to_emu
[2021-Sept-02 19:04:11] [trace] [ Worker] - Command enum_emu_snr executed for 77 milliseconds with result 0
[2021-Sept-02 19:04:11] [debug] [  nRF91] - connect_to_emu_with_snr
[2021-Sept-02 19:04:11] [debug] [SeggerBackend] - is_connected_to_emu
[2021-Sept-02 19:04:11] [debug] [SeggerBackend] - connect_to_emu_with_snr
[2021-Sept-02 19:04:11] [debug] [SeggerBackend] - is_connected_to_emu
[2021-Sept-02 19:04:11] [debug] [SeggerBackend] - ---just_enum_emu_snr
[2021-Sept-02 19:04:11] [debug] [SeggerBackend] - ---just_get_num_emus
[2021-Sept-02 19:04:11] [debug] [SeggerBackend] - ---just_connect_to_emu_with_snr
[2021-Sept-02 19:04:11] [debug] [SeggerBackend] - ---just_connect_to_emu_without_snr
[2021-Sept-02 19:04:11] [debug] [SeggerBackend] - Segger logging enabled.
[2021-Sept-02 19:04:11] [trace] [  JLink] -    ***** Error: 
[2021-Sept-02 19:04:11] [trace] [  JLink] - Cannot connect to J-Link.
[2021-Sept-02 19:04:11] [trace] [  JLink] - - 74.589ms returns "Cannot connect to J-Link."  
[2021-Sept-02 19:04:11] [trace] [  JLink] - JLINK_HasError()  
[2021-Sept-02 19:04:11] [error] [SeggerBackend] - JLinkARM.dll Open returned error 'Cannot connect to J-Link.'
[2021-Sept-02 19:04:11] [trace] [  JLink] - JLINK_OpenEx(...)  
[2021-Sept-02 19:04:11] [trace] [  JLink] - - 64.085ms returns "Failed to open DLL"  
[2021-Sept-02 19:04:11] [trace] [  JLink] - JLINK_HasError()  
[2021-Sept-02 19:04:11] [error] [SeggerBackend] - JLinkARM.dll Open returned error 'Failed to open DLL'
[2021-Sept-02 19:04:11] [trace] [  JLink] - JLINK_OpenEx(...)  
[2021-Sept-02 19:04:11] [trace] [  JLink] - - 60.535ms returns "Failed to open DLL"  
[2021-Sept-02 19:04:11] [trace] [  JLink] - JLINK_HasError()  
[2021-Sept-02 19:04:11] [error] [SeggerBackend] - JLinkARM.dll Open returned error 'Failed to open DLL'
[2021-Sept-02 19:04:11] [trace] [  JLink] - JLINK_OpenEx(...)  
[2021-Sept-02 19:04:11] [trace] [  JLink] - - 65.709ms returns "Failed to open DLL"  
[2021-Sept-02 19:04:11] [trace] [  JLink] - JLINK_HasError()  
[2021-Sept-02 19:04:11] [error] [SeggerBackend] - JLinkARM.dll Open returned error 'Failed to open DLL'
[2021-Sept-02 19:04:11] [trace] [  JLink] - JLINK_OpenEx(...)  
[2021-Sept-02 19:04:11] [trace] [ Client] - Command connect_to_emu_with_snr executed for 463 milliseconds with result -102
[2021-Sept-02 19:04:11] [trace] [  JLink] - - 59.516ms returns "Failed to open DLL"  
[2021-Sept-02 19:04:11] [trace] [  JLink] - JLINK_HasError()  
[2021-Sept-02 19:04:11] [error] [SeggerBackend] - JLinkARM.dll Open returned error 'Failed to open DLL'
[2021-Sept-02 19:04:11] [debug] [SeggerBackend] - is_connected_to_emu
[2021-Sept-02 19:04:11] [trace] [  JLink] - JLINK_IsOpen()  
[2021-Sept-02 19:04:11] [trace] [  JLink] - - 0.003ms returns 0x00  
[2021-Sept-02 19:04:11] [trace] [  JLink] - JLINK_HasError()  
[2021-Sept-02 19:04:11] [trace] [ Worker] - Command connect_to_emu_with_snr executed for 463 milliseconds with result -102
[2021-Sept-02 19:04:11] [debug] [  nRF91] - close
[2021-Sept-02 19:04:11] [debug] [SeggerBackend] - is_connected_to_device
[2021-Sept-02 19:04:11] [debug] [SeggerBackend] - is_connected_to_emu
[2021-Sept-02 19:04:11] [trace] [  JLink] - JLINK_IsOpen()  
[2021-Sept-02 19:04:11] [trace] [  JLink] - - 0.004ms returns 0x00  
[2021-Sept-02 19:04:11] [trace] [  JLink] - JLINK_HasError()  
[2021-Sept-02 19:04:11] [error] [SeggerBackend] - Cannot call is_connected_to_device when connect_to_emu_without_snr or connect_to_emu_with_snr has not been called.
[2021-Sept-02 19:04:11] [debug] [  nRF91] - close
[2021-Sept-02 19:04:11] [debug] [SeggerBackend] - is_connected_to_emu
[2021-Sept-02 19:04:11] [trace] [  JLink] - JLINK_IsOpen()  
[2021-Sept-02 19:04:11] [trace] [  JLink] - - 0.003ms returns 0x00  
[2021-Sept-02 19:04:11] [trace] [  JLink] - JLINK_HasError()  
[2021-Sept-02 19:04:11] [debug] [SeggerBackend] - close
[2021-Sept-02 19:04:11] [debug] [SeggerBackend] - disconnect_from_emu
[2021-Sept-02 19:04:11] [debug] [SeggerBackend] - is_connected_to_emu
[2021-Sept-02 19:04:11] [trace] [  JLink] - JLINK_IsOpen()  
[2021-Sept-02 19:04:11] [trace] [  JLink] - - 0.003ms returns 0x00  
[2021-Sept-02 19:04:11] [trace] [  JLink] - JLINK_HasError()  
[2021-Sept-02 19:04:11] [debug] [SeggerBackend] - Segger Backend closed.
[2021-Sept-02 19:04:11] [debug] [  nRF91] - nRF family DLL closed
[2021-Sept-02 19:04:11] [trace] [ Client] - Command close executed for 10 milliseconds with result 0
[2021-Sept-02 19:04:11] [debug] [ Client] - terminate
[2021-Sept-02 19:04:11] [trace] [ Client] - Command terminate executed for 0 milliseconds with result 0
[2021-Sept-02 19:04:11] [trace] [ Worker] - Command close executed for 10 milliseconds with result 0
[2021-Sept-02 19:04:11] [trace] [ Worker] - Command terminate executed for 0 milliseconds with result 0
[2021-Sept-02 19:04:11] [trace] [ Worker] - Executed 5 commands for 582 milliseconds
[2021-Sept-02 19:04:11] [debug] [ Client] - Child process terminated with result 0
[2021-Sept-02 19:04:11] [trace] [ Client] - Executed 5 commands for 582 milliseconds
[2021-Sept-02 19:04:11] [debug] [ Client] - terminate


# Attemping to flash sparkfun_thing_plus_nrf9160 board with nrfjprog version 10.12.0:
[2021-Sept-02 19:51:51] [ info] --------------------------------------------------------------------------------
[2021-Sept-02 19:51:51] [ info] nrfjprog --program /home/cpguest/embedded/z1-sandbox-2021-08-26/kionix-driver-demo/build/zephyr/merged.hex --sectorerase -f NRF91 --snr 59104091 --log 
[2021-Sept-02 19:51:51] [ info] nrfjprog version 10.12.2 
[2021-Sept-02 19:51:51] [ info] --------------------------------------------------------------------------------
[2021-Sept-02 19:51:51] [debug] [ nRF0x0] - open_dll
[2021-Sept-02 19:51:51] [ info] [ nRF0x0] - Load library at /opt/nrfjprog/libjlinkarm_nrf91_nrfjprogdll.so.
[2021-Sept-02 19:51:51] [ info] [ nRF0x0] - Library loaded, loading member functions.
[2021-Sept-02 19:51:51] [ info] [ nRF0x0] - Member functions succesfully loaded.
[2021-Sept-02 19:51:51] [ info] [Backend] - Logger callback at 0x564fa3bb4150 registered in Segger backend logger.
[2021-Sept-02 19:51:51] [ info] [  JLink] - [Info    ] [JLink     ] Logger callback at 0x564fa3bb4150 registered in JLink logger.
[2021-Sept-02 19:51:51] [debug] [nRF910x0] - open
[2021-Sept-02 19:51:51] [debug] [Backend] - open_dll
[2021-Sept-02 19:51:51] [ info] [Backend] - No J-Link DLL path was provided. Attempting to auto detect.
[2021-Sept-02 19:51:51] [ info] [Backend] - Load library at /opt/SEGGER/JLink/libjlinkarm.so.6.88.1.
[2021-Sept-02 19:51:51] [ info] [Backend] - Library loaded, loading member functions.
[2021-Sept-02 19:51:51] [ info] [Backend] - Member functions succesfully loaded.
[2021-Sept-02 19:51:51] [debug] [Backend] - dll_version
[2021-Sept-02 19:51:51] [ info] [Backend] - Segger dll version 6.88.a loaded.
[2021-Sept-02 19:51:51] [debug] [ nRF0x0] - enum_emu_snr
[2021-Sept-02 19:51:51] [debug] [nRF910x0] - enum_emu_snr
[2021-Sept-02 19:51:51] [debug] [Backend] - is_connected_to_emu
[2021-Sept-02 19:51:51] [debug] [Backend] - enum_emu_snr
[2021-Sept-02 19:51:51] [debug] [Backend] - ---just_enum_emu_snr
[2021-Sept-02 19:51:51] [debug] [Backend] - ---just_get_num_emus
[2021-Sept-02 19:51:51] [debug] [Backend] - is_connected_to_emu
[2021-Sept-02 19:51:51] [debug] [ nRF0x0] - connect_to_emu_with_snr
[2021-Sept-02 19:51:51] [debug] [nRF910x0] - connect_to_emu_with_snr
[2021-Sept-02 19:51:51] [debug] [Backend] - is_connected_to_emu
[2021-Sept-02 19:51:51] [debug] [Backend] - connect_to_emu_with_snr
[2021-Sept-02 19:51:51] [debug] [Backend] - is_connected_to_emu
[2021-Sept-02 19:51:51] [debug] [Backend] - ---just_enum_emu_snr
[2021-Sept-02 19:51:51] [debug] [Backend] - ---just_get_num_emus
[2021-Sept-02 19:51:51] [debug] [Backend] - ---just_connect_to_emu_with_snr
[2021-Sept-02 19:51:51] [debug] [Backend] - ---just_connect_to_emu_without_snr
[2021-Sept-02 19:51:51] [ info] [Backend] - Segger logging enabled.
[2021-Sept-02 19:51:51] [ info] [  JLink] - [Info    ] [JLink     ]    ***** Error: 
[2021-Sept-02 19:51:51] [ info] [  JLink] - [Info    ] [JLink     ] Cannot connect to J-Link.
[2021-Sept-02 19:51:51] [ info] [  JLink] - [Info    ] [JLink     ] - 71.584ms returns "Cannot connect to J-Link."  
[2021-Sept-02 19:51:51] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
[2021-Sept-02 19:51:51] [ info] [Backend] - JLinkARM.dll Open returned error 'Cannot connect to J-Link.'
[2021-Sept-02 19:51:51] [debug] [Backend] - is_connected_to_emu
[2021-Sept-02 19:51:51] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_IsOpen()  
[2021-Sept-02 19:51:51] [ info] [  JLink] - [Info    ] [JLink     ] - 0.003ms returns 0x00  
[2021-Sept-02 19:51:51] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
[2021-Sept-02 19:51:51] [debug] [ nRF0x0] - close_dll
[2021-Sept-02 19:51:51] [debug] [nRF910x0] - close
[2021-Sept-02 19:51:51] [debug] [Backend] - is_connected_to_emu
[2021-Sept-02 19:51:51] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_IsOpen()  
[2021-Sept-02 19:51:51] [ info] [  JLink] - [Info    ] [JLink     ] - 0.003ms returns 0x00  
[2021-Sept-02 19:51:51] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
[2021-Sept-02 19:51:51] [debug] [Backend] - close
[2021-Sept-02 19:51:51] [debug] [Backend] - disconnect_from_emu
[2021-Sept-02 19:51:51] [debug] [Backend] - is_connected_to_emu
[2021-Sept-02 19:51:51] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_IsOpen()  
[2021-Sept-02 19:51:51] [ info] [  JLink] - [Info    ] [JLink     ] - 0.004ms returns 0x00  
[2021-Sept-02 19:51:51] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
[2021-Sept-02 19:51:51] [debug] [Backend] - Segger Backend closed.
[2021-Sept-02 19:51:51] [debug] [nRF910x0] - nRF family DLL closed


# Preceding last command with `sudo`:
[2021-Sept-02 19:53:48] [ info] --------------------------------------------------------------------------------
[2021-Sept-02 19:53:48] [ info] nrfjprog --program /home/cpguest/embedded/z1-sandbox-2021-08-26/kionix-driver-demo/build/zephyr/merged.hex --sectorerase -f NRF91 --snr 59104091 --log 
[2021-Sept-02 19:53:48] [ info] nrfjprog version 10.12.2 
[2021-Sept-02 19:53:48] [ info] --------------------------------------------------------------------------------
[2021-Sept-02 19:53:48] [debug] [ nRF0x0] - open_dll
[2021-Sept-02 19:53:48] [ info] [ nRF0x0] - Load library at /opt/nrfjprog/libjlinkarm_nrf91_nrfjprogdll.so.
[2021-Sept-02 19:53:48] [ info] [ nRF0x0] - Library loaded, loading member functions.
[2021-Sept-02 19:53:48] [ info] [ nRF0x0] - Member functions succesfully loaded.
[2021-Sept-02 19:53:48] [ info] [Backend] - Logger callback at 0x55b2a6497150 registered in Segger backend logger.
[2021-Sept-02 19:53:48] [ info] [  JLink] - [Info    ] [JLink     ] Logger callback at 0x55b2a6497150 registered in JLink logger.
[2021-Sept-02 19:53:48] [debug] [nRF910x0] - open
[2021-Sept-02 19:53:48] [debug] [Backend] - open_dll
[2021-Sept-02 19:53:48] [ info] [Backend] - No J-Link DLL path was provided. Attempting to auto detect.
[2021-Sept-02 19:53:48] [ info] [Backend] - Load library at /opt/SEGGER/JLink/libjlinkarm.so.6.88.1.
[2021-Sept-02 19:53:48] [ info] [Backend] - Library loaded, loading member functions.
[2021-Sept-02 19:53:48] [ info] [Backend] - Member functions succesfully loaded.
[2021-Sept-02 19:53:48] [debug] [Backend] - dll_version
[2021-Sept-02 19:53:48] [ info] [Backend] - Segger dll version 6.88.a loaded.
[2021-Sept-02 19:53:48] [debug] [ nRF0x0] - enum_emu_snr
[2021-Sept-02 19:53:48] [debug] [nRF910x0] - enum_emu_snr
[2021-Sept-02 19:53:48] [debug] [Backend] - is_connected_to_emu
[2021-Sept-02 19:53:48] [debug] [Backend] - enum_emu_snr
[2021-Sept-02 19:53:48] [debug] [Backend] - ---just_enum_emu_snr
[2021-Sept-02 19:53:48] [debug] [Backend] - ---just_get_num_emus
[2021-Sept-02 19:53:48] [debug] [Backend] - is_connected_to_emu
[2021-Sept-02 19:53:48] [debug] [ nRF0x0] - connect_to_emu_with_snr
[2021-Sept-02 19:53:48] [debug] [nRF910x0] - connect_to_emu_with_snr
[2021-Sept-02 19:53:48] [debug] [Backend] - is_connected_to_emu
[2021-Sept-02 19:53:48] [debug] [Backend] - connect_to_emu_with_snr
[2021-Sept-02 19:53:48] [debug] [Backend] - is_connected_to_emu
[2021-Sept-02 19:53:48] [debug] [Backend] - ---just_enum_emu_snr
[2021-Sept-02 19:53:48] [debug] [Backend] - ---just_get_num_emus
[2021-Sept-02 19:53:48] [debug] [Backend] - ---just_connect_to_emu_with_snr
[2021-Sept-02 19:53:48] [debug] [Backend] - ---just_connect_to_emu_without_snr
[2021-Sept-02 19:53:48] [ info] [Backend] - Segger logging enabled.
[2021-Sept-02 19:53:48] [ info] [  JLink] - [Info    ] [JLink     ]    ***** Error: 
[2021-Sept-02 19:53:48] [ info] [  JLink] - [Info    ] [JLink     ] Cannot connect to J-Link.
[2021-Sept-02 19:53:48] [ info] [  JLink] - [Info    ] [JLink     ] - 83.261ms returns "Cannot connect to J-Link."  
[2021-Sept-02 19:53:48] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
[2021-Sept-02 19:53:48] [ info] [Backend] - JLinkARM.dll Open returned error 'Cannot connect to J-Link.'
[2021-Sept-02 19:53:48] [debug] [Backend] - is_connected_to_emu
[2021-Sept-02 19:53:48] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_IsOpen()  
[2021-Sept-02 19:53:48] [ info] [  JLink] - [Info    ] [JLink     ] - 0.016ms returns 0x00  
[2021-Sept-02 19:53:48] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
[2021-Sept-02 19:53:48] [debug] [ nRF0x0] - close_dll
[2021-Sept-02 19:53:48] [debug] [nRF910x0] - close
[2021-Sept-02 19:53:48] [debug] [Backend] - is_connected_to_emu
[2021-Sept-02 19:53:48] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_IsOpen()  
[2021-Sept-02 19:53:48] [ info] [  JLink] - [Info    ] [JLink     ] - 0.016ms returns 0x00  
[2021-Sept-02 19:53:48] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
[2021-Sept-02 19:53:48] [debug] [Backend] - close
[2021-Sept-02 19:53:48] [debug] [Backend] - disconnect_from_emu
[2021-Sept-02 19:53:48] [debug] [Backend] - is_connected_to_emu
[2021-Sept-02 19:53:48] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_IsOpen()  
[2021-Sept-02 19:53:48] [ info] [  JLink] - [Info    ] [JLink     ] - 0.015ms returns 0x00  
[2021-Sept-02 19:53:48] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
[2021-Sept-02 19:53:48] [debug] [Backend] - Segger Backend closed.
[2021-Sept-02 19:53:48] [debug] [nRF910x0] - nRF family DLL closed

  • Hi

    First, regarding the CP2102 driver, see Silicon Labs site for the CP2102, I found a driver installation file there. If the CP2102 driver does not work for you, you could have a look at either Silicon Labs Commuinty or the SparkFun Forum.

    Are you able to program the board directly from  Windows 10 (not using the Ubuntu WM), for example using the Programmer tool from nRF Connect for Desktop?

    From the Ubuntu WM, could you post the results of the follwing, with the "-l" argument? 

    ls -l /opt/SEGGER

    Regards,
    Sigurd Hellesvik

  • Hi Sigurd,

    The long listing of /opt/SEGGER in my Ubuntu VM is:

    guest@ubuntu-vm-0p2:/opt/SEGGER$ ls -l /opt/SEGGER
    total 4
    lrwxrwxrwx 1 root root   23 Nov 18  2020 JLink -> /opt/SEGGER/JLink_V688a
    drwxr-xr-x 9 root root 4096 Sep  2 19:47 JLink_V688a


    Regarding nRF Connect for Desktop I will need to install this utility. I have one such utility set which I've used for firmware programming and OTA tests of an nRF52832 based board. I'll review that software to see whether it is able to program 9160 based boards as well. I mostly recently installed an nRF Connect for Desktop in May of this year.

    Eventually though, I want my build tools to be something that is able to be reasonably automated, hence my goal to stick with the command line whenever possible.

    - Ted
Related