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

Unable to find or open JLinkARM.dll after wrong p20 SWD connection

Hi all, 

i have two units of a custom board project that i made.

In the first board, I plugged the pins in the right position as you can see in the figure below, a). nRFgo find the board, and i can program it normally.

However, in the second board, i wrongly connected the pins as you can see in figure b). nRFgo cant find the board even after i put the pins in the correct position. After i clicked the Recover button, it shows the message "Unable to find or open  JLinkARM.dll".

I tried to erase the dk board and the custom board but nothing worked. 

I am powering both externally. My board DK version is PCA10040.


Any ideas of how can i get my board working normally again?



Thanks!

Alanarf

Parents
  • Have you tried to use nrfjprog in a command line instead of nRFgoStudio?

  • Hello ketiljo, 

    thanks for the reply and sorry for my delay to answer.

    I tried nrfjprog, it returned the same message, here is the print; 

    Actually any command that I type returns this message.

    Here is part of the log.log file :

    2020-Apr-25 20:14:43  --------------------------------------------------------------------------------
    2020-Apr-25 20:14:43  nrfjprog --eraseall --log 
    2020-Apr-25 20:14:43  nrfjprog version 10.8.0 
    2020-Apr-25 20:14:43  --------------------------------------------------------------------------------
    2020-Apr-25 20:14:43  nRF_logger_open
    2020-Apr-25 20:14:43  nRF_logger_open:	nRFJProg logger opened to callback at address 0X7FF660D93410
    2020-Apr-25 20:14:43  nRF_open_dll
    2020-Apr-25 20:14:43  nRF_open_dll:	Load library at "C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\JLINKARM_UNKNOWN_NRFJPROG.dll".
    
    2020-Apr-25 20:14:43  . nRFXX_logger_open
    2020-Apr-25 20:14:43  . nRFXX_logger_open:	nRFJProg logger opened to callback at address 0X7FFEACDCE520
    2020-Apr-25 20:14:43  . . Segger_logger_open
    2020-Apr-25 20:14:43  . . Segger_logger_open:	nRFJProg logger opened to callback at address 0X7FFEACD7D6D0
    2020-Apr-25 20:14:43  . . Segger_open_dll
    2020-Apr-25 20:14:43  . . Segger_open_dll:	Load library at "C:\\Program Files (x86)\\SEGGER\\JLink\\JLink_x64.dll".
    
    2020-Apr-25 20:14:43  . . . Segger_dll_version
    2020-Apr-25 20:14:43  . . Segger_set_core_data
    2020-Apr-25 20:14:43  nRF_enum_emu_snr
    2020-Apr-25 20:14:43  . nRFXX_enum_emu_snr
    2020-Apr-25 20:14:43  . . Segger_enum_emu_snr
    2020-Apr-25 20:14:43  . . . Segger_enum_emu_snr
    2020-Apr-25 20:14:43  . . . . Segger_get_num_emus
    2020-Apr-25 20:14:43  nRF_connect_to_emu_with_snr
    2020-Apr-25 20:14:43  . nRFXX_connect_to_emu_with_snr
    2020-Apr-25 20:14:43  . . Segger_connect_to_emu_with_snr
    2020-Apr-25 20:14:43  . . . Segger_is_connected_to_emu
    2020-Apr-25 20:14:43  . . . Segger_enum_emu_snr
    2020-Apr-25 20:14:43  . . . . Segger_get_num_emus
    2020-Apr-25 20:14:43  . . . Segger_connect_to_emu_with_snr
    2020-Apr-25 20:14:43  . . . . Segger_connect_to_emu_without_snr
    2020-Apr-25 20:14:43  . . . . Segger_connect_to_emu_without_snr:	Segger logging enabled with callback at 0x140731798248048.
    
    2020-Apr-25 20:14:43  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T0DE4 000:017.206   
    2020-Apr-25 20:14:43  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	Firmware: J-Link OB-SAM3U128-V2-NordicSemi compiled Mar 17 2020 14:43:00
    2020-Apr-25 20:14:43  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T0DE4 000:019.315   
    2020-Apr-25 20:14:43  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	Hardware: V1.00
    2020-Apr-25 20:14:43  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T0DE4 000:020.485   
    2020-Apr-25 20:14:43  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	S/N: 682037368
    2020-Apr-25 20:14:43  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T0DE4 000:021.379   
    2020-Apr-25 20:14:43  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	OEM: SEGGER
    2020-Apr-25 20:14:43  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T0DE4 000:022.223   
    2020-Apr-25 20:14:43  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	Feature(s): RDI, FlashBP, FlashDL, JFlash, GDB
    2020-Apr-25 20:14:43  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T0DE4 000:023.851   
    2020-Apr-25 20:14:43  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	TELNET listener socket opened on port 19021
    2020-Apr-25 20:14:43  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T0DE4 000:024.814   
    2020-Apr-25 20:14:43  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	WEBSRV Starting webserver
    2020-Apr-25 20:14:43  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T0DE4 000:025.755   
    2020-Apr-25 20:14:43  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	WEBSRV Webserver running on local port 19080
    2020-Apr-25 20:14:43  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T0DE4 000:026.608 
    2020-Apr-25 20:14:43  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	- 12.315ms returns O.K.  
    2020-Apr-25 20:14:43  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T0DE4 000:027.447 
    2020-Apr-25 20:14:43  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	JLINK_GetHWStatus(...)  
    2020-Apr-25 20:14:43  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T0DE4 000:028.401 
    2020-Apr-25 20:14:43  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	- 1.400ms returns 0x00  
    2020-Apr-25 20:14:43  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T0DE4 000:029.269 
    2020-Apr-25 20:14:43  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	JLINK_ExecCommand("SetRestartOnClose = 0", ...).   
    2020-Apr-25 20:14:43  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T0DE4 000:030.033 
    2020-Apr-25 20:14:43  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	- 0.378ms returns 0x01  
    2020-Apr-25 20:14:43  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T0DE4 000:030.827 
    2020-Apr-25 20:14:43  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	JLINK_ExecCommand("DisableFlashDL", ...).   
    2020-Apr-25 20:14:43  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T0DE4 000:031.678 
    2020-Apr-25 20:14:43  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	- 0.423ms returns 0x00  
    2020-Apr-25 20:14:43  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T0DE4 000:032.514 
    2020-Apr-25 20:14:43  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	JLINK_ExecCommand("ExcludeFlashCacheRange 0x0-0xFFFFFFFF", ...).   
    2020-Apr-25 20:14:43  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T0DE4 000:033.319 
    2020-Apr-25 20:14:43  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	- 0.366ms returns 0x00  
    2020-Apr-25 20:14:43  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T0DE4 000:034.119   
    2020-Apr-25 20:14:43  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	JLINK_SetHookUnsecureDialog(...)
    2020-Apr-25 20:14:43  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T0DE4 000:034.914 
    2020-Apr-25 20:14:43  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	- 1.189ms returns 0  
    2020-Apr-25 20:14:43  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T0DE4 000:035.851 
    2020-Apr-25 20:14:43  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	JLINK_TIF_Select(JLINKARM_TIF_SWD)  
    2020-Apr-25 20:14:43  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T0DE4 000:038.425 
    2020-Apr-25 20:14:43  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	- 3.164ms returns 0x00  
    2020-Apr-25 20:14:43  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T0DE4 000:039.534 
    2020-Apr-25 20:14:43  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	JLINK_SetSpeed(2000)  
    2020-Apr-25 20:14:43  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T0DE4 000:040.412 
    2020-Apr-25 20:14:43  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	- 1.298ms  
    2020-Apr-25 20:14:43  . . . . . Segger_load_core_data
    2020-Apr-25 20:14:43  . . . . . Segger_load_core_data:	JLink INFO	T0DE4 000:041.694 
    2020-Apr-25 20:14:43  . . . . . Segger_load_core_data:	JLink INFO	JLINK_ExecCommand("CORESIGHT_SetIndexAHBAPToUse = 0", ...).   
    2020-Apr-25 20:14:43  . . . . . Segger_load_core_data:	JLink INFO	T0DE4 000:042.433 
    2020-Apr-25 20:14:43  . . . . . Segger_load_core_data:	JLink INFO	- 0.432ms returns 0x00  
    2020-Apr-25 20:14:43  . . . . . Segger_load_core_data:	JLink INFO	T0DE4 000:043.251 
    2020-Apr-25 20:14:43  . . . . . Segger_load_core_data:	JLink INFO	JLINK_ExecCommand("device = Cortex-M4", ...).   
    2020-Apr-25 20:14:43  . . . . . Segger_load_core_data:	JLink INFO	T0DE4 000:051.673   
    2020-Apr-25 20:14:43  . . . . . Segger_load_core_data:	JLink INFO	XML file found at: C:\Program Files (x86)\SEGGER\JLink\JLinkDevices.xml 
    2020-Apr-25 20:14:43  . . . . . Segger_load_core_data:	JLink INFO	T0DE4 000:053.922   
    2020-Apr-25 20:14:43  . . . . . Segger_load_core_data:	JLink INFO	C:\Program Files (x86)\SEGGER\JLink\JLinkDevices.xml evaluated successfully. 
    2020-Apr-25 20:14:43  . . . . . Segger_load_core_data:	JLink INFO	T0DE4 000:093.040   
    2020-Apr-25 20:14:43  . . . . . Segger_load_core_data:	JLink INFO	Device "CORTEX-M4" selected.
    2020-Apr-25 20:14:43  . . . . . Segger_load_core_data:	JLink INFO	T0DE4 000:096.209 
    2020-Apr-25 20:14:43  . . . . . Segger_load_core_data:	JLink INFO	- 52.687ms returns 0x00  
    2020-Apr-25 20:14:43  nRF_read_connected_emu_snr
    2020-Apr-25 20:14:43  . nRFXX_read_connected_emu_snr
    2020-Apr-25 20:14:43  . . Segger_read_connected_emu_snr
    2020-Apr-25 20:14:43  . . . Segger_is_connected_to_emu
    2020-Apr-25 20:14:43  . . . Segger_is_connected_to_emu:	JLink INFO	T0DE4 000:099.253 
    2020-Apr-25 20:14:43  . . . Segger_is_connected_to_emu:	JLink INFO	JLINK_IsOpen()  
    2020-Apr-25 20:14:43  . . . Segger_is_connected_to_emu:	JLink INFO	T0DE4 000:100.041 
    2020-Apr-25 20:14:43  . . . Segger_is_connected_to_emu:	JLink INFO	- 1.180ms returns 0x01  
    2020-Apr-25 20:14:43  nRF_read_device_family
    2020-Apr-25 20:14:43  . nRFXX_read_device_family
    2020-Apr-25 20:14:43  . . Segger_is_connected_to_emu
    2020-Apr-25 20:14:43  . . Segger_is_connected_to_emu:	JLink INFO	T0DE4 000:102.016 
    2020-Apr-25 20:14:43  . . Segger_is_connected_to_emu:	JLink INFO	JLINK_IsOpen()  
    2020-Apr-25 20:14:43  . . Segger_is_connected_to_emu:	JLink INFO	T0DE4 000:102.942 
    2020-Apr-25 20:14:43  . . Segger_is_connected_to_emu:	JLink INFO	- 1.360ms returns 0x01  
    2020-Apr-25 20:14:43  . . :	JLink INFO	T0DE4 000:103.787 
    2020-Apr-25 20:14:43  . . :	JLink INFO	JLINK_Lock()  
    2020-Apr-25 20:14:43  . . Segger_read_debug_port_idr
    2020-Apr-25 20:14:43  . . . Segger_read_debug_port_register
    2020-Apr-25 20:14:43  . . . . Segger_read_debug_port_register
    2020-Apr-25 20:14:43  . . . . . Segger_coresight_configure
    2020-Apr-25 20:14:43  . . . . . Segger_coresight_configure:	JLink INFO	T0DE4 000:106.182   
    2020-Apr-25 20:14:43  . . . . . Segger_coresight_configure:	JLink INFO	JLINK_CORESIGHT_Configure()  
    2020-Apr-25 20:14:43  . . . . . Segger_coresight_configure:	JLink INFO	T0DE4 000:208.438   
    2020-Apr-25 20:14:43  . . . . . Segger_coresight_configure:	JLink INFO	- 104.462ms returns 0  
    2020-Apr-25 20:14:43  . . . . Segger_read_debug_port_register:	JLink INFO	T0DE4 000:212.581   
    2020-Apr-25 20:14:43  . . . . Segger_read_debug_port_register:	JLink INFO	JLINK_CORESIGHT_ReadAPDPReg(DP reg 0x00)  
    2020-Apr-25 20:14:43  . . . . Segger_read_debug_port_register:	JLink INFO	T0DE4 000:217.864     
    2020-Apr-25 20:14:43  . . . . Segger_read_debug_port_register:	JLink INFO	failed
    2020-Apr-25 20:14:43  . . . . Segger_read_debug_port_register:	JLink INFO	T0DE4 000:222.375   
    2020-Apr-25 20:14:43  . . . . Segger_read_debug_port_register:	JLink INFO	- 11.666ms returns -1  
    2020-Apr-25 20:14:43  . . . . Segger_read_debug_port_register:	JLinkARM.dll reported "-1", an unknown error.
    
    2020-Apr-25 20:14:43  . . . . . Segger_abort_debug_action
    2020-Apr-25 20:14:43  . . . . . Segger_abort_debug_action:	Attempting to clear any configuration errors in debug port before closing connection. 
    
    2020-Apr-25 20:14:43  . . . . . Segger_abort_debug_action:	JLink INFO	T0DE4 000:231.518   
    2020-Apr-25 20:14:43  . . . . . Segger_abort_debug_action:	JLink INFO	JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    2020-Apr-25 20:14:43  . . . . . Segger_abort_debug_action:	JLink INFO	T0DE4 000:236.123   
    2020-Apr-25 20:14:43  . . . . . Segger_abort_debug_action:	JLink INFO	- 6.619ms returns -1  
    2020-Apr-25 20:14:43  . . . . . Segger_abort_debug_action:	JLinkARM.dll reported "-1", an unknown error.
    
    2020-Apr-25 20:14:43  . . :	JLink INFO	T0DE4 000:241.917 
    2020-Apr-25 20:14:43  . . :	JLink INFO	JLINK_Unlock()  
    2020-Apr-25 20:14:43  nRF_close_dll
    2020-Apr-25 20:14:43  . nRFXX_close_dll
    2020-Apr-25 20:14:43  . . Segger_close
    2020-Apr-25 20:14:43  . . . Segger_disconnect_from_emu
    2020-Apr-25 20:14:43  . . . . Segger_is_connected_to_emu
    2020-Apr-25 20:14:43  . . . . Segger_is_connected_to_emu:	JLink INFO	T0DE4 000:249.439 
    2020-Apr-25 20:14:43  . . . . Segger_is_connected_to_emu:	JLink INFO	JLINK_IsOpen()  
    2020-Apr-25 20:14:43  . . . . Segger_is_connected_to_emu:	JLink INFO	T0DE4 000:251.256 
    2020-Apr-25 20:14:43  . . . . Segger_is_connected_to_emu:	JLink INFO	- 2.609ms returns 0x01  
    2020-Apr-25 20:14:43  . . . . Segger_disconnect_from_emu
    2020-Apr-25 20:14:43  . . . . . Segger_is_connected_to_device
    2020-Apr-25 20:14:43  . . . . . Segger_is_connected_to_device:	JLink INFO	T0DE4 000:254.584 
    2020-Apr-25 20:14:43  . . . . . Segger_is_connected_to_device:	JLink INFO	JLINK_IsConnected()  
    2020-Apr-25 20:14:43  . . . . . Segger_is_connected_to_device:	JLink INFO	T0DE4 000:256.089 
    2020-Apr-25 20:14:43  . . . . . Segger_is_connected_to_device:	JLink INFO	- 2.168ms returns FALSE  
    2020-Apr-25 20:14:43  . . . . . Segger_is_debug_region_powered
    2020-Apr-25 20:14:43  . . . . . . Segger_read_debug_port_register
    2020-Apr-25 20:14:43  . . . . . . . Segger_is_connected_to_emu
    2020-Apr-25 20:14:43  . . . . . . . Segger_is_connected_to_emu:	JLink INFO	T0DE4 000:259.298 
    2020-Apr-25 20:14:43  . . . . . . . Segger_is_connected_to_emu:	JLink INFO	JLINK_IsOpen()  
    2020-Apr-25 20:14:43  . . . . . . . Segger_is_connected_to_emu:	JLink INFO	T0DE4 000:260.324 
    2020-Apr-25 20:14:43  . . . . . . . Segger_is_connected_to_emu:	JLink INFO	- 1.518ms returns 0x01  
    2020-Apr-25 20:14:43  . . . . . . Segger_read_debug_port_register:	JLink INFO	T0DE4 000:261.344 
    2020-Apr-25 20:14:43  . . . . . . Segger_read_debug_port_register:	JLink INFO	JLINK_Lock()  
    2020-Apr-25 20:14:43  . . . . . . . Segger_write_debug_port_register
    2020-Apr-25 20:14:43  . . . . . . . Segger_write_debug_port_register:	JLink INFO	T0DE4 000:262.838   
    2020-Apr-25 20:14:43  . . . . . . . Segger_write_debug_port_register:	JLink INFO	JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    2020-Apr-25 20:14:43  . . . . . . . Segger_write_debug_port_register:	JLink INFO	T0DE4 000:264.837   
    2020-Apr-25 20:14:43  . . . . . . . Segger_write_debug_port_register:	JLink INFO	- 2.476ms returns -1  
    2020-Apr-25 20:14:43  . . . . . . . Segger_write_debug_port_register:	JLinkARM.dll reported "-1", an unknown error.
    
    2020-Apr-25 20:14:43  . . . . . . . . Segger_abort_debug_action
    2020-Apr-25 20:14:43  . . . . . . . . Segger_abort_debug_action:	Attempting to clear any configuration errors in debug port before closing connection. 
    
    2020-Apr-25 20:14:43  . . . . . . . . Segger_abort_debug_action:	JLink INFO	T0DE4 000:267.238   
    2020-Apr-25 20:14:43  . . . . . . . . Segger_abort_debug_action:	JLink INFO	JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    2020-Apr-25 20:14:43  . . . . . . . . Segger_abort_debug_action:	JLink INFO	T0DE4 000:269.085   
    2020-Apr-25 20:14:43  . . . . . . . . Segger_abort_debug_action:	JLink INFO	- 2.443ms returns -1  
    2020-Apr-25 20:14:43  . . . . . . . . Segger_abort_debug_action:	JLinkARM.dll reported "-1", an unknown error.
    
    2020-Apr-25 20:14:43  . . . . . . Segger_read_debug_port_register:	JLink INFO	T0DE4 000:270.925 
    2020-Apr-25 20:14:43  . . . . . . Segger_read_debug_port_register:	JLink INFO	JLINK_Unlock()  
    2020-Apr-25 20:14:43  . . . . Segger_disconnect_from_emu:	JLink INFO	T0DE4 000:288.113 
    2020-Apr-25 20:14:43  . . . . Segger_disconnect_from_emu:	JLink INFO	JLINK_Close()  
    2020-Apr-25 20:14:43  . . Segger_close:	Freeing Library.
    
    2020-Apr-25 20:14:43  nRF_close_dll:	Freeing Library.
    
    


    thanks, 

    Alanarf

  • It looks like maybe the device is broken since you can't connect to it. Can you try  to replace the device?

  • Hi Ketiljo, 

    do you mean the nrf ? because i also have an AD7147 in the board. 

    I will replace the nrf chip, but do you think that just this wrong connection that i made is enough to broke the chip?


Reply Children
Related