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

Unable to communicate with NRF52840.

We have a latest set of prototypes which use an NRF52840 on a Laird BL654 module.  

On two of these protoypes the module is unresponsive.  We are using a J-Link Lite module, and nrfjprog to program.  I did manage to get one of the two to connect, and ran --recover but then have been unable to communicate with it since.

The attached file shows the log.log file generated by the command "nrfjprog --recover -f nrf52 --log".

Can someone tell me what may be causing this issue?

Thank you.

2020-Sep-15 11:28:45  --------------------------------------------------------------------------------
2020-Sep-15 11:28:45  nrfjprog --recover -f nrf52 --log 
2020-Sep-15 11:28:45  nrfjprog version 10.9.0 
2020-Sep-15 11:28:45  --------------------------------------------------------------------------------
2020-Sep-15 11:28:45  nRF_logger_open
2020-Sep-15 11:28:45  nRF_logger_open:	nRFJProg logger opened to callback at address 0X330900
2020-Sep-15 11:28:45  nRF_open_dll
2020-Sep-15 11:28:45  nRF_open_dll:	Load library at "C:\\Program Files (x86)\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\JLINKARM_NRF52_NRFJPROG.dll".

2020-Sep-15 11:28:45  . nRF52_logger_open
2020-Sep-15 11:28:45  . nRF52_logger_open:	nRFJProg logger opened to callback at address 0X6B4FB850
2020-Sep-15 11:28:45  . nRF52_open
2020-Sep-15 11:28:45  . . Segger_logger_open
2020-Sep-15 11:28:45  . . Segger_logger_open:	nRFJProg logger opened to callback at address 0X5D628AE0
2020-Sep-15 11:28:45  . . Segger_open_dll
2020-Sep-15 11:28:45  . . Segger_open_dll:	No J-Link DLL path was provided. Attempting to auto detect.

2020-Sep-15 11:28:45  . . Segger_open_dll:	Load library at "C:\\Program Files (x86)\\SEGGER\\JLink\\JLinkARM.dll".

2020-Sep-15 11:28:45  . . . Segger_dll_version
2020-Sep-15 11:28:45  nRF_enum_emu_snr
2020-Sep-15 11:28:45  . nRF52_enum_emu_snr
2020-Sep-15 11:28:45  . . Segger_is_connected_to_emu
2020-Sep-15 11:28:45  . . Segger_enum_emu_snr
2020-Sep-15 11:28:45  . . . Segger_enum_emu_snr
2020-Sep-15 11:28:45  . . . . Segger_get_num_emus
2020-Sep-15 11:28:45  . . Segger_is_connected_to_emu
2020-Sep-15 11:28:45  nRF_connect_to_emu_with_snr
2020-Sep-15 11:28:45  . nRF52_connect_to_emu_with_snr
2020-Sep-15 11:28:45  . . Segger_is_connected_to_emu
2020-Sep-15 11:28:45  . . Segger_connect_to_emu_with_snr
2020-Sep-15 11:28:45  . . . Segger_is_connected_to_emu
2020-Sep-15 11:28:45  . . . Segger_enum_emu_snr
2020-Sep-15 11:28:45  . . . . Segger_get_num_emus
2020-Sep-15 11:28:45  . . . Segger_connect_to_emu_with_snr
2020-Sep-15 11:28:45  . . . . Segger_connect_to_emu_without_snr
2020-Sep-15 11:28:45  . . . . Segger_connect_to_emu_without_snr:	Segger logging enabled with callback at 0x1566856016.

2020-Sep-15 11:28:45  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T0CBC 000:024.723   
2020-Sep-15 11:28:45  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	Firmware: J-Link Lite-Cortex-M V9 compiled May 17 2019 09:50:01
2020-Sep-15 11:28:45  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T0CBC 000:042.977   
2020-Sep-15 11:28:45  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	Hardware: V9.00
2020-Sep-15 11:28:45  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T0CBC 000:043.790   
2020-Sep-15 11:28:45  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	S/N: 519000781
2020-Sep-15 11:28:45  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T0CBC 000:044.474   
2020-Sep-15 11:28:45  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	OEM: SEGGER
2020-Sep-15 11:28:45  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T0CBC 000:045.106   
2020-Sep-15 11:28:45  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	Feature(s): GDB
2020-Sep-15 11:28:45  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T0CBC 000:050.384   
2020-Sep-15 11:28:45  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	TELNET listener socket opened on port 19021
2020-Sep-15 11:28:45  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T0CBC 000:051.611   
2020-Sep-15 11:28:45  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	WEBSRV Starting webserver
2020-Sep-15 11:28:45  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T0CBC 000:052.503   
2020-Sep-15 11:28:45  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	WEBSRV Webserver running on local port 19080
2020-Sep-15 11:28:45  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T0CBC 000:053.297 
2020-Sep-15 11:28:45  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	- 37.462ms returns O.K.  
2020-Sep-15 11:28:45  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T0CBC 000:053.988 
2020-Sep-15 11:28:45  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	JLINK_Lock()  
2020-Sep-15 11:28:45  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T0CBC 000:054.817   
2020-Sep-15 11:28:45  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	JLINK_GetHWStatus(...)  
2020-Sep-15 11:28:45  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T0CBC 000:056.246   
2020-Sep-15 11:28:45  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	- 1.832ms returns 0x00  
2020-Sep-15 11:28:45  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T0CBC 000:057.023   
2020-Sep-15 11:28:45  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	JLINK_ExecCommand("SetRestartOnClose = 0", ...).   
2020-Sep-15 11:28:45  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T0CBC 000:057.805   
2020-Sep-15 11:28:45  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	- 0.330ms returns 0x01  
2020-Sep-15 11:28:45  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T0CBC 000:058.483   
2020-Sep-15 11:28:45  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	JLINK_ExecCommand("DisableFlashDL", ...).   
2020-Sep-15 11:28:45  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T0CBC 000:059.254   
2020-Sep-15 11:28:45  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	- 0.416ms returns 0x00  
2020-Sep-15 11:28:45  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T0CBC 000:060.006   
2020-Sep-15 11:28:45  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	JLINK_ExecCommand("ExcludeFlashCacheRange 0x0-0xFFFFFFFF", ...).   
2020-Sep-15 11:28:45  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T0CBC 000:060.668   
2020-Sep-15 11:28:45  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	- 0.463ms returns 0x00  
2020-Sep-15 11:28:45  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T0CBC 000:061.441     
2020-Sep-15 11:28:45  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	JLINK_SetHookUnsecureDialog(...)
2020-Sep-15 11:28:45  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T0CBC 000:062.051   
2020-Sep-15 11:28:45  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	- 1.025ms returns 0  
2020-Sep-15 11:28:45  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T0CBC 000:062.788   
2020-Sep-15 11:28:45  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	JLINK_TIF_Select(JLINKARM_TIF_SWD)  
2020-Sep-15 11:28:45  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T0CBC 000:066.812   
2020-Sep-15 11:28:45  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	- 4.391ms returns 0x00  
2020-Sep-15 11:28:45  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T0CBC 000:067.533   
2020-Sep-15 11:28:45  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	JLINK_SetSpeed(2000)  
2020-Sep-15 11:28:45  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T0CBC 000:068.725   
2020-Sep-15 11:28:45  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	- 1.604ms  
2020-Sep-15 11:28:45  . . . . . Segger_load_core_data
2020-Sep-15 11:28:45  . . . . . Segger_load_core_data:	JLink INFO	T0CBC 000:069.860   
2020-Sep-15 11:28:45  . . . . . Segger_load_core_data:	JLink INFO	JLINK_ExecCommand("CORESIGHT_SetIndexAHBAPToUse = 0", ...).   
2020-Sep-15 11:28:45  . . . . . Segger_load_core_data:	JLink INFO	T0CBC 000:070.533   
2020-Sep-15 11:28:45  . . . . . Segger_load_core_data:	JLink INFO	- 0.282ms returns 0x00  
2020-Sep-15 11:28:45  . . . . . Segger_load_core_data:	JLink INFO	T0CBC 000:071.112   
2020-Sep-15 11:28:45  . . . . . Segger_load_core_data:	JLink INFO	JLINK_ExecCommand("device = nRF52", ...).   
2020-Sep-15 11:28:45  . . . . . Segger_load_core_data:	JLink INFO	T0CBC 000:079.480     
2020-Sep-15 11:28:45  . . . . . Segger_load_core_data:	JLink INFO	XML file found at: C:\Program Files (x86)\SEGGER\JLink\JLinkDevices.xml 
2020-Sep-15 11:28:45  . . . . . Segger_load_core_data:	JLink INFO	T0CBC 000:081.069     
2020-Sep-15 11:28:45  . . . . . Segger_load_core_data:	JLink INFO	C:\Program Files (x86)\SEGGER\JLink\JLinkDevices.xml evaluated successfully. 
2020-Sep-15 11:28:45  . . . . . Segger_load_core_data:	JLink INFO	T0CBC 000:144.021     
2020-Sep-15 11:28:45  . . . . . Segger_load_core_data:	JLink INFO	Device "NRF52" selected.
2020-Sep-15 11:28:45  . . . . . Segger_load_core_data:	JLink INFO	T0CBC 000:147.019   
2020-Sep-15 11:28:45  . . . . . Segger_load_core_data:	JLink INFO	- 75.526ms returns 0x00  
2020-Sep-15 11:28:45  . . Segger_read_debug_port_idr
2020-Sep-15 11:28:45  . . . Segger_read_debug_port_register
2020-Sep-15 11:28:45  . . . . Segger_read_debug_port_register
2020-Sep-15 11:28:45  . . . . . Segger_coresight_configure
2020-Sep-15 11:28:45  . . . . . Segger_coresight_configure:	JLink INFO	T0CBC 000:149.269   
2020-Sep-15 11:28:45  . . . . . Segger_coresight_configure:	JLink INFO	JLINK_CORESIGHT_Configure()  
2020-Sep-15 11:28:45  . . . . . Segger_coresight_configure:	JLink INFO	T0CBC 000:250.919   
2020-Sep-15 11:28:45  . . . . . Segger_coresight_configure:	JLink INFO	- 102.208ms returns 0  
2020-Sep-15 11:28:45  . . . . Segger_read_debug_port_register:	JLink INFO	T0CBC 000:252.043   
2020-Sep-15 11:28:45  . . . . Segger_read_debug_port_register:	JLink INFO	JLINK_CORESIGHT_ReadAPDPReg(DP reg 0x00)  
2020-Sep-15 11:28:45  . . . . Segger_read_debug_port_register:	JLink INFO	T0CBC 000:253.733     
2020-Sep-15 11:28:45  . . . . Segger_read_debug_port_register:	JLink INFO	failed
2020-Sep-15 11:28:45  . . . . Segger_read_debug_port_register:	JLink INFO	T0CBC 000:254.468   
2020-Sep-15 11:28:45  . . . . Segger_read_debug_port_register:	JLink INFO	- 2.851ms returns -1  
2020-Sep-15 11:28:45  . . . . Segger_read_debug_port_register:	JLinkARM.dll reported "-1", an unknown error.

2020-Sep-15 11:28:45  . . . . . Segger_abort_debug_action
2020-Sep-15 11:28:45  . . . . . Segger_abort_debug_action:	Attempting to clear any configuration errors in debug port before closing connection. 

2020-Sep-15 11:28:45  . . . . . Segger_abort_debug_action:	JLink INFO	T0CBC 000:256.546   
2020-Sep-15 11:28:45  . . . . . Segger_abort_debug_action:	JLink INFO	JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
2020-Sep-15 11:28:45  . . . . . Segger_abort_debug_action:	JLink INFO	T0CBC 000:258.239   
2020-Sep-15 11:28:45  . . . . . Segger_abort_debug_action:	JLink INFO	- 2.014ms returns -1  
2020-Sep-15 11:28:45  . . . . . Segger_abort_debug_action:	JLinkARM.dll reported "-1", an unknown error.

2020-Sep-15 11:28:45  . . :	JLink INFO	T0CBC 000:259.310 
2020-Sep-15 11:28:45  . . :	JLink INFO	JLINK_Unlock()  
2020-Sep-15 11:28:45  nRF_close_dll
2020-Sep-15 11:28:45  . nRF52_close
2020-Sep-15 11:28:45  . . Segger_is_connected_to_emu
2020-Sep-15 11:28:45  . . Segger_is_connected_to_emu:	JLink INFO	T0CBC 000:261.160 
2020-Sep-15 11:28:45  . . Segger_is_connected_to_emu:	JLink INFO	JLINK_IsOpen()  
2020-Sep-15 11:28:45  . . Segger_is_connected_to_emu:	JLink INFO	T0CBC 000:261.908 
2020-Sep-15 11:28:45  . . Segger_is_connected_to_emu:	JLink INFO	- 1.073ms returns 0x01  
2020-Sep-15 11:28:45  . . :	JLink INFO	T0CBC 000:262.567 
2020-Sep-15 11:28:45  . . :	JLink INFO	JLINK_Lock()  
2020-Sep-15 11:28:45  . . Segger_close
2020-Sep-15 11:28:45  . . . Segger_disconnect_from_emu
2020-Sep-15 11:28:45  . . . . Segger_disconnect_from_emu
2020-Sep-15 11:28:45  . . . . . Segger_is_connected_to_device
2020-Sep-15 11:28:45  . . . . . Segger_is_connected_to_device:	JLink INFO	T0CBC 000:264.696   
2020-Sep-15 11:28:45  . . . . . Segger_is_connected_to_device:	JLink INFO	JLINK_IsConnected()  
2020-Sep-15 11:28:45  . . . . . Segger_is_connected_to_device:	JLink INFO	T0CBC 000:265.347   
2020-Sep-15 11:28:45  . . . . . Segger_is_connected_to_device:	JLink INFO	- 0.970ms returns FALSE  
2020-Sep-15 11:28:45  . . . . . Segger_is_debug_region_powered
2020-Sep-15 11:28:45  . . . . . . Segger_read_debug_port_register
2020-Sep-15 11:28:45  . . . . . . . Segger_write_debug_port_register
2020-Sep-15 11:28:45  . . . . . . . Segger_write_debug_port_register:	JLink INFO	T0CBC 000:266.986   
2020-Sep-15 11:28:45  . . . . . . . Segger_write_debug_port_register:	JLink INFO	JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
2020-Sep-15 11:28:45  . . . . . . . Segger_write_debug_port_register:	JLink INFO	T0CBC 000:268.375   
2020-Sep-15 11:28:45  . . . . . . . Segger_write_debug_port_register:	JLink INFO	- 1.805ms returns -1  
2020-Sep-15 11:28:45  . . . . . . . Segger_write_debug_port_register:	JLinkARM.dll reported "-1", an unknown error.

2020-Sep-15 11:28:45  . . . . . . . . Segger_abort_debug_action
2020-Sep-15 11:28:45  . . . . . . . . Segger_abort_debug_action:	Attempting to clear any configuration errors in debug port before closing connection. 

2020-Sep-15 11:28:45  . . . . . . . . Segger_abort_debug_action:	JLink INFO	T0CBC 000:270.146   
2020-Sep-15 11:28:45  . . . . . . . . Segger_abort_debug_action:	JLink INFO	JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
2020-Sep-15 11:28:45  . . . . . . . . Segger_abort_debug_action:	JLink INFO	T0CBC 000:271.586   
2020-Sep-15 11:28:45  . . . . . . . . Segger_abort_debug_action:	JLink INFO	- 1.754ms returns -1  
2020-Sep-15 11:28:45  . . . . . . . . Segger_abort_debug_action:	JLinkARM.dll reported "-1", an unknown error.

2020-Sep-15 11:28:45  . . . . Segger_disconnect_from_emu:	JLink INFO	T0CBC 000:272.536 
2020-Sep-15 11:28:45  . . . . Segger_disconnect_from_emu:	JLink INFO	JLINK_Unlock()  
2020-Sep-15 11:28:45  . . . . Segger_disconnect_from_emu:	JLink INFO	T0CBC 000:292.037 
2020-Sep-15 11:28:45  . . . . Segger_disconnect_from_emu:	JLink INFO	JLINK_Close()  
2020-Sep-15 11:28:45  . . Segger_close:	Freeing Library.

2020-Sep-15 11:28:45  nRF_close_dll:	Freeing Library.

Parents Reply Children
  • Hi,

    Then I don't really have any good idea other than to check electrically the SWD pins are connected properly (e.g. not swapped) along with GND and VDD. If you have an nRF52-DK that one can also be used instead of the j-link lite to program external pcb.

    What does it say if you run nrfjprog --version?

    Maybe check if the reset pin is pulled high (if not try to connect it to VDD).

    Best regards,
    Kenneth

Related