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

nrfjprog Jlink issue

Based on nRF52810 Development Board,

MDK program FLASH is OK:

But nrfjprog is falied:

> nrfjprog.exe --family NRF52 --eraseall --log
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.

log.log

2020-Apr-28 18:26:26  --------------------------------------------------------------------------------
2020-Apr-28 18:26:26  nrfjprog.exe --family NRF52 --eraseall --log 
2020-Apr-28 18:26:26  nrfjprog version 10.8.0 
2020-Apr-28 18:26:26  --------------------------------------------------------------------------------
2020-Apr-28 18:26:26  nRF_logger_open
2020-Apr-28 18:26:26  nRF_logger_open:	nRFJProg logger opened to callback at address 0X7FF720223410
2020-Apr-28 18:26:26  nRF_open_dll
2020-Apr-28 18:26:26  nRF_open_dll:	Load library at "C:\\Program Files\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\JLINKARM_NRF52_NRFJPROG.dll".

2020-Apr-28 18:26:26  . nRF52_logger_open
2020-Apr-28 18:26:26  . nRF52_logger_open:	nRFJProg logger opened to callback at address 0X7FFC9A67E520
2020-Apr-28 18:26:26  . nRF52_open_dll
2020-Apr-28 18:26:26  . . Segger_logger_open
2020-Apr-28 18:26:26  . . Segger_logger_open:	nRFJProg logger opened to callback at address 0X7FFC900E2A90
2020-Apr-28 18:26:26  . . Segger_open_dll
2020-Apr-28 18:26:26  . . Segger_open_dll:	Load library at "C:\\Program Files (x86)\\SEGGER\\JLink\\JLink_x64.dll".

2020-Apr-28 18:26:26  . . . Segger_dll_version
2020-Apr-28 18:26:26  . . Segger_set_core_data
2020-Apr-28 18:26:26  nRF_enum_emu_snr
2020-Apr-28 18:26:26  . nRF52_enum_emu_snr
2020-Apr-28 18:26:26  . . Segger_enum_emu_snr
2020-Apr-28 18:26:26  . . . Segger_enum_emu_snr
2020-Apr-28 18:26:26  . . . . Segger_get_num_emus
2020-Apr-28 18:26:26  nRF_connect_to_emu_with_snr
2020-Apr-28 18:26:26  . nRF52_connect_to_emu_with_snr
2020-Apr-28 18:26:26  . . Segger_connect_to_emu_with_snr
2020-Apr-28 18:26:26  . . . Segger_is_connected_to_emu
2020-Apr-28 18:26:26  . . . Segger_enum_emu_snr
2020-Apr-28 18:26:26  . . . . Segger_get_num_emus
2020-Apr-28 18:26:26  . . . Segger_connect_to_emu_with_snr
2020-Apr-28 18:26:26  . . . . Segger_connect_to_emu_without_snr
2020-Apr-28 18:26:26  . . . . Segger_connect_to_emu_without_snr:	Segger logging enabled with callback at 0x140722725334576.

2020-Apr-28 18:26:26  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T032C 000:007.025   
2020-Apr-28 18:26:26  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	Firmware: J-Link V9 compiled Dec 13 2019 11:14:50
2020-Apr-28 18:26:26  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T032C 000:007.373   
2020-Apr-28 18:26:26  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	Decompressing FW timestamp took 112 us
2020-Apr-28 18:26:26  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T032C 000:014.602   
2020-Apr-28 18:26:26  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	Hardware: V9.20
2020-Apr-28 18:26:26  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T032C 000:014.816   
2020-Apr-28 18:26:26  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	S/N: 4294967295
2020-Apr-28 18:26:26  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T032C 000:014.960   
2020-Apr-28 18:26:26  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	OEM: SEGGER
2020-Apr-28 18:26:26  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T032C 000:015.127   
2020-Apr-28 18:26:26  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	Feature(s): GDB, RDI, FlashBP, FlashDL, JFlash, RDDI
2020-Apr-28 18:26:26  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T032C 000:016.546   
2020-Apr-28 18:26:26  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	TELNET listener socket opened on port 19021
2020-Apr-28 18:26:26  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T032C 000:016.847   
2020-Apr-28 18:26:26  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	WEBSRV Starting webserver
2020-Apr-28 18:26:26  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T032C 000:017.062   
2020-Apr-28 18:26:26  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	WEBSRV Webserver running on local port 19080
2020-Apr-28 18:26:26  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T032C 000:017.198 
2020-Apr-28 18:26:26  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	- 13.134ms returns O.K.  
2020-Apr-28 18:26:26  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T032C 000:017.349 
2020-Apr-28 18:26:26  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	JLINK_GetHWStatus(...)  
2020-Apr-28 18:26:26  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T032C 000:017.706 
2020-Apr-28 18:26:26  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	- 0.426ms returns 0x00  
2020-Apr-28 18:26:26  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T032C 000:017.841 
2020-Apr-28 18:26:26  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	JLINK_ExecCommand("SetRestartOnClose = 0", ...).   
2020-Apr-28 18:26:26  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T032C 000:017.979 
2020-Apr-28 18:26:26  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	- 0.065ms returns 0x01  
2020-Apr-28 18:26:26  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T032C 000:018.106 
2020-Apr-28 18:26:26  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	JLINK_ExecCommand("DisableFlashDL", ...).   
2020-Apr-28 18:26:26  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T032C 000:018.239 
2020-Apr-28 18:26:26  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	- 0.065ms returns 0x00  
2020-Apr-28 18:26:26  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T032C 000:018.371 
2020-Apr-28 18:26:26  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	JLINK_ExecCommand("ExcludeFlashCacheRange 0x0-0xFFFFFFFF", ...).   
2020-Apr-28 18:26:26  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T032C 000:018.512 
2020-Apr-28 18:26:26  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	- 0.061ms returns 0x00  
2020-Apr-28 18:26:26  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T032C 000:018.651   
2020-Apr-28 18:26:26  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	JLINK_SetHookUnsecureDialog(...)
2020-Apr-28 18:26:26  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T032C 000:018.778 
2020-Apr-28 18:26:26  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	- 0.194ms returns 0  
2020-Apr-28 18:26:26  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T032C 000:018.913 
2020-Apr-28 18:26:26  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	JLINK_TIF_Select(JLINKARM_TIF_SWD)  
2020-Apr-28 18:26:26  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T032C 000:019.703 
2020-Apr-28 18:26:26  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	- 0.891ms returns 0x00  
2020-Apr-28 18:26:26  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T032C 000:019.882 
2020-Apr-28 18:26:26  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	JLINK_SetSpeed(2000)  
2020-Apr-28 18:26:26  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T032C 000:020.148 
2020-Apr-28 18:26:26  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	- 0.361ms  
2020-Apr-28 18:26:26  . . . . Segger_connect_to_emu_without_snr:	JLinkARM.dll reported "-1", an unknown error.

2020-Apr-28 18:26:26  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T032C 000:027.981 
2020-Apr-28 18:26:26  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	JLINK_Close()  
2020-Apr-28 18:26:26  nRF_close_dll
2020-Apr-28 18:26:26  . nRF52_close_dll
2020-Apr-28 18:26:26  . . Segger_close
2020-Apr-28 18:26:26  . . . Segger_disconnect_from_emu
2020-Apr-28 18:26:26  . . . . Segger_is_connected_to_emu
2020-Apr-28 18:26:26  . . Segger_close:	Freeing Library.

2020-Apr-28 18:26:26  nRF_close_dll:	Freeing Library.

How can I solve this problem? Thanks!

Parents Reply Children
Related