[2025-Apr-21 16:55:55] [debug] -------------------------------------------------------------------------------- [2025-Apr-21 16:55:55] [debug] nrfjprog -f NRF52 --recover --log [2025-Apr-21 16:55:55] [debug] nrfjprog version 10.24.2 external [2025-Apr-21 16:55:55] [debug] -------------------------------------------------------------------------------- [2025-Apr-21 16:55:55] [ info] Load library at C:\Program Files\Nordic Semiconductor\nrf-command-line-tools\bin\nrfjprog.dll. [2025-Apr-21 16:55:55] [ info] Library loaded, loading member functions. [2025-Apr-21 16:55:55] [ info] Member functions succesfully loaded. [2025-Apr-21 16:55:55] [debug] [ Client] - open [2025-Apr-21 16:55:55] [debug] [ Client] - start [2025-Apr-21 16:55:55] [ info] [ Client] - stdout: Jlinkarm nRF Worker ready. Handling sequence 370d4d5d-e479-44d7-af5d-9929676ead5d. [2025-Apr-21 16:55:55] [trace] [ Client] - Command open executed for 44 milliseconds with result 0 [2025-Apr-21 16:55:55] [debug] [ Client] - config [2025-Apr-21 16:55:55] [debug] [SeggerBackend] - Logger sink registered in Segger backend logger [2025-Apr-21 16:55:55] [debug] [ JLink] - Logger sink registered in JLink logger [2025-Apr-21 16:55:55] [debug] [ nRF52] - open [2025-Apr-21 16:55:55] [debug] [ nRF52] - just_check_family [2025-Apr-21 16:55:55] [debug] [SeggerBackend] - open_dll [2025-Apr-21 16:55:55] [debug] [SeggerBackend] - No J-Link DLL path was provided. Attempting to auto detect. [2025-Apr-21 16:55:55] [ info] [SeggerBackend] - Load library at C:\Program Files\SEGGER\JLink_V818\JLink_x64.dll. [2025-Apr-21 16:55:55] [ info] [SeggerBackend] - Library loaded, loading member functions. [2025-Apr-21 16:55:55] [ info] [SeggerBackend] - Member functions succesfully loaded. [2025-Apr-21 16:55:55] [debug] [SeggerBackend] - Set batch mode [2025-Apr-21 16:55:55] [debug] [SeggerBackend] - dll_version [2025-Apr-21 16:55:55] [ info] [SeggerBackend] - Segger dll version 8.18. loaded. [2025-Apr-21 16:55:55] [trace] [ Worker] - Command open executed for 5 milliseconds with result 0 [2025-Apr-21 16:55:55] [trace] [ Client] - Command config executed for 15 milliseconds with result 0 [2025-Apr-21 16:55:55] [debug] [ Client] - enum_emu_snr [2025-Apr-21 16:55:55] [debug] [ nRF52] - config [2025-Apr-21 16:55:55] [debug] [SeggerBackend] - enum_emu_snr [2025-Apr-21 16:55:55] [trace] [ Worker] - Command config executed for 2 milliseconds with result 0 [2025-Apr-21 16:55:55] [trace] [ Client] - Command enum_emu_con_info executed for 14 milliseconds with result 0 [2025-Apr-21 16:55:55] [debug] [ Client] - connect_to_emu_with_snr [2025-Apr-21 16:55:55] [debug] [ nRF52] - enum_emu_con_info [2025-Apr-21 16:55:55] [debug] [SeggerBackend] - is_connected_to_emu [2025-Apr-21 16:55:55] [debug] [SeggerBackend] - enum_emu_con_info [2025-Apr-21 16:55:55] [debug] [SeggerBackend] - is_connected_to_emu [2025-Apr-21 16:55:55] [trace] [ Worker] - Command enum_emu_con_info executed for 6 milliseconds with result 0 [2025-Apr-21 16:55:55] [debug] [ nRF52] - connect_to_emu_with_snr [2025-Apr-21 16:55:55] [debug] [SeggerBackend] - is_connected_to_emu [2025-Apr-21 16:55:55] [debug] [SeggerBackend] - connect_to_emu_with_snr [2025-Apr-21 16:55:55] [debug] [SeggerBackend] - is_connected_to_emu [2025-Apr-21 16:55:55] [debug] [SeggerBackend] - ---just_enum_emu_snr [2025-Apr-21 16:55:55] [debug] [SeggerBackend] - ---just_get_num_emus [2025-Apr-21 16:55:55] [debug] [SeggerBackend] - ---just_connect_to_emu_with_snr [2025-Apr-21 16:55:55] [debug] [SeggerBackend] - ---just_connect_to_emu_without_snr [2025-Apr-21 16:55:55] [debug] [SeggerBackend] - Segger logging enabled. [2025-Apr-21 16:55:55] [trace] [ JLink] - Firmware: J-Link V9 compiled May 7 2021 16:26:12 [2025-Apr-21 16:55:55] [trace] [ JLink] - Firmware: J-Link V9 compiled May 7 2021 16:26:12 [2025-Apr-21 16:55:55] [trace] [ JLink] - Decompressing FW timestamp took 95 us [2025-Apr-21 16:55:55] [trace] [ JLink] - Hardware: V9.60 [2025-Apr-21 16:55:55] [trace] [ JLink] - S/N: 69652448 [2025-Apr-21 16:55:55] [trace] [ JLink] - OEM: SEGGER [2025-Apr-21 16:55:55] [trace] [ JLink] - Feature(s): RDI, GDB, FlashDL, FlashBP, JFlash [2025-Apr-21 16:55:55] [trace] [ JLink] - Bootloader: (FW returned invalid version) [2025-Apr-21 16:55:55] [trace] [ JLink] - TELNET listener socket opened on port 19021 [2025-Apr-21 16:55:55] [trace] [ JLink] - WEBSRV WEBSRV_Init(): Starting webserver thread(s) [2025-Apr-21 16:55:55] [trace] [ JLink] - WEBSRV Webserver running on local port 19080 [2025-Apr-21 16:55:55] [trace] [ JLink] - Looking for J-Link GUI Server exe at: C:\Program Files\SEGGER\JLink_V818\JLinkGUIServer.exe [2025-Apr-21 16:55:55] [trace] [ JLink] - Forking J-Link GUI Server: C:\Program Files\SEGGER\JLink_V818\JLinkGUIServer.exe [2025-Apr-21 16:55:55] [trace] [ Client] - Command connect_to_emu_with_snr executed for 91 milliseconds with result 0 [2025-Apr-21 16:55:55] [debug] [ Client] - read_connected_emu_snr [2025-Apr-21 16:55:55] [trace] [ JLink] - J-Link GUI Server info: "J-Link GUI server V8.18 " [2025-Apr-21 16:55:55] [trace] [ JLink] - - 48.227ms returns "O.K." [2025-Apr-21 16:55:55] [trace] [ JLink] - JLINK_HasError() [2025-Apr-21 16:55:55] [trace] [ JLink] - JLINK_Lock() [2025-Apr-21 16:55:55] [trace] [ JLink] - JLINK_ExecCommand("SetRestartOnClose = 0", ...). [2025-Apr-21 16:55:55] [trace] [ JLink] - - 0.002ms returns 0x01 [2025-Apr-21 16:55:55] [trace] [ JLink] - JLINK_HasError() [2025-Apr-21 16:55:55] [trace] [ JLink] - JLINK_ExecCommand("DisableFlashDL", ...). [2025-Apr-21 16:55:55] [trace] [ JLink] - - 0.000ms returns 0x00 [2025-Apr-21 16:55:55] [trace] [ JLink] - JLINK_HasError() [2025-Apr-21 16:55:55] [trace] [ JLink] - JLINK_ExecCommand("ExcludeFlashCacheRange 0x0-0xFFFFFFFF", ...). [2025-Apr-21 16:55:55] [trace] [ JLink] - - 0.002ms returns 0x00 [2025-Apr-21 16:55:55] [trace] [ JLink] - JLINK_HasError() [2025-Apr-21 16:55:55] [trace] [ JLink] - JLINK_SetHookUnsecureDialog [2025-Apr-21 16:55:55] [trace] [ JLink] - JLINK_SetHookUnsecureDialog(...) [2025-Apr-21 16:55:55] [trace] [ JLink] - - 0.006ms returns 0 [2025-Apr-21 16:55:55] [trace] [ JLink] - JLINK_HasError() [2025-Apr-21 16:55:55] [trace] [ Client] - Command read_connected_emu_snr executed for 0 milliseconds with result 0 [2025-Apr-21 16:55:55] [trace] [ JLink] - JLINK_TIF_Select(JLINKARM_TIF_SWD) [2025-Apr-21 16:55:55] [trace] [ JLink] - - 1.090ms returns 0x00 [2025-Apr-21 16:55:55] [trace] [ JLink] - JLINK_HasError() [2025-Apr-21 16:55:55] [trace] [ JLink] - JLINK_GetSpeedInfo() [2025-Apr-21 16:55:55] [trace] [ JLink] - 12000000 Hz / n, n >= 1 [2025-Apr-21 16:55:55] [trace] [ JLink] - - 0.009ms [2025-Apr-21 16:55:55] [trace] [ JLink] - JLINK_HasError() [2025-Apr-21 16:55:55] [debug] [SeggerBackend] - Connected emulator supports SWD speeds up to 12000kHz [2025-Apr-21 16:55:55] [trace] [ JLink] - JLINK_SetSpeed(2000) [2025-Apr-21 16:55:55] [trace] [ JLink] - - 0.341ms [2025-Apr-21 16:55:55] [trace] [ JLink] - JLINK_HasError() [2025-Apr-21 16:55:55] [trace] [ JLink] - JLINK_GetSpeed() [2025-Apr-21 16:55:55] [trace] [ JLink] - - 0.005ms returns 2000 [2025-Apr-21 16:55:55] [trace] [ JLink] - JLINK_HasError() [2025-Apr-21 16:55:55] [debug] [SeggerBackend] - SWD clock set to 2000kHz [2025-Apr-21 16:55:55] [trace] [ JLink] - JLINK_GetSN() [2025-Apr-21 16:55:55] [trace] [ JLink] - - 0.002ms returns 69652448 [2025-Apr-21 16:55:55] [trace] [ JLink] - JLINK_HasError() [2025-Apr-21 16:55:55] [trace] [ JLink] - - 0.003ms [2025-Apr-21 16:55:55] [debug] [ nRF52] - read_device_family [2025-Apr-21 16:55:55] [trace] [ Worker] - Command connect_to_emu_with_snr executed for 75 milliseconds with result 0 [2025-Apr-21 16:55:55] [debug] [ nRF52] - read_connected_emu_snr [2025-Apr-21 16:55:55] [debug] [SeggerBackend] - is_connected_to_emu [2025-Apr-21 16:55:55] [trace] [ JLink] - JLINK_IsOpen() [2025-Apr-21 16:55:55] [trace] [ JLink] - - 0.019ms returns 0x01 [2025-Apr-21 16:55:55] [trace] [ JLink] - JLINK_HasError() [2025-Apr-21 16:55:55] [trace] [ JLink] - JLINK_Lock() [2025-Apr-21 16:55:55] [debug] [SeggerBackend] - read_connected_emu_snr [2025-Apr-21 16:55:55] [trace] [ JLink] - - 0.003ms [2025-Apr-21 16:55:55] [trace] [ Worker] - Command read_connected_emu_snr executed for 0 milliseconds with result 0 [2025-Apr-21 16:55:55] [debug] [ Client] - recover [2025-Apr-21 16:55:55] [error] [ Client] - Encountered error -21: Command recover executed for 13 milliseconds with result -21 [2025-Apr-21 16:55:55] [debug] [ nRF52] - recover [2025-Apr-21 16:55:55] [debug] [SeggerBackend] - is_connected_to_emu [2025-Apr-21 16:55:55] [trace] [ JLink] - JLINK_IsOpen() [2025-Apr-21 16:55:55] [trace] [ JLink] - - 0.002ms returns 0x01 [2025-Apr-21 16:55:55] [trace] [ JLink] - JLINK_HasError() [2025-Apr-21 16:55:55] [trace] [ JLink] - JLINK_Lock() [2025-Apr-21 16:55:55] [debug] [SeggerBackend] - is_connected_to_emu [2025-Apr-21 16:55:55] [debug] [ nRF52] - Just_recover [2025-Apr-21 16:55:55] [debug] [ nRF52] - Just_is_ctrl_ap_available [2025-Apr-21 16:55:55] [debug] [SeggerBackend] - read_access_port_register [2025-Apr-21 16:55:55] [debug] [SeggerBackend] - ---just_read_access_port_register [2025-Apr-21 16:55:55] [debug] [SeggerBackend] - coresight_configure [2025-Apr-21 16:55:55] [trace] [ JLink] - JLINK_GetHWStatus(...) [2025-Apr-21 16:55:55] [trace] [ JLink] - - 0.301ms returns 0 [2025-Apr-21 16:55:55] [trace] [ JLink] - JLINK_HasError() [2025-Apr-21 16:55:55] [trace] [ JLink] - JLINK_CORESIGHT_Configure() [2025-Apr-21 16:55:55] [trace] [ JLink] - - 1.534ms returns 0 [2025-Apr-21 16:55:55] [trace] [ JLink] - JLINK_HasError() [2025-Apr-21 16:55:55] [debug] [SeggerBackend] - read_debug_port_idr [2025-Apr-21 16:55:55] [debug] [SeggerBackend] - read_debug_port_register [2025-Apr-21 16:55:55] [debug] [SeggerBackend] - ---just_read_debug_port_register [2025-Apr-21 16:55:55] [debug] [SeggerBackend] - ---just_select_debug_port_register [2025-Apr-21 16:55:55] [debug] [SeggerBackend] - Select AP 255, DP Bank 0, AP Bank 255 [2025-Apr-21 16:55:55] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000) [2025-Apr-21 16:55:55] [trace] [ JLink] - - 0.331ms returns 0 [2025-Apr-21 16:55:55] [trace] [ JLink] - JLINK_HasError() [2025-Apr-21 16:55:55] [trace] [ JLink] - JLINK_CORESIGHT_ReadAPDPReg(DP reg 0x00) [2025-Apr-21 16:55:55] [trace] [ JLink] - Value=0x00000000 [2025-Apr-21 16:55:55] [trace] [ JLink] - - 0.311ms returns 0 [2025-Apr-21 16:55:55] [trace] [ JLink] - JLINK_HasError() [2025-Apr-21 16:55:55] [trace] [ JLink] - - 0.052ms [2025-Apr-21 16:55:55] [error] [ Worker] - Encountered unexpected debug port ID 0, expected 2 [2025-Apr-21 16:55:55] [trace] [ Worker] - Command recover executed for 2 milliseconds with result -21 [2025-Apr-21 16:55:55] [debug] [ nRF52] - close [2025-Apr-21 16:55:55] [debug] [SeggerBackend] - is_connected_to_emu [2025-Apr-21 16:55:55] [trace] [ JLink] - JLINK_IsOpen() [2025-Apr-21 16:55:55] [trace] [ JLink] - - 0.008ms returns 0x01 [2025-Apr-21 16:55:55] [trace] [ JLink] - JLINK_HasError() [2025-Apr-21 16:55:55] [trace] [ JLink] - JLINK_Lock() [2025-Apr-21 16:55:55] [debug] [SeggerBackend] - close [2025-Apr-21 16:55:55] [debug] [SeggerBackend] - disconnect_from_emu [2025-Apr-21 16:55:55] [debug] [SeggerBackend] - ---just_disconnect_from_emu [2025-Apr-21 16:55:55] [debug] [SeggerBackend] - is_connected_to_device [2025-Apr-21 16:55:55] [trace] [ JLink] - JLINK_IsConnected() [2025-Apr-21 16:55:55] [trace] [ JLink] - - 0.002ms returns FALSE [2025-Apr-21 16:55:55] [trace] [ JLink] - JLINK_HasError() [2025-Apr-21 16:55:55] [debug] [SeggerBackend] - ---just_is_debug_region_powered [2025-Apr-21 16:55:55] [debug] [SeggerBackend] - ---just_read_debug_port_register [2025-Apr-21 16:55:55] [debug] [SeggerBackend] - ---just_select_debug_port_register [2025-Apr-21 16:55:55] [debug] [SeggerBackend] - Select AP 255, DP Bank 0, AP Bank 255 [2025-Apr-21 16:55:55] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000) [2025-Apr-21 16:55:55] [trace] [ JLink] - - 0.487ms returns 0 [2025-Apr-21 16:55:55] [trace] [ JLink] - JLINK_HasError() [2025-Apr-21 16:55:55] [trace] [ JLink] - JLINK_CORESIGHT_ReadAPDPReg(DP reg 0x01) [2025-Apr-21 16:55:55] [trace] [ JLink] - Value=0x00000000 [2025-Apr-21 16:55:55] [trace] [ JLink] - - 0.573ms returns 0 [2025-Apr-21 16:55:55] [trace] [ JLink] - JLINK_HasError() [2025-Apr-21 16:55:55] [trace] [ JLink] - - 0.003ms [2025-Apr-21 16:55:55] [trace] [ JLink] - JLINK_Close() [2025-Apr-21 16:55:55] [trace] [ Client] - Command close executed for 60 milliseconds with result 0 [2025-Apr-21 16:55:55] [debug] [ Client] - terminate [2025-Apr-21 16:55:55] [debug] [SeggerBackend] - Segger Backend closed. [2025-Apr-21 16:55:55] [debug] [ nRF52] - nRF family DLL closed [2025-Apr-21 16:55:55] [trace] [ Client] - Command terminate executed for 0 milliseconds with result 0 [2025-Apr-21 16:55:55] [trace] [ Worker] - Command close executed for 44 milliseconds with result 0 [2025-Apr-21 16:55:55] [trace] [ Worker] - Command terminate executed for 0 milliseconds with result 0 [2025-Apr-21 16:55:55] [trace] [ Worker] - Executed 8 commands for 134 milliseconds [2025-Apr-21 16:55:55] [debug] [ Client] - Worker process exited with code: 0 [2025-Apr-21 16:55:55] [debug] [ Client] - Worker process exited with code: 0 [2025-Apr-21 16:55:55] [debug] [ Client] - Child process terminated with result 0 [2025-Apr-21 16:55:55] [trace] [ Client] - Executed 8 commands for 237 milliseconds [2025-Apr-21 16:55:55] [debug] [ Client] - terminate