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

JLinkARM.dll reported "-1", an unknown error

​Hi!

I'm running a project with an nrf52 chip for which we use the JLink as the interface. I've been using my setup a lot for the past year. The other week, every LJink command stopped working.

I am not aware of any update, changed routine, or any factor that could be the villain.

I'm running ubuntu 20 and here is my log. Any ideas?

On a different computer, the same JLink + pcb + nrfjprog-script works fine.

$ nrfjprog -v

nrfjprog version: 10.10.0

JLinkARM.dll version: 6.86c

$ nrfjprog --reset

ERROR: JLinkARM DLL reported an error. Try again. If error condition

ERROR: persists, run the same command again with argument --log, contact Nordic

ERROR: Semiconductor and provide the generated log.log file to them.


[2020-Oct-12 08:15:49] [ info] --------------------------------------------------------------------------------
[2020-Oct-12 08:15:49] [ info] nrfjprog --reset --log 
[2020-Oct-12 08:15:49] [ info] nrfjprog version 10.10.0 
[2020-Oct-12 08:15:49] [ info] --------------------------------------------------------------------------------
[2020-Oct-12 08:15:49] [debug] [ nRF0x0] - open_dll
[2020-Oct-12 08:15:49] [debug] [ nRF0x0] - Load library at /opt/nrfjprog/libjlinkarm_unknown_nrfjprogdll.so.
[2020-Oct-12 08:15:49] [debug] [ nRF0x0] - Library loaded, loading member functions.
[2020-Oct-12 08:15:49] [debug] [ nRF0x0] - Member functions succesfully loaded.
[2020-Oct-12 08:15:49] [debug] [Backend] - Logger callback at 0x5598c7f7fe00 registered in Segger backend logger.
[2020-Oct-12 08:15:49] [debug] [  JLink] - [Debug   ] [JLink     ] Logger callback at 0x5598c7f7fe00 registered in JLink logger.
[2020-Oct-12 08:15:49] [debug] [nRFUnknown] - Just_open_dll_tagged_callback
[2020-Oct-12 08:15:49] [debug] [Backend] - open_dll
[2020-Oct-12 08:15:49] [debug] [Backend] - No J-Link DLL path was provided. Attempting to auto detect.
[2020-Oct-12 08:15:49] [debug] [Backend] - Load library at /opt/SEGGER/JLink/libjlinkarm.so.6.86.3.
[2020-Oct-12 08:15:49] [debug] [Backend] - Library loaded, loading member functions.
[2020-Oct-12 08:15:49] [debug] [Backend] - Member functions succesfully loaded.
[2020-Oct-12 08:15:49] [debug] [Backend] - dll_version
[2020-Oct-12 08:15:49] [debug] [Backend] - Segger dll version 6.86.c loaded.
[2020-Oct-12 08:15:49] [debug] [Backend] - set_core_data
[2020-Oct-12 08:15:49] [debug] [ nRF0x0] - enum_emu_snr
[2020-Oct-12 08:15:49] [debug] [nRFUnknown] - Just_enum_emu_snr
[2020-Oct-12 08:15:49] [debug] [Backend] - enum_emu_snr
[2020-Oct-12 08:15:49] [debug] [Backend] - ---just_enum_emu_snr
[2020-Oct-12 08:15:49] [debug] [Backend] - ---just_get_num_emus
[2020-Oct-12 08:15:49] [debug] [ nRF0x0] - connect_to_emu_with_snr
[2020-Oct-12 08:15:49] [debug] [nRFUnknown] - Just_connect_to_emu_with_snr
[2020-Oct-12 08:15:49] [debug] [Backend] - connect_to_emu_with_snr
[2020-Oct-12 08:15:49] [debug] [Backend] - is_connected_to_emu
[2020-Oct-12 08:15:49] [debug] [Backend] - ---just_enum_emu_snr
[2020-Oct-12 08:15:49] [debug] [Backend] - ---just_get_num_emus
[2020-Oct-12 08:15:49] [debug] [Backend] - ---just_connect_to_emu_with_snr
[2020-Oct-12 08:15:50] [debug] [Backend] - ---just_connect_to_emu_without_snr
[2020-Oct-12 08:15:50] [debug] [Backend] - Segger logging enabled.
[2020-Oct-12 08:15:50] [debug] [Backend] - ---just_load_core_data
[2020-Oct-12 08:15:50] [debug] [ nRF0x0] - read_connected_emu_snr
[2020-Oct-12 08:15:50] [debug] [nRFUnknown] - Just_read_connected_emu_snr
[2020-Oct-12 08:15:50] [debug] [Backend] - read_connected_emu_snr
[2020-Oct-12 08:15:50] [debug] [Backend] - is_connected_to_emu
[2020-Oct-12 08:15:50] [debug] [ nRF0x0] - read_device_family
[2020-Oct-12 08:15:50] [debug] [nRFUnknown] - Just_read_device_family
[2020-Oct-12 08:15:50] [debug] [Backend] - is_connected_to_emu
[2020-Oct-12 08:15:50] [debug] [Backend] - read_debug_port_idr
[2020-Oct-12 08:15:50] [debug] [Backend] - read_debug_port_register
[2020-Oct-12 08:15:50] [debug] [Backend] - ---just_read_debug_port_register
[2020-Oct-12 08:15:50] [debug] [Backend] - coresight_configure
[2020-Oct-12 08:15:50] [debug] [Backend] - JLinkARM.dll reported "-1", an unknown error.
[2020-Oct-12 08:15:50] [debug] [Backend] - ---just_abort_debug_action
[2020-Oct-12 08:15:50] [debug] [Backend] - Attempting to clear any configuration errors in debug port before closing connection. 
[2020-Oct-12 08:15:50] [debug] [Backend] - JLinkARM.dll reported "-1", an unknown error.
[2020-Oct-12 08:15:50] [debug] [ nRF0x0] - close_dll
[2020-Oct-12 08:15:50] [debug] [nRFUnknown] - Just_close_dll
[2020-Oct-12 08:15:50] [debug] [Backend] - close
[2020-Oct-12 08:15:50] [debug] [Backend] - disconnect_from_emu
[2020-Oct-12 08:15:50] [debug] [Backend] - is_connected_to_emu
[2020-Oct-12 08:15:50] [debug] [Backend] - ---just_disconnect_from_emu
[2020-Oct-12 08:15:50] [debug] [Backend] - is_connected_to_device
[2020-Oct-12 08:15:50] [debug] [Backend] - ---just_is_debug_region_powered
[2020-Oct-12 08:15:50] [debug] [Backend] - ---just_read_debug_port_register
[2020-Oct-12 08:15:50] [debug] [Backend] - is_connected_to_emu
[2020-Oct-12 08:15:50] [debug] [Backend] - ---just_write_debug_port_register
[2020-Oct-12 08:15:50] [debug] [Backend] - JLinkARM.dll reported "-1", an unknown error.
[2020-Oct-12 08:15:50] [debug] [Backend] - ---just_abort_debug_action
[2020-Oct-12 08:15:50] [debug] [Backend] - Attempting to clear any configuration errors in debug port before closing connection. 
[2020-Oct-12 08:15:50] [debug] [Backend] - JLinkARM.dll reported "-1", an unknown error.
[2020-Oct-12 08:15:50] [debug] [Backend] - Segger Backend closed.

Parents
  • Hi, 

    On a different computer, the same JLink + pcb + nrfjprog-script works fine.

    Is another computer ubuntu 20?

    Please kindly provide the log of "nrfjprog --reset --log" from that computer. 

    -Amanda H.

  • Here is yet another non-working log. Now with jlink2 and a new computer3. This one is running ubuntu 19.

    2020-Oct-12 11:52:59  --------------------------------------------------------------------------------
    2020-Oct-12 11:52:59  nrfjprog --reet --log 
    2020-Oct-12 11:52:59  nrfjprog version 10.9.0 
    2020-Oct-12 11:52:59  --------------------------------------------------------------------------------
    2020-Oct-12 11:53:04  --------------------------------------------------------------------------------
    2020-Oct-12 11:53:04  nrfjprog --reset --log 
    2020-Oct-12 11:53:04  nrfjprog version 10.9.0 
    2020-Oct-12 11:53:04  --------------------------------------------------------------------------------
    2020-Oct-12 11:53:04  nRF_logger_open
    2020-Oct-12 11:53:04  nRF_logger_open:	nRFJProg logger opened to callback at address 0X56509829FC60
    2020-Oct-12 11:53:04  nRF_open_dll
    2020-Oct-12 11:53:04  nRF_open_dll:	Load library at "/opt/nrfjprog/libjlinkarm_unknown_nrfjprogdll.so".
    
    2020-Oct-12 11:53:04  . nRFXX_logger_open
    2020-Oct-12 11:53:04  . nRFXX_logger_open:	nRFJProg logger opened to callback at address 0X7FF304DAB190
    2020-Oct-12 11:53:04  . . Segger_logger_open
    2020-Oct-12 11:53:04  . . Segger_logger_open:	nRFJProg logger opened to callback at address 0X7FF304A2BE80
    2020-Oct-12 11:53:04  . . Segger_open_dll
    2020-Oct-12 11:53:04  . . Segger_open_dll:	No J-Link DLL path was provided. Attempting to auto detect.
    
    2020-Oct-12 11:53:04  . . Segger_open_dll:	Load library at "/opt/SEGGER/JLink/libjlinkarm.so.6.80.1".
    
    2020-Oct-12 11:53:06  . . . Segger_dll_version
    2020-Oct-12 11:53:06  . . Segger_set_core_data
    2020-Oct-12 11:53:06  nRF_enum_emu_snr
    2020-Oct-12 11:53:06  . nRFXX_enum_emu_snr
    2020-Oct-12 11:53:06  . . Segger_enum_emu_snr
    2020-Oct-12 11:53:06  . . . Segger_enum_emu_snr
    2020-Oct-12 11:53:06  . . . . Segger_get_num_emus
    2020-Oct-12 11:53:07  nRF_connect_to_emu_with_snr
    2020-Oct-12 11:53:07  . nRFXX_connect_to_emu_with_snr
    2020-Oct-12 11:53:07  . . Segger_connect_to_emu_with_snr
    2020-Oct-12 11:53:07  . . . Segger_is_connected_to_emu
    2020-Oct-12 11:53:07  . . . Segger_enum_emu_snr
    2020-Oct-12 11:53:07  . . . . Segger_get_num_emus
    2020-Oct-12 11:53:07  . . . Segger_connect_to_emu_with_snr
    2020-Oct-12 11:53:07  . . . . Segger_connect_to_emu_without_snr
    2020-Oct-12 11:53:07  . . . . Segger_connect_to_emu_without_snr:	Segger logging enabled with callback at 0x140681731554240.
    
    2020-Oct-12 11:53:07  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T509D740 001:178.969   
    2020-Oct-12 11:53:07  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	Firmware: J-Link V11 compiled Oct  5 2020 14:56:48
    2020-Oct-12 11:53:08  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T509D740 001:396.678   
    2020-Oct-12 11:53:08  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	Decompressing FW timestamp took 217442 us
    2020-Oct-12 11:53:08  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T509D740 001:399.737   
    2020-Oct-12 11:53:08  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	Hardware: V11.00
    2020-Oct-12 11:53:08  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T509D740 001:399.939   
    2020-Oct-12 11:53:08  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	S/N: 51006151
    2020-Oct-12 11:53:08  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T509D740 001:400.027   
    2020-Oct-12 11:53:08  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	OEM: SEGGER
    2020-Oct-12 11:53:08  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T509D740 001:400.125   
    2020-Oct-12 11:53:08  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	Feature(s): GDB
    2020-Oct-12 11:53:08  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T509D740 001:595.228   
    2020-Oct-12 11:53:08  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	TELNET listener socket opened on port 19021
    2020-Oct-12 11:53:08  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T509D740 001:595.505   
    2020-Oct-12 11:53:08  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	WEBSRV Starting webserver
    2020-Oct-12 11:53:08  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T509D740 001:595.701   
    2020-Oct-12 11:53:08  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	WEBSRV Webserver running on local port 19080
    2020-Oct-12 11:53:08  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T509D740 001:595.821 
    2020-Oct-12 11:53:08  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	- 421.690ms returns O.K.  
    2020-Oct-12 11:53:08  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T509D740 001:595.942 
    2020-Oct-12 11:53:08  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	JLINK_GetHWStatus(...)  
    2020-Oct-12 11:53:08  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T509D740 001:596.213 
    2020-Oct-12 11:53:08  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	- 0.341ms returns 0x00  
    2020-Oct-12 11:53:08  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T509D740 001:596.354 
    2020-Oct-12 11:53:08  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	JLINK_ExecCommand("SetRestartOnClose = 0", ...).   
    2020-Oct-12 11:53:08  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T509D740 001:596.489 
    2020-Oct-12 11:53:08  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	- 0.065ms returns 0x01  
    2020-Oct-12 11:53:08  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T509D740 001:596.619 
    2020-Oct-12 11:53:08  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	JLINK_ExecCommand("DisableFlashDL", ...).   
    2020-Oct-12 11:53:08  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T509D740 001:658.525 
    2020-Oct-12 11:53:08  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	- 61.947ms returns 0x00  
    2020-Oct-12 11:53:08  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T509D740 001:658.762 
    2020-Oct-12 11:53:08  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	JLINK_ExecCommand("ExcludeFlashCacheRange 0x0-0xFFFFFFFF", ...).   
    2020-Oct-12 11:53:08  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T509D740 001:658.895 
    2020-Oct-12 11:53:08  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	- 0.063ms returns 0x00  
    2020-Oct-12 11:53:08  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T509D740 001:659.020   
    2020-Oct-12 11:53:08  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	JLINK_SetHookUnsecureDialog(...)
    2020-Oct-12 11:53:08  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T509D740 001:659.139 
    2020-Oct-12 11:53:08  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	- 0.177ms returns 0  
    2020-Oct-12 11:53:08  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T509D740 001:659.258 
    2020-Oct-12 11:53:08  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	JLINK_TIF_Select(JLINKARM_TIF_SWD)  
    2020-Oct-12 11:53:08  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T509D740 001:660.227 
    2020-Oct-12 11:53:08  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	- 1.124ms returns 0x00  
    2020-Oct-12 11:53:08  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T509D740 001:660.452 
    2020-Oct-12 11:53:08  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	JLINK_SetSpeed(2000)  
    2020-Oct-12 11:53:08  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T509D740 001:660.730 
    2020-Oct-12 11:53:08  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	- 0.428ms  
    2020-Oct-12 11:53:08  . . . . . Segger_load_core_data
    2020-Oct-12 11:53:08  . . . . . Segger_load_core_data:	JLink INFO	T509D740 001:661.009 
    2020-Oct-12 11:53:08  . . . . . Segger_load_core_data:	JLink INFO	JLINK_ExecCommand("CORESIGHT_SetIndexAHBAPToUse = 0", ...).   
    2020-Oct-12 11:53:08  . . . . . Segger_load_core_data:	JLink INFO	T509D740 001:661.144 
    2020-Oct-12 11:53:08  . . . . . Segger_load_core_data:	JLink INFO	- 0.064ms returns 0x00  
    2020-Oct-12 11:53:08  . . . . . Segger_load_core_data:	JLink INFO	T509D740 001:661.272 
    2020-Oct-12 11:53:08  . . . . . Segger_load_core_data:	JLink INFO	JLINK_ExecCommand("device = Cortex-M4", ...).   
    2020-Oct-12 11:53:08  . . . . . Segger_load_core_data:	JLink INFO	T509D740 001:837.659   
    2020-Oct-12 11:53:08  . . . . . Segger_load_core_data:	JLink INFO	XML file found at: /opt/SEGGER/JLink/JLinkDevices.xml 
    2020-Oct-12 11:53:08  . . . . . Segger_load_core_data:	JLink INFO	T509D740 001:957.785   
    2020-Oct-12 11:53:08  . . . . . Segger_load_core_data:	JLink INFO	/opt/SEGGER/JLink/JLinkDevices.xml evaluated successfully. 
    2020-Oct-12 11:53:10  . . . . . Segger_load_core_data:	JLink INFO	T509D740 003:741.036   
    2020-Oct-12 11:53:10  . . . . . Segger_load_core_data:	JLink INFO	Device "CORTEX-M4" selected.
    2020-Oct-12 11:53:10  . . . . . Segger_load_core_data:	JLink INFO	T509D740 003:852.211 
    2020-Oct-12 11:53:10  . . . . . Segger_load_core_data:	JLink INFO	- 2190.932ms returns 0x00  
    2020-Oct-12 11:53:10  nRF_read_connected_emu_snr
    2020-Oct-12 11:53:10  . nRFXX_read_connected_emu_snr
    2020-Oct-12 11:53:10  . . Segger_read_connected_emu_snr
    2020-Oct-12 11:53:10  . . . Segger_is_connected_to_emu
    2020-Oct-12 11:53:10  . . . Segger_is_connected_to_emu:	JLink INFO	T509D740 003:852.629 
    2020-Oct-12 11:53:10  . . . Segger_is_connected_to_emu:	JLink INFO	JLINK_IsOpen()  
    2020-Oct-12 11:53:10  . . . Segger_is_connected_to_emu:	JLink INFO	T509D740 003:852.762 
    2020-Oct-12 11:53:10  . . . Segger_is_connected_to_emu:	JLink INFO	- 0.220ms returns 0x01  
    2020-Oct-12 11:53:10  nRF_read_device_family
    2020-Oct-12 11:53:10  . nRFXX_read_device_family
    2020-Oct-12 11:53:10  . . Segger_is_connected_to_emu
    2020-Oct-12 11:53:10  . . Segger_is_connected_to_emu:	JLink INFO	T509D740 003:853.131 
    2020-Oct-12 11:53:10  . . Segger_is_connected_to_emu:	JLink INFO	JLINK_IsOpen()  
    2020-Oct-12 11:53:10  . . Segger_is_connected_to_emu:	JLink INFO	T509D740 003:853.283 
    2020-Oct-12 11:53:10  . . Segger_is_connected_to_emu:	JLink INFO	- 0.227ms returns 0x01  
    2020-Oct-12 11:53:10  . . :	JLink INFO	T509D740 003:853.449 
    2020-Oct-12 11:53:10  . . :	JLink INFO	JLINK_Lock()  
    2020-Oct-12 11:53:10  . . Segger_read_debug_port_idr
    2020-Oct-12 11:53:10  . . . Segger_read_debug_port_register
    2020-Oct-12 11:53:10  . . . . Segger_read_debug_port_register
    2020-Oct-12 11:53:10  . . . . . Segger_coresight_configure
    2020-Oct-12 11:53:10  . . . . . Segger_coresight_configure:	JLink INFO	T509D740 003:853.864   
    2020-Oct-12 11:53:10  . . . . . Segger_coresight_configure:	JLink INFO	JLINK_CORESIGHT_Configure()  
    2020-Oct-12 11:53:10  . . . . . Segger_coresight_configure:	JLink INFO	T509D740 003:954.528   
    2020-Oct-12 11:53:10  . . . . . Segger_coresight_configure:	JLink INFO	- 100.829ms returns 0  
    2020-Oct-12 11:53:10  . . . . Segger_read_debug_port_register:	JLink INFO	T509D740 003:954.790   
    2020-Oct-12 11:53:10  . . . . Segger_read_debug_port_register:	JLink INFO	JLINK_CORESIGHT_ReadAPDPReg(DP reg 0x00)  
    2020-Oct-12 11:53:10  . . . . Segger_read_debug_port_register:	JLink INFO	T509D740 003:955.376     
    2020-Oct-12 11:53:10  . . . . Segger_read_debug_port_register:	JLink INFO	failed
    2020-Oct-12 11:53:10  . . . . Segger_read_debug_port_register:	JLink INFO	T509D740 003:955.504   
    2020-Oct-12 11:53:10  . . . . Segger_read_debug_port_register:	JLink INFO	- 0.780ms returns -1  
    2020-Oct-12 11:53:10  . . . . Segger_read_debug_port_register:	JLinkARM.dll reported "-1", an unknown error.
    
    2020-Oct-12 11:53:10  . . . . . Segger_abort_debug_action
    2020-Oct-12 11:53:10  . . . . . Segger_abort_debug_action:	Attempting to clear any configuration errors in debug port before closing connection. 
    
    2020-Oct-12 11:53:10  . . . . . Segger_abort_debug_action:	JLink INFO	T509D740 003:955.844   
    2020-Oct-12 11:53:10  . . . . . Segger_abort_debug_action:	JLink INFO	JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    2020-Oct-12 11:53:10  . . . . . Segger_abort_debug_action:	JLink INFO	T509D740 003:956.478   
    2020-Oct-12 11:53:10  . . . . . Segger_abort_debug_action:	JLink INFO	- 0.723ms returns -1  
    2020-Oct-12 11:53:10  . . . . . Segger_abort_debug_action:	JLinkARM.dll reported "-1", an unknown error.
    
    2020-Oct-12 11:53:10  . . :	JLink INFO	T509D740 003:956.712 
    2020-Oct-12 11:53:10  . . :	JLink INFO	JLINK_Unlock()  
    2020-Oct-12 11:53:10  nRF_close_dll
    2020-Oct-12 11:53:10  . nRFXX_close_dll
    2020-Oct-12 11:53:10  . . Segger_close
    2020-Oct-12 11:53:10  . . . Segger_disconnect_from_emu
    2020-Oct-12 11:53:10  . . . . Segger_is_connected_to_emu
    2020-Oct-12 11:53:10  . . . . Segger_is_connected_to_emu:	JLink INFO	T509D740 003:957.163 
    2020-Oct-12 11:53:10  . . . . Segger_is_connected_to_emu:	JLink INFO	JLINK_IsOpen()  
    2020-Oct-12 11:53:10  . . . . Segger_is_connected_to_emu:	JLink INFO	T509D740 003:957.300 
    2020-Oct-12 11:53:10  . . . . Segger_is_connected_to_emu:	JLink INFO	- 0.200ms returns 0x01  
    2020-Oct-12 11:53:10  . . . . Segger_disconnect_from_emu
    2020-Oct-12 11:53:10  . . . . . Segger_is_connected_to_device
    2020-Oct-12 11:53:10  . . . . . Segger_is_connected_to_device:	JLink INFO	T509D740 003:957.547 
    2020-Oct-12 11:53:10  . . . . . Segger_is_connected_to_device:	JLink INFO	JLINK_IsConnected()  
    2020-Oct-12 11:53:10  . . . . . Segger_is_connected_to_device:	JLink INFO	T509D740 003:957.670 
    2020-Oct-12 11:53:10  . . . . . Segger_is_connected_to_device:	JLink INFO	- 0.187ms returns FALSE  
    2020-Oct-12 11:53:10  . . . . . Segger_is_debug_region_powered
    2020-Oct-12 11:53:10  . . . . . . Segger_read_debug_port_register
    2020-Oct-12 11:53:10  . . . . . . . Segger_is_connected_to_emu
    2020-Oct-12 11:53:10  . . . . . . . Segger_is_connected_to_emu:	JLink INFO	T509D740 003:957.980 
    2020-Oct-12 11:53:10  . . . . . . . Segger_is_connected_to_emu:	JLink INFO	JLINK_IsOpen()  
    2020-Oct-12 11:53:10  . . . . . . . Segger_is_connected_to_emu:	JLink INFO	T509D740 003:958.106 
    2020-Oct-12 11:53:10  . . . . . . . Segger_is_connected_to_emu:	JLink INFO	- 0.186ms returns 0x01  
    2020-Oct-12 11:53:10  . . . . . . Segger_read_debug_port_register:	JLink INFO	T509D740 003:958.232 
    2020-Oct-12 11:53:10  . . . . . . Segger_read_debug_port_register:	JLink INFO	JLINK_Lock()  
    2020-Oct-12 11:53:10  . . . . . . . Segger_write_debug_port_register
    2020-Oct-12 11:53:10  . . . . . . . Segger_write_debug_port_register:	JLink INFO	T509D740 003:958.420   
    2020-Oct-12 11:53:10  . . . . . . . Segger_write_debug_port_register:	JLink INFO	JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    2020-Oct-12 11:53:10  . . . . . . . Segger_write_debug_port_register:	JLink INFO	T509D740 003:958.999   
    2020-Oct-12 11:53:10  . . . . . . . Segger_write_debug_port_register:	JLink INFO	- 0.637ms returns -1  
    2020-Oct-12 11:53:10  . . . . . . . Segger_write_debug_port_register:	JLinkARM.dll reported "-1", an unknown error.
    
    2020-Oct-12 11:53:10  . . . . . . . . Segger_abort_debug_action
    2020-Oct-12 11:53:10  . . . . . . . . Segger_abort_debug_action:	Attempting to clear any configuration errors in debug port before closing connection. 
    
    2020-Oct-12 11:53:10  . . . . . . . . Segger_abort_debug_action:	JLink INFO	T509D740 003:959.317   
    2020-Oct-12 11:53:10  . . . . . . . . Segger_abort_debug_action:	JLink INFO	JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    2020-Oct-12 11:53:10  . . . . . . . . Segger_abort_debug_action:	JLink INFO	T509D740 003:959.873   
    2020-Oct-12 11:53:10  . . . . . . . . Segger_abort_debug_action:	JLink INFO	- 0.612ms returns -1  
    2020-Oct-12 11:53:10  . . . . . . . . Segger_abort_debug_action:	JLinkARM.dll reported "-1", an unknown error.
    
    2020-Oct-12 11:53:10  . . . . . . Segger_read_debug_port_register:	JLink INFO	T509D740 003:960.056 
    2020-Oct-12 11:53:10  . . . . . . Segger_read_debug_port_register:	JLink INFO	JLINK_Unlock()  
    2020-Oct-12 11:53:10  . . . . Segger_disconnect_from_emu:	JLink INFO	T509D740 003:966.638 
    2020-Oct-12 11:53:10  . . . . Segger_disconnect_from_emu:	JLink INFO	JLINK_Close()  
    2020-Oct-12 11:53:10  . . Segger_close:	Freeing Library.
    
    2020-Oct-12 11:53:10  nRF_close_dll:	Freeing Library.
    
    

  • Hi Alexander, 

    It could be related to the J-Link MSD issue in Linux. Please test this workaround: https://wiki.segger.com/J-Link_OB#Workaround_2, and let me know it can work or not.

    -Amanda H.

  • Thank you. I found a different setup that works for now. I'll get back to figure out why this setup was faulty in about a week. Will test your suggestion and report back after that!

Reply Children
No Data
Related