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

Unable to recover NRF52832 running correctly with the last code flashed into.

Hello! I have a custom board with a NRF52832 chip that is working fine with the last program I flashed into. But since yesterday I can’t access it to load a new code (flash again) and neither I can’t recover it.

I’m using J-Link and I have tried to recover it by nRFgo Studio and also with nrfjprog.

The versions I have are these:

         Debugger SEGGER J-Link EDU: v10.10

         nrfjprog.exe: 10.6.0

         jlINKarm.DLL: 6.62d

         nRFgo Studio 1.21.2.10

Although my problem started with other older versions.

When I try to load the new code by KEIL I get these error messages:

And when I try to connect, erase or recover it by nrfjprog I get the following messages and log files:

2020-Mar-04 13:09:31  --------------------------------------------------------------------------------
2020-Mar-04 13:09:31  nrfjprog.exe -f NRF52 --eraseall --log 
2020-Mar-04 13:09:31  nrfjprog version 10.6.0 
2020-Mar-04 13:09:31  --------------------------------------------------------------------------------
2020-Mar-04 13:09:31  nRF_logger_open
2020-Mar-04 13:09:31  nRF_logger_open:	nRFJProg logger opened to callback at address 0X2E0610
2020-Mar-04 13:09:31  nRF_open_dll
2020-Mar-04 13:09:31  nRF_open_dll:	Load library at "C:\\Program Files (x86)\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\JLINKARM_NRF52_NRFJPROG.dll".

2020-Mar-04 13:09:31  . nRF52_logger_open
2020-Mar-04 13:09:31  . nRF52_logger_open:	nRFJProg logger opened to callback at address 0X536FB6D0
2020-Mar-04 13:09:31  . nRF52_open_dll
2020-Mar-04 13:09:31  . . Segger_logger_open
2020-Mar-04 13:09:31  . . Segger_logger_open:	nRFJProg logger opened to callback at address 0X52D50300
2020-Mar-04 13:09:31  . . Segger_open_dll
2020-Mar-04 13:09:31  . . Segger_open_dll:	Load library at "C:\\Program Files (x86)\\SEGGER\\JLink\\JLinkARM.dll".

2020-Mar-04 13:09:31  . . . Segger_dll_version
2020-Mar-04 13:09:31  . . Segger_set_core_data
2020-Mar-04 13:09:31  nRF_enum_emu_snr
2020-Mar-04 13:09:31  . nRF52_enum_emu_snr
2020-Mar-04 13:09:31  . . Segger_enum_emu_snr
2020-Mar-04 13:09:31  . . . Segger_enum_emu_snr
2020-Mar-04 13:09:31  . . . . Segger_get_num_emus
2020-Mar-04 13:09:31  nRF_connect_to_emu_with_snr
2020-Mar-04 13:09:31  . nRF52_connect_to_emu_with_snr
2020-Mar-04 13:09:31  . . Segger_connect_to_emu_with_snr
2020-Mar-04 13:09:31  . . . Segger_is_connected_to_emu
2020-Mar-04 13:09:31  . . . Segger_enum_emu_snr
2020-Mar-04 13:09:31  . . . . Segger_get_num_emus
2020-Mar-04 13:09:31  . . . Segger_connect_to_emu_with_snr
2020-Mar-04 13:09:31  . . . . Segger_connect_to_emu_without_snr
2020-Mar-04 13:09:31  . . . . Segger_connect_to_emu_without_snr:	Segger logging enabled with callback at 0x1389692560.

2020-Mar-04 13:09:31  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T195C 000:014.772   
2020-Mar-04 13:09:31  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	Firmware: J-Link V10 compiled Jan  7 2020 16:51:47
2020-Mar-04 13:09:31  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T195C 000:017.279   
2020-Mar-04 13:09:31  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	Decompressing FW timestamp took 147 us
2020-Mar-04 13:09:31  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T195C 000:022.212   
2020-Mar-04 13:09:31  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	Hardware: V10.10
2020-Mar-04 13:09:31  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T195C 000:024.289   
2020-Mar-04 13:09:31  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	S/N: 260112676
2020-Mar-04 13:09:31  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T195C 000:026.115   
2020-Mar-04 13:09:31  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	OEM: SEGGER-EDU
2020-Mar-04 13:09:31  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T195C 000:028.122   
2020-Mar-04 13:09:31  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	Feature(s): FlashBP, GDB
2020-Mar-04 13:09:31  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T195C 000:031.161   
2020-Mar-04 13:09:31  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	TELNET listener socket opened on port 19021
2020-Mar-04 13:09:31  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T195C 000:032.174   
2020-Mar-04 13:09:31  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	WEBSRV Starting webserver
2020-Mar-04 13:09:31  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T195C 000:033.057   
2020-Mar-04 13:09:31  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	WEBSRV Webserver running on local port 19080
2020-Mar-04 13:09:31  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T195C 000:033.876 
2020-Mar-04 13:09:31  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	- 22.324ms returns O.K.  
2020-Mar-04 13:09:31  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T195C 000:034.789 
2020-Mar-04 13:09:31  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	JLINK_GetHWStatus(...)  
2020-Mar-04 13:09:31  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T195C 000:035.895 
2020-Mar-04 13:09:31  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	- 1.524ms returns 0x00  
2020-Mar-04 13:09:31  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T195C 000:036.710 
2020-Mar-04 13:09:31  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	JLINK_ExecCommand("SetRestartOnClose = 0", ...).   
2020-Mar-04 13:09:31  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T195C 000:037.483 
2020-Mar-04 13:09:31  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	- 0.379ms returns 0x01  
2020-Mar-04 13:09:31  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T195C 000:038.269 
2020-Mar-04 13:09:31  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	JLINK_ExecCommand("DisableFlashDL", ...).   
2020-Mar-04 13:09:31  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T195C 000:039.026 
2020-Mar-04 13:09:31  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	- 0.401ms returns 0x00  
2020-Mar-04 13:09:31  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T195C 000:039.806 
2020-Mar-04 13:09:31  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	JLINK_ExecCommand("ExcludeFlashCacheRange 0x0-0xFFFFFFFF", ...).   
2020-Mar-04 13:09:31  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T195C 000:040.573 
2020-Mar-04 13:09:31  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	- 0.388ms returns 0x00  
2020-Mar-04 13:09:31  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T195C 000:041.340   
2020-Mar-04 13:09:31  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	JLINK_SetHookUnsecureDialog(...)
2020-Mar-04 13:09:31  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T195C 000:042.105 
2020-Mar-04 13:09:31  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	- 1.148ms returns 0  
2020-Mar-04 13:09:31  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T195C 000:042.875 
2020-Mar-04 13:09:31  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	JLINK_TIF_Select(JLINKARM_TIF_SWD)  
2020-Mar-04 13:09:31  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T195C 000:044.699 
2020-Mar-04 13:09:31  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	- 2.355ms returns 0x00  
2020-Mar-04 13:09:31  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T195C 000:045.639 
2020-Mar-04 13:09:31  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	JLINK_SetSpeed(2000)  
2020-Mar-04 13:09:31  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T195C 000:046.604 
2020-Mar-04 13:09:31  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	- 1.336ms  
2020-Mar-04 13:09:31  . . . . . Segger_load_core_data
2020-Mar-04 13:09:31  . . . . . Segger_load_core_data:	JLink INFO	T195C 000:047.719 
2020-Mar-04 13:09:31  . . . . . Segger_load_core_data:	JLink INFO	JLINK_ExecCommand("CORESIGHT_SetIndexAHBAPToUse = 0", ...).   
2020-Mar-04 13:09:31  . . . . . Segger_load_core_data:	JLink INFO	T195C 000:048.468 
2020-Mar-04 13:09:31  . . . . . Segger_load_core_data:	JLink INFO	- 0.355ms returns 0x00  
2020-Mar-04 13:09:31  . . . . . Segger_load_core_data:	JLink INFO	T195C 000:049.183 
2020-Mar-04 13:09:31  . . . . . Segger_load_core_data:	JLink INFO	JLINK_ExecCommand("device = nRF52832_xxAA", ...).   
2020-Mar-04 13:09:31  . . . . . Segger_load_core_data:	JLink INFO	T195C 000:056.122   
2020-Mar-04 13:09:31  . . . . . Segger_load_core_data:	JLink INFO	XML file found at: C:\Program Files (x86)\SEGGER\JLink\JLinkDevices.xml 
2020-Mar-04 13:09:31  . . . . . Segger_load_core_data:	JLink INFO	T195C 000:057.662   
2020-Mar-04 13:09:31  . . . . . Segger_load_core_data:	JLink INFO	C:\Program Files (x86)\SEGGER\JLink\JLinkDevices.xml evaluated successfully. 
2020-Mar-04 13:09:31  . . . . . Segger_load_core_data:	JLink INFO	T195C 000:102.416   
2020-Mar-04 13:09:31  . . . . . Segger_load_core_data:	JLink INFO	Device "NRF52832_XXAA" selected.
2020-Mar-04 13:09:31  . . . . . Segger_load_core_data:	JLink INFO	T195C 000:104.839 
2020-Mar-04 13:09:31  . . . . . Segger_load_core_data:	JLink INFO	- 55.369ms returns 0x00  
2020-Mar-04 13:09:31  nRF_read_device_version
2020-Mar-04 13:09:31  . nRF52_read_device_version
2020-Mar-04 13:09:31  . . nRF52_readback_status
2020-Mar-04 13:09:31  . . . nRF52_is_ctrl_ap_available
2020-Mar-04 13:09:31  . . . . Segger_read_access_port_register
2020-Mar-04 13:09:31  . . . . . Segger_is_connected_to_emu
2020-Mar-04 13:09:31  . . . . . Segger_is_connected_to_emu:	JLink INFO	T195C 000:108.160 
2020-Mar-04 13:09:31  . . . . . Segger_is_connected_to_emu:	JLink INFO	JLINK_IsOpen()  
2020-Mar-04 13:09:31  . . . . . Segger_is_connected_to_emu:	JLink INFO	T195C 000:108.960 
2020-Mar-04 13:09:31  . . . . . Segger_is_connected_to_emu:	JLink INFO	- 1.197ms returns 0x01  
2020-Mar-04 13:09:31  . . . . . Segger_read_access_port_register
2020-Mar-04 13:09:31  . . . . . Segger_read_access_port_register:	JLink INFO	T195C 000:110.163 
2020-Mar-04 13:09:31  . . . . . Segger_read_access_port_register:	JLink INFO	JLINK_Lock()  
2020-Mar-04 13:09:31  . . . . . . Segger_coresight_configure
2020-Mar-04 13:09:31  . . . . . . Segger_coresight_configure:	JLink INFO	T195C 000:111.464   
2020-Mar-04 13:09:31  . . . . . . Segger_coresight_configure:	JLink INFO	JLINK_CORESIGHT_Configure()  
2020-Mar-04 13:09:31  . . . . . . Segger_coresight_configure:	JLink INFO	T195C 000:212.627   
2020-Mar-04 13:09:31  . . . . . . Segger_coresight_configure:	JLink INFO	- 102.352ms returns 0  
2020-Mar-04 13:09:31  . . . . . . Segger_is_debug_region_powered
2020-Mar-04 13:09:31  . . . . . . . Segger_read_debug_port_register
2020-Mar-04 13:09:31  . . . . . . . . Segger_write_debug_port_register
2020-Mar-04 13:09:31  . . . . . . . . Segger_write_debug_port_register:	JLink INFO	T195C 000:217.163   
2020-Mar-04 13:09:31  . . . . . . . . Segger_write_debug_port_register:	JLink INFO	JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
2020-Mar-04 13:09:31  . . . . . . . . Segger_write_debug_port_register:	JLink INFO	T195C 000:220.117   
2020-Mar-04 13:09:31  . . . . . . . . Segger_write_debug_port_register:	JLink INFO	- 4.248ms returns -1  
2020-Mar-04 13:09:31  . . . . . . . . Segger_write_debug_port_register:	JLinkARM.dll CORESIGHT_WriteAPDPReg returned error -1.

2020-Mar-04 13:09:31  . . . . . . . . . Segger_abort_debug_action
2020-Mar-04 13:09:31  . . . . . . . . . Segger_abort_debug_action:	Attempting to clear any configuration errors in debug port before closing connection. 

2020-Mar-04 13:09:31  . . . . . . . . . Segger_abort_debug_action:	JLink INFO	T195C 000:225.310   
2020-Mar-04 13:09:31  . . . . . . . . . Segger_abort_debug_action:	JLink INFO	JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
2020-Mar-04 13:09:31  . . . . . . . . . Segger_abort_debug_action:	JLink INFO	T195C 000:227.974   
2020-Mar-04 13:09:31  . . . . . . . . . Segger_abort_debug_action:	JLink INFO	- 3.655ms returns -1  
2020-Mar-04 13:09:31  . . . . . . . . . Segger_abort_debug_action:	JLinkARM.dll CORESIGHT_WriteAPDPReg returned error -1.

2020-Mar-04 13:09:31  . . . . . Segger_read_access_port_register:	JLink INFO	T195C 000:230.916 
2020-Mar-04 13:09:31  . . . . . Segger_read_access_port_register:	JLink INFO	JLINK_Unlock()  
2020-Mar-04 13:09:31  nRF_close_dll
2020-Mar-04 13:09:31  . nRF52_close_dll
2020-Mar-04 13:09:31  . . Segger_close
2020-Mar-04 13:09:31  . . . Segger_disconnect_from_emu
2020-Mar-04 13:09:31  . . . . Segger_is_connected_to_emu
2020-Mar-04 13:09:31  . . . . Segger_is_connected_to_emu:	JLink INFO	T195C 000:237.544 
2020-Mar-04 13:09:31  . . . . Segger_is_connected_to_emu:	JLink INFO	JLINK_IsOpen()  
2020-Mar-04 13:09:31  . . . . Segger_is_connected_to_emu:	JLink INFO	T195C 000:239.495 
2020-Mar-04 13:09:31  . . . . Segger_is_connected_to_emu:	JLink INFO	- 2.959ms returns 0x01  
2020-Mar-04 13:09:31  . . . . Segger_disconnect_from_emu
2020-Mar-04 13:09:31  . . . . . Segger_is_connected_to_device
2020-Mar-04 13:09:31  . . . . . Segger_is_connected_to_device:	JLink INFO	T195C 000:243.395 
2020-Mar-04 13:09:31  . . . . . Segger_is_connected_to_device:	JLink INFO	JLINK_IsConnected()  
2020-Mar-04 13:09:31  . . . . . Segger_is_connected_to_device:	JLink INFO	T195C 000:245.251 
2020-Mar-04 13:09:31  . . . . . Segger_is_connected_to_device:	JLink INFO	- 2.809ms returns FALSE  
2020-Mar-04 13:09:31  . . . . . Segger_is_debug_region_powered
2020-Mar-04 13:09:31  . . . . . . Segger_read_debug_port_register
2020-Mar-04 13:09:31  . . . . . . Segger_read_debug_port_register:	JLink INFO	T195C 000:249.066 
2020-Mar-04 13:09:31  . . . . . . Segger_read_debug_port_register:	JLink INFO	JLINK_Lock()  
2020-Mar-04 13:09:31  . . . . . . . Segger_write_debug_port_register
2020-Mar-04 13:09:31  . . . . . . . Segger_write_debug_port_register:	JLink INFO	T195C 000:251.930   
2020-Mar-04 13:09:31  . . . . . . . Segger_write_debug_port_register:	JLink INFO	JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
2020-Mar-04 13:09:31  . . . . . . . Segger_write_debug_port_register:	JLink INFO	T195C 000:254.551   
2020-Mar-04 13:09:31  . . . . . . . Segger_write_debug_port_register:	JLink INFO	- 3.590ms returns -1  
2020-Mar-04 13:09:31  . . . . . . . Segger_write_debug_port_register:	JLinkARM.dll CORESIGHT_WriteAPDPReg returned error -1.

2020-Mar-04 13:09:31  . . . . . . . . Segger_abort_debug_action
2020-Mar-04 13:09:31  . . . . . . . . Segger_abort_debug_action:	Attempting to clear any configuration errors in debug port before closing connection. 

2020-Mar-04 13:09:31  . . . . . . . . Segger_abort_debug_action:	JLink INFO	T195C 000:259.383   
2020-Mar-04 13:09:31  . . . . . . . . Segger_abort_debug_action:	JLink INFO	JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
2020-Mar-04 13:09:31  . . . . . . . . Segger_abort_debug_action:	JLink INFO	T195C 000:261.948   
2020-Mar-04 13:09:31  . . . . . . . . Segger_abort_debug_action:	JLink INFO	- 3.529ms returns -1  
2020-Mar-04 13:09:31  . . . . . . . . Segger_abort_debug_action:	JLinkARM.dll CORESIGHT_WriteAPDPReg returned error -1.

2020-Mar-04 13:09:31  . . . . . . Segger_read_debug_port_register:	JLink INFO	T195C 000:264.840 
2020-Mar-04 13:09:31  . . . . . . Segger_read_debug_port_register:	JLink INFO	JLINK_Unlock()  
2020-Mar-04 13:09:31  . . . . Segger_disconnect_from_emu:	JLink INFO	T195C 000:290.404 
2020-Mar-04 13:09:31  . . . . Segger_disconnect_from_emu:	JLink INFO	JLINK_Close()  
2020-Mar-04 13:09:31  . . Segger_close:	Freeing Library.

2020-Mar-04 13:09:31  nRF_close_dll:	Freeing Library.

2020-Mar-04 12:32:29  --------------------------------------------------------------------------------
2020-Mar-04 12:32:29  nrfjprog --family NRF52 --recover --log 
2020-Mar-04 12:32:29  nrfjprog version 10.6.0 
2020-Mar-04 12:32:29  --------------------------------------------------------------------------------
2020-Mar-04 12:32:29  nRF_logger_open
2020-Mar-04 12:32:29  nRF_logger_open:	nRFJProg logger opened to callback at address 0X2E0610
2020-Mar-04 12:32:29  nRF_open_dll
2020-Mar-04 12:32:29  nRF_open_dll:	Load library at "C:\\Program Files (x86)\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\JLINKARM_NRF52_NRFJPROG.dll".

2020-Mar-04 12:32:29  . nRF52_logger_open
2020-Mar-04 12:32:29  . nRF52_logger_open:	nRFJProg logger opened to callback at address 0X6033B6D0
2020-Mar-04 12:32:29  . nRF52_open_dll
2020-Mar-04 12:32:29  . . Segger_logger_open
2020-Mar-04 12:32:29  . . Segger_logger_open:	nRFJProg logger opened to callback at address 0X5BDF0300
2020-Mar-04 12:32:29  . . Segger_open_dll
2020-Mar-04 12:32:29  . . Segger_open_dll:	Load library at "C:\\Program Files (x86)\\SEGGER\\JLink\\JLinkARM.dll".

2020-Mar-04 12:32:29  . . . Segger_dll_version
2020-Mar-04 12:32:29  . . Segger_set_core_data
2020-Mar-04 12:32:29  nRF_enum_emu_snr
2020-Mar-04 12:32:29  . nRF52_enum_emu_snr
2020-Mar-04 12:32:29  . . Segger_enum_emu_snr
2020-Mar-04 12:32:29  . . . Segger_enum_emu_snr
2020-Mar-04 12:32:29  . . . . Segger_get_num_emus
2020-Mar-04 12:32:29  nRF_connect_to_emu_with_snr
2020-Mar-04 12:32:29  . nRF52_connect_to_emu_with_snr
2020-Mar-04 12:32:29  . . Segger_connect_to_emu_with_snr
2020-Mar-04 12:32:29  . . . Segger_is_connected_to_emu
2020-Mar-04 12:32:29  . . . Segger_enum_emu_snr
2020-Mar-04 12:32:29  . . . . Segger_get_num_emus
2020-Mar-04 12:32:29  . . . Segger_connect_to_emu_with_snr
2020-Mar-04 12:32:29  . . . . Segger_connect_to_emu_without_snr
2020-Mar-04 12:32:29  . . . . Segger_connect_to_emu_without_snr:	Segger logging enabled with callback at 0x1541342864.

2020-Mar-04 12:32:29  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T37C4 000:014.796   
2020-Mar-04 12:32:29  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	Firmware: J-Link V10 compiled Jan  7 2020 16:51:47
2020-Mar-04 12:32:29  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T37C4 000:017.319   
2020-Mar-04 12:32:29  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	Decompressing FW timestamp took 125 us
2020-Mar-04 12:32:29  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T37C4 000:022.956   
2020-Mar-04 12:32:29  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	Hardware: V10.10
2020-Mar-04 12:32:29  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T37C4 000:025.302   
2020-Mar-04 12:32:29  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	S/N: 260112676
2020-Mar-04 12:32:29  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T37C4 000:027.248   
2020-Mar-04 12:32:29  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	OEM: SEGGER-EDU
2020-Mar-04 12:32:29  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T37C4 000:029.044   
2020-Mar-04 12:32:29  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	Feature(s): FlashBP, GDB
2020-Mar-04 12:32:29  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T37C4 000:031.395   
2020-Mar-04 12:32:29  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	TELNET listener socket opened on port 19021
2020-Mar-04 12:32:29  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T37C4 000:032.344   
2020-Mar-04 12:32:29  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	WEBSRV Starting webserver
2020-Mar-04 12:32:29  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T37C4 000:033.223   
2020-Mar-04 12:32:29  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	WEBSRV Webserver running on local port 19080
2020-Mar-04 12:32:29  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T37C4 000:034.042 
2020-Mar-04 12:32:29  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	- 22.636ms returns O.K.  
2020-Mar-04 12:32:29  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T37C4 000:034.870 
2020-Mar-04 12:32:29  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	JLINK_GetHWStatus(...)  
2020-Mar-04 12:32:29  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T37C4 000:035.892 
2020-Mar-04 12:32:29  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	- 1.447ms returns 0x00  
2020-Mar-04 12:32:29  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T37C4 000:036.759 
2020-Mar-04 12:32:29  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	JLINK_ExecCommand("SetRestartOnClose = 0", ...).   
2020-Mar-04 12:32:29  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T37C4 000:037.699 
2020-Mar-04 12:32:29  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	- 0.486ms returns 0x01  
2020-Mar-04 12:32:29  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T37C4 000:038.644 
2020-Mar-04 12:32:29  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	JLINK_ExecCommand("DisableFlashDL", ...).   
2020-Mar-04 12:32:29  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T37C4 000:039.566 
2020-Mar-04 12:32:29  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	- 0.465ms returns 0x00  
2020-Mar-04 12:32:29  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T37C4 000:040.525 
2020-Mar-04 12:32:29  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	JLINK_ExecCommand("ExcludeFlashCacheRange 0x0-0xFFFFFFFF", ...).   
2020-Mar-04 12:32:29  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T37C4 000:041.458 
2020-Mar-04 12:32:29  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	- 0.461ms returns 0x00  
2020-Mar-04 12:32:29  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T37C4 000:042.382   
2020-Mar-04 12:32:29  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	JLINK_SetHookUnsecureDialog(...)
2020-Mar-04 12:32:29  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T37C4 000:043.376 
2020-Mar-04 12:32:29  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	- 1.451ms returns 0  
2020-Mar-04 12:32:29  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T37C4 000:044.296 
2020-Mar-04 12:32:29  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	JLINK_TIF_Select(JLINKARM_TIF_SWD)  
2020-Mar-04 12:32:29  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T37C4 000:046.069 
2020-Mar-04 12:32:29  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	- 2.203ms returns 0x00  
2020-Mar-04 12:32:29  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T37C4 000:046.936 
2020-Mar-04 12:32:29  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	JLINK_SetSpeed(2000)  
2020-Mar-04 12:32:29  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	T37C4 000:047.953 
2020-Mar-04 12:32:29  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	- 1.460ms  
2020-Mar-04 12:32:29  . . . . . Segger_load_core_data
2020-Mar-04 12:32:29  . . . . . Segger_load_core_data:	JLink INFO	T37C4 000:049.250 
2020-Mar-04 12:32:29  . . . . . Segger_load_core_data:	JLink INFO	JLINK_ExecCommand("CORESIGHT_SetIndexAHBAPToUse = 0", ...).   
2020-Mar-04 12:32:29  . . . . . Segger_load_core_data:	JLink INFO	T37C4 000:050.116 
2020-Mar-04 12:32:29  . . . . . Segger_load_core_data:	JLink INFO	- 0.420ms returns 0x00  
2020-Mar-04 12:32:29  . . . . . Segger_load_core_data:	JLink INFO	T37C4 000:050.955 
2020-Mar-04 12:32:29  . . . . . Segger_load_core_data:	JLink INFO	JLINK_ExecCommand("device = nRF52832_xxAA", ...).   
2020-Mar-04 12:32:29  . . . . . Segger_load_core_data:	JLink INFO	T37C4 000:057.831   
2020-Mar-04 12:32:29  . . . . . Segger_load_core_data:	JLink INFO	XML file found at: C:\Program Files (x86)\SEGGER\JLink\JLinkDevices.xml 
2020-Mar-04 12:32:29  . . . . . Segger_load_core_data:	JLink INFO	T37C4 000:059.399   
2020-Mar-04 12:32:29  . . . . . Segger_load_core_data:	JLink INFO	C:\Program Files (x86)\SEGGER\JLink\JLinkDevices.xml evaluated successfully. 
2020-Mar-04 12:32:29  . . . . . Segger_load_core_data:	JLink INFO	T37C4 000:102.190   
2020-Mar-04 12:32:29  . . . . . Segger_load_core_data:	JLink INFO	Device "NRF52832_XXAA" selected.
2020-Mar-04 12:32:29  . . . . . Segger_load_core_data:	JLink INFO	T37C4 000:104.628 
2020-Mar-04 12:32:29  . . . . . Segger_load_core_data:	JLink INFO	- 53.328ms returns 0x00  
2020-Mar-04 12:32:29  nRF_recover
2020-Mar-04 12:32:29  . nRF52_recover
2020-Mar-04 12:32:29  . . nRF52_is_ctrl_ap_available
2020-Mar-04 12:32:29  . . . Segger_read_access_port_register
2020-Mar-04 12:32:29  . . . . Segger_is_connected_to_emu
2020-Mar-04 12:32:29  . . . . Segger_is_connected_to_emu:	JLink INFO	T37C4 000:108.188 
2020-Mar-04 12:32:29  . . . . Segger_is_connected_to_emu:	JLink INFO	JLINK_IsOpen()  
2020-Mar-04 12:32:29  . . . . Segger_is_connected_to_emu:	JLink INFO	T37C4 000:109.128 
2020-Mar-04 12:32:29  . . . . Segger_is_connected_to_emu:	JLink INFO	- 1.446ms returns 0x01  
2020-Mar-04 12:32:29  . . . . Segger_read_access_port_register
2020-Mar-04 12:32:29  . . . . Segger_read_access_port_register:	JLink INFO	T37C4 000:110.621 
2020-Mar-04 12:32:29  . . . . Segger_read_access_port_register:	JLink INFO	JLINK_Lock()  
2020-Mar-04 12:32:29  . . . . . Segger_coresight_configure
2020-Mar-04 12:32:29  . . . . . Segger_coresight_configure:	JLink INFO	T37C4 000:112.029   
2020-Mar-04 12:32:29  . . . . . Segger_coresight_configure:	JLink INFO	JLINK_CORESIGHT_Configure()  
2020-Mar-04 12:32:29  . . . . . Segger_coresight_configure:	JLink INFO	T37C4 000:213.141   
2020-Mar-04 12:32:29  . . . . . Segger_coresight_configure:	JLink INFO	- 101.951ms returns 0  
2020-Mar-04 12:32:29  . . . . . Segger_is_debug_region_powered
2020-Mar-04 12:32:29  . . . . . . Segger_read_debug_port_register
2020-Mar-04 12:32:29  . . . . . . . Segger_write_debug_port_register
2020-Mar-04 12:32:29  . . . . . . . Segger_write_debug_port_register:	JLink INFO	T37C4 000:216.514   
2020-Mar-04 12:32:29  . . . . . . . Segger_write_debug_port_register:	JLink INFO	JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
2020-Mar-04 12:32:29  . . . . . . . Segger_write_debug_port_register:	JLink INFO	T37C4 000:218.438   
2020-Mar-04 12:32:29  . . . . . . . Segger_write_debug_port_register:	JLink INFO	- 2.528ms returns -1  
2020-Mar-04 12:32:29  . . . . . . . Segger_write_debug_port_register:	JLinkARM.dll CORESIGHT_WriteAPDPReg returned error -1.

2020-Mar-04 12:32:29  . . . . . . . . Segger_abort_debug_action
2020-Mar-04 12:32:29  . . . . . . . . Segger_abort_debug_action:	Attempting to clear any configuration errors in debug port before closing connection. 

2020-Mar-04 12:32:29  . . . . . . . . Segger_abort_debug_action:	JLink INFO	T37C4 000:221.686   
2020-Mar-04 12:32:29  . . . . . . . . Segger_abort_debug_action:	JLink INFO	JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
2020-Mar-04 12:32:29  . . . . . . . . Segger_abort_debug_action:	JLink INFO	T37C4 000:223.339   
2020-Mar-04 12:32:29  . . . . . . . . Segger_abort_debug_action:	JLink INFO	- 2.122ms returns -1  
2020-Mar-04 12:32:29  . . . . . . . . Segger_abort_debug_action:	JLinkARM.dll CORESIGHT_WriteAPDPReg returned error -1.

2020-Mar-04 12:32:29  . . . . Segger_read_access_port_register:	JLink INFO	T37C4 000:224.727 
2020-Mar-04 12:32:29  . . . . Segger_read_access_port_register:	JLink INFO	JLINK_Unlock()  
2020-Mar-04 12:32:29  nRF_close_dll
2020-Mar-04 12:32:29  . nRF52_close_dll
2020-Mar-04 12:32:29  . . Segger_close
2020-Mar-04 12:32:29  . . . Segger_disconnect_from_emu
2020-Mar-04 12:32:29  . . . . Segger_is_connected_to_emu
2020-Mar-04 12:32:29  . . . . Segger_is_connected_to_emu:	JLink INFO	T37C4 000:227.993 
2020-Mar-04 12:32:29  . . . . Segger_is_connected_to_emu:	JLink INFO	JLINK_IsOpen()  
2020-Mar-04 12:32:29  . . . . Segger_is_connected_to_emu:	JLink INFO	T37C4 000:228.907 
2020-Mar-04 12:32:29  . . . . Segger_is_connected_to_emu:	JLink INFO	- 1.371ms returns 0x01  
2020-Mar-04 12:32:29  . . . . Segger_disconnect_from_emu
2020-Mar-04 12:32:29  . . . . . Segger_is_connected_to_device
2020-Mar-04 12:32:29  . . . . . Segger_is_connected_to_device:	JLink INFO	T37C4 000:230.748 
2020-Mar-04 12:32:29  . . . . . Segger_is_connected_to_device:	JLink INFO	JLINK_IsConnected()  
2020-Mar-04 12:32:29  . . . . . Segger_is_connected_to_device:	JLink INFO	T37C4 000:231.682 
2020-Mar-04 12:32:29  . . . . . Segger_is_connected_to_device:	JLink INFO	- 1.388ms returns FALSE  
2020-Mar-04 12:32:29  . . . . . Segger_is_debug_region_powered
2020-Mar-04 12:32:29  . . . . . . Segger_read_debug_port_register
2020-Mar-04 12:32:29  . . . . . . Segger_read_debug_port_register:	JLink INFO	T37C4 000:233.543 
2020-Mar-04 12:32:29  . . . . . . Segger_read_debug_port_register:	JLink INFO	JLINK_Lock()  
2020-Mar-04 12:32:29  . . . . . . . Segger_write_debug_port_register
2020-Mar-04 12:32:29  . . . . . . . Segger_write_debug_port_register:	JLink INFO	T37C4 000:234.953   
2020-Mar-04 12:32:29  . . . . . . . Segger_write_debug_port_register:	JLink INFO	JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
2020-Mar-04 12:32:29  . . . . . . . Segger_write_debug_port_register:	JLink INFO	T37C4 000:236.374   
2020-Mar-04 12:32:29  . . . . . . . Segger_write_debug_port_register:	JLink INFO	- 1.891ms returns -1  
2020-Mar-04 12:32:29  . . . . . . . Segger_write_debug_port_register:	JLinkARM.dll CORESIGHT_WriteAPDPReg returned error -1.

2020-Mar-04 12:32:29  . . . . . . . . Segger_abort_debug_action
2020-Mar-04 12:32:29  . . . . . . . . Segger_abort_debug_action:	Attempting to clear any configuration errors in debug port before closing connection. 

2020-Mar-04 12:32:29  . . . . . . . . Segger_abort_debug_action:	JLink INFO	T37C4 000:238.675   
2020-Mar-04 12:32:29  . . . . . . . . Segger_abort_debug_action:	JLink INFO	JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
2020-Mar-04 12:32:29  . . . . . . . . Segger_abort_debug_action:	JLink INFO	T37C4 000:240.089   
2020-Mar-04 12:32:29  . . . . . . . . Segger_abort_debug_action:	JLink INFO	- 1.873ms returns -1  
2020-Mar-04 12:32:29  . . . . . . . . Segger_abort_debug_action:	JLinkARM.dll CORESIGHT_WriteAPDPReg returned error -1.

2020-Mar-04 12:32:29  . . . . . . Segger_read_debug_port_register:	JLink INFO	T37C4 000:241.474 
2020-Mar-04 12:32:29  . . . . . . Segger_read_debug_port_register:	JLink INFO	JLINK_Unlock()  
2020-Mar-04 12:32:29  . . . . Segger_disconnect_from_emu:	JLink INFO	T37C4 000:247.167 
2020-Mar-04 12:32:29  . . . . Segger_disconnect_from_emu:	JLink INFO	JLINK_Close()  
2020-Mar-04 12:32:29  . . Segger_close:	Freeing Library.

2020-Mar-04 12:32:29  nRF_close_dll:	Freeing Library.

2020-Mar-04 13:01:57  --------------------------------------------------------------------------------
2020-Mar-04 13:01:57  nrfjprog.exe -f NRF52 --coprocessor CP_NETWORK --eraseall --log 
2020-Mar-04 13:01:57  nrfjprog version 10.6.0 
2020-Mar-04 13:01:57  --------------------------------------------------------------------------------
2020-Mar-04 13:01:57  nRF_logger_open
2020-Mar-04 13:01:57  nRF_logger_open:	nRFJProg logger opened to callback at address 0X2E0610
2020-Mar-04 13:01:57  nRF_open_dll
2020-Mar-04 13:01:57  nRF_open_dll:	Load library at "C:\\Program Files (x86)\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\JLINKARM_NRF52_NRFJPROG.dll".

2020-Mar-04 13:01:57  . nRF52_logger_open
2020-Mar-04 13:01:57  . nRF52_logger_open:	nRFJProg logger opened to callback at address 0X536FB6D0
2020-Mar-04 13:01:57  . nRF52_open_dll
2020-Mar-04 13:01:57  . . Segger_logger_open
2020-Mar-04 13:01:57  . . Segger_logger_open:	nRFJProg logger opened to callback at address 0X52D50300
2020-Mar-04 13:01:57  . . Segger_open_dll
2020-Mar-04 13:01:57  . . Segger_open_dll:	Load library at "C:\\Program Files (x86)\\SEGGER\\JLink\\JLinkARM.dll".

2020-Mar-04 13:01:57  . . . Segger_dll_version
2020-Mar-04 13:01:57  . . Segger_set_core_data
2020-Mar-04 13:01:57  nRF_enum_emu_snr
2020-Mar-04 13:01:57  . nRF52_enum_emu_snr
2020-Mar-04 13:01:57  . . Segger_enum_emu_snr
2020-Mar-04 13:01:57  . . . Segger_enum_emu_snr
2020-Mar-04 13:01:57  . . . . Segger_get_num_emus
2020-Mar-04 13:01:57  nRF_close_dll
2020-Mar-04 13:01:57  . nRF52_close_dll
2020-Mar-04 13:01:57  . . Segger_close
2020-Mar-04 13:01:57  . . . Segger_disconnect_from_emu
2020-Mar-04 13:01:57  . . . . Segger_is_connected_to_emu
2020-Mar-04 13:01:57  . . Segger_close:	Freeing Library.

2020-Mar-04 13:01:57  nRF_close_dll:	Freeing Library.

I have read many questions from the forum and no answer was valid for me. I don’t know what else to do and the problem is that I don’t think that my micro is broken because it is running the last code that allows me to even connect with its BLE.

 

My code is based in the “ble_peripheral\ ble_app_uart” example of nRF5_SDK_12.3.0_d7731ad sdk. And before this last code I was loading one that tried to change the flash using the FDS library but without success.

 

May I have removed something of the flash that is needed for being able to erase or recover the micro?

I would appreciate any help. Thanks a lot.

Parents
  • Hi,

    It looks like the debugger cannot find the device. Is it powered correctly, and is the SWD pins correctly connected?

    The --coprocessor option should not be used with nRF52 devices.

    Best regards,
    Jørgen

  • Did you flash some firmware running the watchdog? Please see this errata

    Do you have a different debugger that you can try? Can you post an image of your setup and connections?

  • Did you flash some firmware running the watchdog? Please see this errata.

    We don't have WDT enabled so the answer is no.

    Do you have a different debugger that you can try?

    Yes. We have another and we have test with both of them with the same results.

    Can you post an image of your setup and connections?

    Sorry. I don't understand what do you exactly want. Do you refer to the schematic?

  • Leti said:
    We don't have WDT enabled so the answer is no.

    Can you still try to run the recover command in nrfjprog multiple times, to make sure there is no issues with getting the debugger connected due to this errata.

    Leti said:
    Sorry. I don't understand what do you exactly want. Do you refer to the schematic?

    I mean an image of how you have powered the board and how it is connected to the debugger.

    Which application image did you flash to the board before the issue occurred? 

  • Is it powered correctly, and is the SWD pins correctly connected?

    See no evil Right now I really don't know if I lied to you. Now I am no longer able to connect with the target from the J-Link RTT Viewer. In fact I think now my target has definitely dead because I don't see a correct running. But I was able to program it many times so I understand that it was correctly powered and correctly connected, or shouldn't I?

    May be only those pins broke. But do you know possible causes that can cause that?

  • Can you still try to run the recover command in nrfjprog multiple times, to make sure there is no issues with getting the debugger connected due to this errata.

    I tried with a .bat with a loop. And it ran more than 200 times.

    :loop
    nrfjprog --recover -f nrf52
    goto loop

    Which application image did you flash to the board before the issue occurred? 

    The last version of my custome code. It is based on one of the ble_peripheral example.

    I mean an image of how you have powered the board and how it is connected to the debugger.

    In a photo you are not going to see to much. I also attach the schematic related to this.

    Power by a battery.

Reply
  • Can you still try to run the recover command in nrfjprog multiple times, to make sure there is no issues with getting the debugger connected due to this errata.

    I tried with a .bat with a loop. And it ran more than 200 times.

    :loop
    nrfjprog --recover -f nrf52
    goto loop

    Which application image did you flash to the board before the issue occurred? 

    The last version of my custome code. It is based on one of the ble_peripheral example.

    I mean an image of how you have powered the board and how it is connected to the debugger.

    In a photo you are not going to see to much. I also attach the schematic related to this.

    Power by a battery.

Children
No Data
Related