RECOVER_FAILED while tring to program NRF52840 using nrf programmer.

Hello there,

I'm facing this issue(check the attached image) while tring to "Erase All" which indicates that it's protected that's why it failed to recover.

I searched for a solution, and found some suggestions to use the command "nrfjprog.exe -f nrf52 --recover --log", so I ran it and the logs are provided for it(check the attached .log file).

(The error on cmd tells that the used family is wrong, but it's right as you even can check the detected family with nrf programmer).

[2024-Jan-14 14:04:15] [debug] --------------------------------------------------------------------------------
[2024-Jan-14 14:04:15] [debug] nrfjprog.exe -f nrf52 --recover --log 
[2024-Jan-14 14:04:15] [debug] nrfjprog version 10.23.2 external
[2024-Jan-14 14:04:15] [debug] --------------------------------------------------------------------------------
[2024-Jan-14 14:04:15] [ info] Load library at C:\Users\mahmoud\nrf-command-line-tools\bin\nrfjprog.dll.
[2024-Jan-14 14:04:15] [ info] Library loaded, loading member functions.
[2024-Jan-14 14:04:15] [ info] Member functions succesfully loaded.
[2024-Jan-14 14:04:15] [debug] [ Client] - open
[2024-Jan-14 14:04:15] [debug] [ Client] - start
[2024-Jan-14 14:04:16] [ info] [ Client] - stdout: Jlinkarm nRF Worker ready. Handling sequence 6627b671-934c-42c5-9fd0-9585ad1d5f8e.

[2024-Jan-14 14:04:16] [trace] [ Client] - Command open executed for 45 milliseconds with result 0
[2024-Jan-14 14:04:16] [debug] [ Client] - config
[2024-Jan-14 14:04:16] [debug] [SeggerBackend] - Logger sink registered in Segger backend logger
[2024-Jan-14 14:04:16] [debug] [  JLink] - Logger sink registered in JLink logger
[2024-Jan-14 14:04:16] [debug] [  nRF52] - open
[2024-Jan-14 14:04:16] [debug] [  nRF52] - just_check_family
[2024-Jan-14 14:04:16] [debug] [SeggerBackend] - open_dll
[2024-Jan-14 14:04:16] [debug] [SeggerBackend] - No J-Link DLL path was provided. Attempting to auto detect.
[2024-Jan-14 14:04:16] [ info] [SeggerBackend] - Load library at C:\Program Files\SEGGER\JLink\JLink_x64.dll.
[2024-Jan-14 14:04:16] [ info] [SeggerBackend] - Library loaded, loading member functions.
[2024-Jan-14 14:04:16] [ info] [SeggerBackend] - Member functions succesfully loaded.
[2024-Jan-14 14:04:16] [debug] [SeggerBackend] - Set batch mode
[2024-Jan-14 14:04:16] [debug] [SeggerBackend] - dll_version
[2024-Jan-14 14:04:16] [ info] [SeggerBackend] - Segger dll version 7.88.j loaded.
[2024-Jan-14 14:04:16] [trace] [ Worker] - Command open executed for 3 milliseconds with result 0
[2024-Jan-14 14:04:16] [trace] [ Client] - Command config executed for 15 milliseconds with result 0
[2024-Jan-14 14:04:16] [debug] [  nRF52] - config
[2024-Jan-14 14:04:16] [debug] [SeggerBackend] - enum_emu_snr
[2024-Jan-14 14:04:16] [trace] [ Worker] - Command config executed for 2 milliseconds with result 0
[2024-Jan-14 14:04:16] [debug] [ Client] - enum_emu_snr
[2024-Jan-14 14:04:16] [trace] [ Client] - Command enum_emu_con_info executed for 15 milliseconds with result 0
[2024-Jan-14 14:04:16] [debug] [  nRF52] - enum_emu_con_info
[2024-Jan-14 14:04:16] [debug] [ Client] - connect_to_emu_with_snr
[2024-Jan-14 14:04:16] [debug] [SeggerBackend] - is_connected_to_emu
[2024-Jan-14 14:04:16] [debug] [SeggerBackend] - enum_emu_con_info
[2024-Jan-14 14:04:16] [debug] [SeggerBackend] - is_connected_to_emu
[2024-Jan-14 14:04:16] [trace] [ Worker] - Command enum_emu_con_info executed for 2 milliseconds with result 0
[2024-Jan-14 14:04:16] [debug] [  nRF52] - connect_to_emu_with_snr
[2024-Jan-14 14:04:16] [debug] [SeggerBackend] - is_connected_to_emu
[2024-Jan-14 14:04:16] [debug] [SeggerBackend] - connect_to_emu_with_snr
[2024-Jan-14 14:04:16] [debug] [SeggerBackend] - is_connected_to_emu
[2024-Jan-14 14:04:16] [debug] [SeggerBackend] - ---just_enum_emu_snr
[2024-Jan-14 14:04:16] [debug] [SeggerBackend] - ---just_get_num_emus
[2024-Jan-14 14:04:16] [debug] [SeggerBackend] - ---just_connect_to_emu_with_snr
[2024-Jan-14 14:04:16] [debug] [SeggerBackend] - ---just_connect_to_emu_without_snr
[2024-Jan-14 14:04:16] [debug] [SeggerBackend] - Segger logging enabled.
[2024-Jan-14 14:04:16] [trace] [  JLink] - Firmware: J-Link EDU Mini V1 compiled Jun  6 2023 10:50:57
[2024-Jan-14 14:04:16] [trace] [  JLink] - Firmware: J-Link EDU Mini V1 compiled Jun  6 2023 10:50:57
[2024-Jan-14 14:04:16] [trace] [  JLink] - Hardware: V1.00
[2024-Jan-14 14:04:16] [trace] [  JLink] - S/N: 801041217
[2024-Jan-14 14:04:16] [trace] [  JLink] - OEM: SEGGER
[2024-Jan-14 14:04:16] [trace] [  JLink] - Feature(s): FlashBP, GDB
[2024-Jan-14 14:04:16] [trace] [  JLink] - Bootloader: 2016 Nov 30
[2024-Jan-14 14:04:16] [trace] [  JLink] - USB speed mode: Full speed (12 MBit/s)
[2024-Jan-14 14:04:16] [trace] [  JLink] - TELNET listener socket opened on port 19021
[2024-Jan-14 14:04:16] [trace] [  JLink] - WEBSRV WEBSRV_Init(): Starting webserver thread(s)
[2024-Jan-14 14:04:16] [trace] [  JLink] - WEBSRV Webserver running on local port 19080
[2024-Jan-14 14:04:16] [trace] [  JLink] - Looking for J-Link GUI Server exe at: C:\Program Files\SEGGER\JLink\JLinkGUIServer.exe 
[2024-Jan-14 14:04:16] [trace] [  JLink] - Forking J-Link GUI Server: C:\Program Files\SEGGER\JLink\JLinkGUIServer.exe 
[2024-Jan-14 14:04:16] [trace] [ Client] - Command connect_to_emu_with_snr executed for 62 milliseconds with result 0
[2024-Jan-14 14:04:16] [debug] [ Client] - read_connected_emu_snr
[2024-Jan-14 14:04:16] [trace] [  JLink] - J-Link GUI Server info: "J-Link GUI server V7.88j " 
[2024-Jan-14 14:04:16] [trace] [ Client] - Command read_connected_emu_snr executed for 15 milliseconds with result 0
[2024-Jan-14 14:04:16] [trace] [  JLink] - - 41.489ms returns "O.K."  
[2024-Jan-14 14:04:16] [trace] [  JLink] - JLINK_HasError()  
[2024-Jan-14 14:04:16] [trace] [  JLink] - JLINK_Lock()  
[2024-Jan-14 14:04:16] [trace] [  JLink] - JLINK_ExecCommand("SetRestartOnClose = 0", ...).   
[2024-Jan-14 14:04:16] [trace] [  JLink] - - 0.005ms returns 0x01  
[2024-Jan-14 14:04:16] [trace] [  JLink] - JLINK_HasError()  
[2024-Jan-14 14:04:16] [trace] [  JLink] - JLINK_ExecCommand("DisableFlashDL", ...).   
[2024-Jan-14 14:04:16] [trace] [  JLink] - - 0.006ms returns 0x00  
[2024-Jan-14 14:04:16] [trace] [  JLink] - JLINK_HasError()  
[2024-Jan-14 14:04:16] [trace] [  JLink] - JLINK_ExecCommand("ExcludeFlashCacheRange 0x0-0xFFFFFFFF", ...).   
[2024-Jan-14 14:04:16] [trace] [  JLink] - - 0.006ms returns 0x00  
[2024-Jan-14 14:04:16] [trace] [  JLink] - JLINK_HasError()  
[2024-Jan-14 14:04:16] [trace] [  JLink] - JLINK_SetHookUnsecureDialog  
[2024-Jan-14 14:04:16] [trace] [  JLink] - JLINK_SetHookUnsecureDialog(...)
[2024-Jan-14 14:04:16] [trace] [  JLink] - - 0.022ms returns 0  
[2024-Jan-14 14:04:16] [trace] [  JLink] - JLINK_HasError()  
[2024-Jan-14 14:04:16] [trace] [  JLink] - JLINK_TIF_Select(JLINKARM_TIF_SWD)  
[2024-Jan-14 14:04:16] [trace] [  JLink] - - 0.759ms returns 0x00  
[2024-Jan-14 14:04:16] [trace] [  JLink] - JLINK_HasError()  
[2024-Jan-14 14:04:16] [trace] [  JLink] - JLINK_GetSpeedInfo()  
[2024-Jan-14 14:04:16] [trace] [  JLink] - 96000000 Hz / n, n >= 24
[2024-Jan-14 14:04:16] [trace] [  JLink] - - 0.010ms  
[2024-Jan-14 14:04:16] [trace] [  JLink] - JLINK_HasError()  
[2024-Jan-14 14:04:16] [debug] [SeggerBackend] - Connected emulator supports SWD speeds up to 4000kHz
[2024-Jan-14 14:04:16] [trace] [  JLink] - JLINK_SetSpeed(2000)  
[2024-Jan-14 14:04:16] [trace] [  JLink] - - 0.127ms  
[2024-Jan-14 14:04:16] [trace] [  JLink] - JLINK_HasError()  
[2024-Jan-14 14:04:16] [trace] [  JLink] - JLINK_GetSpeed()  
[2024-Jan-14 14:04:16] [trace] [  JLink] - - 0.004ms returns 2000  
[2024-Jan-14 14:04:16] [trace] [  JLink] - JLINK_HasError()  
[2024-Jan-14 14:04:16] [debug] [SeggerBackend] - SWD clock set to 2000kHz
[2024-Jan-14 14:04:16] [trace] [  JLink] - JLINK_GetSN()  
[2024-Jan-14 14:04:16] [trace] [  JLink] - - 0.005ms returns 801041217  
[2024-Jan-14 14:04:16] [trace] [  JLink] - JLINK_HasError()  
[2024-Jan-14 14:04:16] [trace] [  JLink] - - 0.005ms  
[2024-Jan-14 14:04:16] [debug] [  nRF52] - read_device_family
[2024-Jan-14 14:04:16] [trace] [ Worker] - Command connect_to_emu_with_snr executed for 56 milliseconds with result 0
[2024-Jan-14 14:04:16] [debug] [  nRF52] - read_connected_emu_snr
[2024-Jan-14 14:04:16] [debug] [SeggerBackend] - is_connected_to_emu
[2024-Jan-14 14:04:16] [trace] [  JLink] - JLINK_IsOpen()  
[2024-Jan-14 14:04:16] [trace] [  JLink] - - 0.010ms returns 0x01  
[2024-Jan-14 14:04:16] [trace] [  JLink] - JLINK_HasError()  
[2024-Jan-14 14:04:16] [trace] [  JLink] - JLINK_Lock()  
[2024-Jan-14 14:04:16] [debug] [SeggerBackend] - read_connected_emu_snr
[2024-Jan-14 14:04:16] [trace] [  JLink] - - 0.009ms  
[2024-Jan-14 14:04:16] [trace] [ Worker] - Command read_connected_emu_snr executed for 0 milliseconds with result 0
[2024-Jan-14 14:04:16] [debug] [ Client] - recover
[2024-Jan-14 14:04:16] [debug] [  nRF52] - recover
[2024-Jan-14 14:04:16] [debug] [SeggerBackend] - is_connected_to_emu
[2024-Jan-14 14:04:16] [trace] [  JLink] - JLINK_IsOpen()  
[2024-Jan-14 14:04:16] [trace] [  JLink] - - 0.008ms returns 0x01  
[2024-Jan-14 14:04:16] [trace] [  JLink] - JLINK_HasError()  
[2024-Jan-14 14:04:16] [trace] [  JLink] - JLINK_Lock()  
[2024-Jan-14 14:04:16] [debug] [SeggerBackend] - is_connected_to_emu
[2024-Jan-14 14:04:16] [debug] [  nRF52] - Just_recover
[2024-Jan-14 14:04:16] [debug] [  nRF52] - Just_is_ctrl_ap_available
[2024-Jan-14 14:04:16] [debug] [SeggerBackend] - read_access_port_register
[2024-Jan-14 14:04:16] [debug] [SeggerBackend] - ---just_read_access_port_register
[2024-Jan-14 14:04:16] [debug] [SeggerBackend] - coresight_configure
[2024-Jan-14 14:04:16] [trace] [  JLink] - JLINK_GetHWStatus(...)  
[2024-Jan-14 14:04:16] [trace] [  JLink] - - 0.260ms returns 0  
[2024-Jan-14 14:04:16] [trace] [  JLink] - JLINK_HasError()  
[2024-Jan-14 14:04:16] [trace] [  JLink] - JLINK_CORESIGHT_Configure()  
[2024-Jan-14 14:04:16] [trace] [  JLink] - - 0.893ms returns 0  
[2024-Jan-14 14:04:16] [trace] [  JLink] - JLINK_HasError()  
[2024-Jan-14 14:04:16] [debug] [SeggerBackend] - read_debug_port_idr
[2024-Jan-14 14:04:16] [debug] [SeggerBackend] - read_debug_port_register
[2024-Jan-14 14:04:16] [debug] [SeggerBackend] - ---just_read_debug_port_register
[2024-Jan-14 14:04:16] [debug] [SeggerBackend] - ---just_select_debug_port_register
[2024-Jan-14 14:04:16] [debug] [SeggerBackend] - Select AP 255, DP Bank 0, AP Bank 255
[2024-Jan-14 14:04:16] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
[2024-Jan-14 14:04:16] [trace] [  JLink] - - 0.291ms returns 0  
[2024-Jan-14 14:04:16] [trace] [  JLink] - JLINK_HasError()  
[2024-Jan-14 14:04:16] [trace] [  JLink] - JLINK_CORESIGHT_ReadAPDPReg(DP reg 0x00)  
[2024-Jan-14 14:04:16] [trace] [  JLink] - Value=0x2BA01477
[2024-Jan-14 14:04:16] [trace] [  JLink] - - 0.250ms returns 0  
[2024-Jan-14 14:04:16] [trace] [  JLink] - JLINK_HasError()  
[2024-Jan-14 14:04:16] [debug] [SeggerBackend] - ---just_is_debug_region_powered
[2024-Jan-14 14:04:16] [debug] [SeggerBackend] - ---just_read_debug_port_register
[2024-Jan-14 14:04:16] [debug] [SeggerBackend] - ---just_select_debug_port_register
[2024-Jan-14 14:04:16] [trace] [  JLink] - JLINK_CORESIGHT_ReadAPDPReg(DP reg 0x01)  
[2024-Jan-14 14:04:16] [trace] [  JLink] - Value=0xF0000000
[2024-Jan-14 14:04:16] [trace] [  JLink] - - 0.358ms returns 0  
[2024-Jan-14 14:04:16] [trace] [  JLink] - JLINK_HasError()  
[2024-Jan-14 14:04:16] [debug] [SeggerBackend] - ---just_select_access_port_register
[2024-Jan-14 14:04:16] [debug] [SeggerBackend] - Select AP 1, DP Bank 0, AP Bank 15
[2024-Jan-14 14:04:16] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x010000F0)  
[2024-Jan-14 14:04:16] [trace] [  JLink] - - 0.271ms returns 0  
[2024-Jan-14 14:04:16] [trace] [  JLink] - JLINK_HasError()  
[2024-Jan-14 14:04:16] [trace] [  JLink] - JLINK_CORESIGHT_ReadAPDPReg(AP reg 0x03)  
[2024-Jan-14 14:04:16] [trace] [  JLink] - Value=0x02880000
[2024-Jan-14 14:04:16] [trace] [  JLink] - - 0.286ms returns 0  
[2024-Jan-14 14:04:16] [trace] [  JLink] - JLINK_HasError()  
[2024-Jan-14 14:04:16] [debug] [SeggerBackend] - read_access_port_register
[2024-Jan-14 14:04:16] [debug] [SeggerBackend] - ---just_read_access_port_register
[2024-Jan-14 14:04:16] [debug] [SeggerBackend] - ---just_select_access_port_register
[2024-Jan-14 14:04:16] [trace] [  JLink] - JLINK_CORESIGHT_ReadAPDPReg(AP reg 0x03)  
[2024-Jan-14 14:04:16] [trace] [  JLink] - Value=0x02880000
[2024-Jan-14 14:04:16] [trace] [  JLink] - - 0.298ms returns 0  
[2024-Jan-14 14:04:16] [trace] [  JLink] - JLINK_HasError()  
[2024-Jan-14 14:04:16] [debug] [SeggerBackend] - read_access_port_register
[2024-Jan-14 14:04:16] [debug] [SeggerBackend] - ---just_read_access_port_register
[2024-Jan-14 14:04:16] [debug] [SeggerBackend] - ---just_select_access_port_register
[2024-Jan-14 14:04:16] [trace] [  JLink] - JLINK_CORESIGHT_ReadAPDPReg(AP reg 0x03)  
[2024-Jan-14 14:04:16] [trace] [  JLink] - Value=0x02880000
[2024-Jan-14 14:04:16] [trace] [  JLink] - - 0.256ms returns 0  
[2024-Jan-14 14:04:16] [trace] [  JLink] - JLINK_HasError()  
[2024-Jan-14 14:04:16] [debug] [SeggerBackend] - read_access_port_register
[2024-Jan-14 14:04:16] [debug] [SeggerBackend] - ---just_read_access_port_register
[2024-Jan-14 14:04:16] [debug] [SeggerBackend] - ---just_select_access_port_register
[2024-Jan-14 14:04:16] [trace] [  JLink] - JLINK_CORESIGHT_ReadAPDPReg(AP reg 0x03)  
[2024-Jan-14 14:04:16] [trace] [  JLink] - Value=0x02880000
[2024-Jan-14 14:04:16] [trace] [  JLink] - - 0.305ms returns 0  
[2024-Jan-14 14:04:16] [trace] [  JLink] - JLINK_HasError()  
[2024-Jan-14 14:04:16] [debug] [SeggerBackend] - write_access_port_register
[2024-Jan-14 14:04:16] [debug] [SeggerBackend] - ---just_write_access_port_register
[2024-Jan-14 14:04:16] [debug] [SeggerBackend] - ---just_select_access_port_register
[2024-Jan-14 14:04:16] [debug] [SeggerBackend] - Select AP 1, DP Bank 0, AP Bank 0
[2024-Jan-14 14:04:16] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x01000000)  
[2024-Jan-14 14:04:16] [trace] [  JLink] - - 0.247ms returns 0  
[2024-Jan-14 14:04:16] [trace] [  JLink] - JLINK_HasError()  
[2024-Jan-14 14:04:16] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(AP reg 0x01, 0x00000001)  
[2024-Jan-14 14:04:16] [trace] [  JLink] - - 0.247ms returns 0  
[2024-Jan-14 14:04:16] [trace] [  JLink] - JLINK_HasError()  
[2024-Jan-14 14:04:16] [debug] [SeggerBackend] - read_access_port_register
[2024-Jan-14 14:04:16] [debug] [SeggerBackend] - ---just_read_access_port_register
[2024-Jan-14 14:04:16] [debug] [SeggerBackend] - ---just_select_access_port_register
[2024-Jan-14 14:04:16] [trace] [  JLink] - JLINK_CORESIGHT_ReadAPDPReg(AP reg 0x02)  
[2024-Jan-14 14:04:16] [trace] [  JLink] - Value=0x00000000
[2024-Jan-14 14:04:16] [trace] [  JLink] - - 0.941ms returns 0  
[2024-Jan-14 14:04:16] [trace] [  JLink] - JLINK_HasError()  
[2024-Jan-14 14:04:16] [debug] [  nRF52] - Just_debug_reset
[2024-Jan-14 14:04:16] [debug] [  nRF52] - Just_is_ctrl_ap_available
[2024-Jan-14 14:04:16] [debug] [SeggerBackend] - read_access_port_register
[2024-Jan-14 14:04:16] [debug] [SeggerBackend] - ---just_read_access_port_register
[2024-Jan-14 14:04:16] [debug] [SeggerBackend] - ---just_select_access_port_register
[2024-Jan-14 14:04:16] [debug] [SeggerBackend] - Select AP 1, DP Bank 0, AP Bank 15
[2024-Jan-14 14:04:16] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x010000F0)  
[2024-Jan-14 14:04:16] [trace] [  JLink] - - 0.706ms returns 0  
[2024-Jan-14 14:04:16] [trace] [  JLink] - JLINK_HasError()  
[2024-Jan-14 14:04:16] [trace] [  JLink] - JLINK_CORESIGHT_ReadAPDPReg(AP reg 0x03)  
[2024-Jan-14 14:04:16] [trace] [  JLink] - Value=0x00000000
[2024-Jan-14 14:04:16] [trace] [  JLink] - - 0.743ms returns 0  
[2024-Jan-14 14:04:16] [trace] [  JLink] - JLINK_HasError()  
[2024-Jan-14 14:04:16] [debug] [SeggerBackend] - read_access_port_register
[2024-Jan-14 14:04:16] [debug] [SeggerBackend] - ---just_read_access_port_register
[2024-Jan-14 14:04:16] [debug] [SeggerBackend] - ---just_select_access_port_register
[2024-Jan-14 14:04:16] [trace] [  JLink] - JLINK_CORESIGHT_ReadAPDPReg(AP reg 0x03)  
[2024-Jan-14 14:04:16] [trace] [  JLink] - Value=0x00000000
[2024-Jan-14 14:04:16] [trace] [  JLink] - - 0.832ms returns 0  
[2024-Jan-14 14:04:16] [trace] [  JLink] - JLINK_HasError()  
[2024-Jan-14 14:04:16] [debug] [SeggerBackend] - read_access_port_register
[2024-Jan-14 14:04:16] [debug] [SeggerBackend] - ---just_read_access_port_register
[2024-Jan-14 14:04:16] [debug] [SeggerBackend] - ---just_select_access_port_register
[2024-Jan-14 14:04:16] [trace] [  JLink] - JLINK_CORESIGHT_ReadAPDPReg(AP reg 0x03)  
[2024-Jan-14 14:04:16] [trace] [  JLink] - Value=0x00000000
[2024-Jan-14 14:04:16] [trace] [  JLink] - - 0.893ms returns 0  
[2024-Jan-14 14:04:16] [trace] [  JLink] - JLINK_HasError()  
[2024-Jan-14 14:04:16] [debug] [SeggerBackend] - read_access_port_register
[2024-Jan-14 14:04:16] [debug] [SeggerBackend] - ---just_read_access_port_register
[2024-Jan-14 14:04:16] [debug] [SeggerBackend] - ---just_select_access_port_register
[2024-Jan-14 14:04:16] [trace] [  JLink] - JLINK_CORESIGHT_ReadAPDPReg(AP reg 0x03)  
[2024-Jan-14 14:04:16] [trace] [  JLink] - Value=0x00000000
[2024-Jan-14 14:04:16] [trace] [  JLink] - - 0.744ms returns 0  
[2024-Jan-14 14:04:16] [trace] [  JLink] - JLINK_HasError()  
[2024-Jan-14 14:04:16] [warning] [  nRF52] - Encountered error while recovering, retrying. -4: nRF52832 engineering A does not support debug reset.
[2024-Jan-14 14:04:16] [debug] [SeggerBackend] - write_access_port_register
[2024-Jan-14 14:04:16] [debug] [SeggerBackend] - ---just_write_access_port_register
[2024-Jan-14 14:04:16] [debug] [SeggerBackend] - ---just_select_access_port_register
[2024-Jan-14 14:04:16] [debug] [SeggerBackend] - Select AP 1, DP Bank 0, AP Bank 0
[2024-Jan-14 14:04:16] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x01000000)  
[2024-Jan-14 14:04:16] [trace] [  JLink] - - 0.458ms returns 0  
[2024-Jan-14 14:04:16] [trace] [  JLink] - JLINK_HasError()  
[2024-Jan-14 14:04:16] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(AP reg 0x01, 0x00000001)  
[2024-Jan-14 14:04:16] [trace] [  JLink] - - 0.455ms returns 0  
[2024-Jan-14 14:04:16] [trace] [  JLink] - JLINK_HasError()  
[2024-Jan-14 14:04:17] [debug] [SeggerBackend] - read_access_port_register
[2024-Jan-14 14:04:17] [debug] [SeggerBackend] - ---just_read_access_port_register
[2024-Jan-14 14:04:17] [debug] [SeggerBackend] - ---just_select_access_port_register
[2024-Jan-14 14:04:17] [trace] [  JLink] - JLINK_CORESIGHT_ReadAPDPReg(AP reg 0x02)  
[2024-Jan-14 14:04:17] [trace] [  JLink] - Value=0x00000000
[2024-Jan-14 14:04:17] [trace] [  JLink] - - 0.542ms returns 0  
[2024-Jan-14 14:04:17] [trace] [  JLink] - JLINK_HasError()  
[2024-Jan-14 14:04:17] [debug] [  nRF52] - Just_debug_reset
[2024-Jan-14 14:04:17] [debug] [  nRF52] - Just_is_ctrl_ap_available
[2024-Jan-14 14:04:17] [debug] [SeggerBackend] - read_access_port_register
[2024-Jan-14 14:04:17] [debug] [SeggerBackend] - ---just_read_access_port_register
[2024-Jan-14 14:04:17] [debug] [SeggerBackend] - ---just_select_access_port_register
[2024-Jan-14 14:04:17] [debug] [SeggerBackend] - Select AP 1, DP Bank 0, AP Bank 15
[2024-Jan-14 14:04:17] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x010000F0)  
[2024-Jan-14 14:04:17] [trace] [  JLink] - - 0.205ms returns 0  
[2024-Jan-14 14:04:17] [trace] [  JLink] - JLINK_HasError()  
[2024-Jan-14 14:04:17] [trace] [  JLink] - JLINK_CORESIGHT_ReadAPDPReg(AP reg 0x03)  
[2024-Jan-14 14:04:17] [trace] [  JLink] - Value=0x00000000
[2024-Jan-14 14:04:17] [trace] [  JLink] - - 0.268ms returns 0  
[2024-Jan-14 14:04:17] [trace] [  JLink] - JLINK_HasError()  
[2024-Jan-14 14:04:17] [debug] [SeggerBackend] - read_access_port_register
[2024-Jan-14 14:04:17] [debug] [SeggerBackend] - ---just_read_access_port_register
[2024-Jan-14 14:04:17] [debug] [SeggerBackend] - ---just_select_access_port_register
[2024-Jan-14 14:04:17] [trace] [  JLink] - JLINK_CORESIGHT_ReadAPDPReg(AP reg 0x03)  
[2024-Jan-14 14:04:17] [trace] [  JLink] - Value=0x00000000
[2024-Jan-14 14:04:17] [trace] [  JLink] - - 0.250ms returns 0  
[2024-Jan-14 14:04:17] [trace] [  JLink] - JLINK_HasError()  
[2024-Jan-14 14:04:17] [debug] [SeggerBackend] - read_access_port_register
[2024-Jan-14 14:04:17] [debug] [SeggerBackend] - ---just_read_access_port_register
[2024-Jan-14 14:04:17] [debug] [SeggerBackend] - ---just_select_access_port_register
[2024-Jan-14 14:04:17] [trace] [  JLink] - JLINK_CORESIGHT_ReadAPDPReg(AP reg 0x03)  
[2024-Jan-14 14:04:17] [trace] [  JLink] - Value=0x00000000
[2024-Jan-14 14:04:17] [trace] [  JLink] - - 0.270ms returns 0  
[2024-Jan-14 14:04:17] [trace] [  JLink] - JLINK_HasError()  
[2024-Jan-14 14:04:17] [debug] [SeggerBackend] - read_access_port_register
[2024-Jan-14 14:04:17] [debug] [SeggerBackend] - ---just_read_access_port_register
[2024-Jan-14 14:04:17] [debug] [SeggerBackend] - ---just_select_access_port_register
[2024-Jan-14 14:04:17] [trace] [  JLink] - JLINK_CORESIGHT_ReadAPDPReg(AP reg 0x03)  
[2024-Jan-14 14:04:17] [trace] [  JLink] - Value=0x00000000
[2024-Jan-14 14:04:17] [trace] [  JLink] - - 0.253ms returns 0  
[2024-Jan-14 14:04:17] [trace] [  JLink] - JLINK_HasError()  
[2024-Jan-14 14:04:17] [warning] [  nRF52] - Encountered error while recovering, retrying. -4: nRF52832 engineering A does not support debug reset.
[2024-Jan-14 14:04:17] [debug] [SeggerBackend] - write_access_port_register
[2024-Jan-14 14:04:17] [debug] [SeggerBackend] - ---just_write_access_port_register
[2024-Jan-14 14:04:17] [debug] [SeggerBackend] - ---just_select_access_port_register
[2024-Jan-14 14:04:17] [debug] [SeggerBackend] - Select AP 1, DP Bank 0, AP Bank 0
[2024-Jan-14 14:04:17] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x01000000)  
[2024-Jan-14 14:04:17] [trace] [  JLink] - - 0.279ms returns 0  
[2024-Jan-14 14:04:17] [trace] [  JLink] - JLINK_HasError()  
[2024-Jan-14 14:04:17] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(AP reg 0x01, 0x00000001)  
[2024-Jan-14 14:04:17] [trace] [  JLink] - - 0.239ms returns 0  
[2024-Jan-14 14:04:17] [trace] [  JLink] - JLINK_HasError()  
[2024-Jan-14 14:04:17] [debug] [SeggerBackend] - read_access_port_register
[2024-Jan-14 14:04:17] [debug] [SeggerBackend] - ---just_read_access_port_register
[2024-Jan-14 14:04:17] [debug] [SeggerBackend] - ---just_select_access_port_register
[2024-Jan-14 14:04:17] [trace] [  JLink] - JLINK_CORESIGHT_ReadAPDPReg(AP reg 0x02)  
[2024-Jan-14 14:04:17] [trace] [  JLink] - Value=0x00000000
[2024-Jan-14 14:04:17] [trace] [  JLink] - - 0.683ms returns 0  
[2024-Jan-14 14:04:17] [trace] [  JLink] - JLINK_HasError()  
[2024-Jan-14 14:04:17] [debug] [  nRF52] - Just_debug_reset
[2024-Jan-14 14:04:17] [debug] [  nRF52] - Just_is_ctrl_ap_available
[2024-Jan-14 14:04:17] [debug] [SeggerBackend] - read_access_port_register
[2024-Jan-14 14:04:17] [debug] [SeggerBackend] - ---just_read_access_port_register
[2024-Jan-14 14:04:17] [debug] [SeggerBackend] - ---just_select_access_port_register
[2024-Jan-14 14:04:17] [debug] [SeggerBackend] - Select AP 1, DP Bank 0, AP Bank 15
[2024-Jan-14 14:04:17] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x010000F0)  
[2024-Jan-14 14:04:17] [trace] [  JLink] - - 0.540ms returns 0  
[2024-Jan-14 14:04:17] [trace] [  JLink] - JLINK_HasError()  
[2024-Jan-14 14:04:17] [trace] [  JLink] - JLINK_CORESIGHT_ReadAPDPReg(AP reg 0x03)  
[2024-Jan-14 14:04:17] [trace] [  JLink] - Value=0x00000000
[2024-Jan-14 14:04:17] [trace] [  JLink] - - 0.414ms returns 0  
[2024-Jan-14 14:04:17] [trace] [  JLink] - JLINK_HasError()  
[2024-Jan-14 14:04:17] [debug] [SeggerBackend] - read_access_port_register
[2024-Jan-14 14:04:17] [debug] [SeggerBackend] - ---just_read_access_port_register
[2024-Jan-14 14:04:17] [debug] [SeggerBackend] - ---just_select_access_port_register
[2024-Jan-14 14:04:17] [trace] [  JLink] - JLINK_CORESIGHT_ReadAPDPReg(AP reg 0x03)  
[2024-Jan-14 14:04:17] [trace] [  JLink] - Value=0x00000000
[2024-Jan-14 14:04:17] [trace] [  JLink] - - 0.393ms returns 0  
[2024-Jan-14 14:04:17] [trace] [  JLink] - JLINK_HasError()  
[2024-Jan-14 14:04:17] [debug] [SeggerBackend] - read_access_port_register
[2024-Jan-14 14:04:17] [debug] [SeggerBackend] - ---just_read_access_port_register
[2024-Jan-14 14:04:17] [debug] [SeggerBackend] - ---just_select_access_port_register
[2024-Jan-14 14:04:17] [trace] [  JLink] - JLINK_CORESIGHT_ReadAPDPReg(AP reg 0x03)  
[2024-Jan-14 14:04:17] [trace] [  JLink] - Value=0x00000000
[2024-Jan-14 14:04:17] [trace] [  JLink] - - 0.389ms returns 0  
[2024-Jan-14 14:04:17] [trace] [  JLink] - JLINK_HasError()  
[2024-Jan-14 14:04:17] [debug] [SeggerBackend] - read_access_port_register
[2024-Jan-14 14:04:17] [debug] [SeggerBackend] - ---just_read_access_port_register
[2024-Jan-14 14:04:17] [debug] [SeggerBackend] - ---just_select_access_port_register
[2024-Jan-14 14:04:17] [trace] [  JLink] - JLINK_CORESIGHT_ReadAPDPReg(AP reg 0x03)  
[2024-Jan-14 14:04:17] [trace] [  JLink] - Value=0x00000000
[2024-Jan-14 14:04:17] [trace] [  JLink] - - 0.376ms returns 0  
[2024-Jan-14 14:04:17] [trace] [  JLink] - JLINK_HasError()  
[2024-Jan-14 14:04:17] [warning] [  nRF52] - Encountered error while recovering, retrying. -4: nRF52832 engineering A does not support debug reset.
[2024-Jan-14 14:04:17] [debug] [  nRF52] - Just_read_device_version
[2024-Jan-14 14:04:17] [debug] [  nRF52] - Just_readback_status
[2024-Jan-14 14:04:17] [debug] [  nRF52] - Just_is_ctrl_ap_available
[2024-Jan-14 14:04:17] [debug] [SeggerBackend] - read_access_port_register
[2024-Jan-14 14:04:17] [debug] [SeggerBackend] - ---just_read_access_port_register
[2024-Jan-14 14:04:17] [debug] [SeggerBackend] - ---just_select_access_port_register
[2024-Jan-14 14:04:17] [trace] [  JLink] - JLINK_CORESIGHT_ReadAPDPReg(AP reg 0x03)  
[2024-Jan-14 14:04:17] [trace] [  JLink] - Value=0x00000000
[2024-Jan-14 14:04:17] [trace] [  JLink] - - 0.314ms returns 0  
[2024-Jan-14 14:04:17] [trace] [  JLink] - JLINK_HasError()  
[2024-Jan-14 14:04:17] [debug] [SeggerBackend] - read_access_port_register
[2024-Jan-14 14:04:17] [debug] [SeggerBackend] - ---just_read_access_port_register
[2024-Jan-14 14:04:17] [debug] [SeggerBackend] - ---just_select_access_port_register
[2024-Jan-14 14:04:17] [trace] [  JLink] - JLINK_CORESIGHT_ReadAPDPReg(AP reg 0x03)  
[2024-Jan-14 14:04:17] [trace] [  JLink] - Value=0x00000000
[2024-Jan-14 14:04:17] [trace] [  JLink] - - 0.557ms returns 0  
[2024-Jan-14 14:04:17] [trace] [  JLink] - JLINK_HasError()  
[2024-Jan-14 14:04:17] [debug] [SeggerBackend] - read_access_port_register
[2024-Jan-14 14:04:17] [debug] [SeggerBackend] - ---just_read_access_port_register
[2024-Jan-14 14:04:17] [debug] [SeggerBackend] - ---just_select_access_port_register
[2024-Jan-14 14:04:17] [trace] [  JLink] - JLINK_CORESIGHT_ReadAPDPReg(AP reg 0x03)  
[2024-Jan-14 14:04:17] [trace] [  JLink] - Value=0x00000000
[2024-Jan-14 14:04:17] [trace] [  JLink] - - 0.257ms returns 0  
[2024-Jan-14 14:04:17] [trace] [  JLink] - JLINK_HasError()  
[2024-Jan-14 14:04:17] [debug] [SeggerBackend] - read_access_port_register
[2024-Jan-14 14:04:17] [debug] [SeggerBackend] - ---just_read_access_port_register
[2024-Jan-14 14:04:17] [debug] [SeggerBackend] - ---just_select_access_port_register
[2024-Jan-14 14:04:17] [trace] [  JLink] - JLINK_CORESIGHT_ReadAPDPReg(AP reg 0x03)  
[2024-Jan-14 14:04:17] [trace] [  JLink] - Value=0x00000000
[2024-Jan-14 14:04:17] [trace] [  JLink] - - 0.248ms returns 0  
[2024-Jan-14 14:04:17] [trace] [  JLink] - JLINK_HasError()  
[2024-Jan-14 14:04:17] [debug] [SeggerBackend] - read_u32
[2024-Jan-14 14:04:17] [debug] [SeggerBackend] - ---just_connect_to_device
[2024-Jan-14 14:04:17] [debug] [SeggerBackend] - is_connected_to_device
[2024-Jan-14 14:04:17] [trace] [  JLink] - JLINK_IsConnected()  
[2024-Jan-14 14:04:17] [trace] [  JLink] - - 0.006ms returns FALSE  
[2024-Jan-14 14:04:17] [trace] [  JLink] - JLINK_HasError()  
[2024-Jan-14 14:04:17] [debug] [SeggerBackend] - ---set_coresight_ahb_ap_index
[2024-Jan-14 14:04:17] [trace] [  JLink] - JLINK_ExecCommand("CORESIGHT_SetIndexAHBAPToUse = 0", ...).   
[2024-Jan-14 14:04:17] [trace] [  JLink] - - 0.004ms returns 0x00  
[2024-Jan-14 14:04:17] [trace] [  JLink] - JLINK_HasError()  
[2024-Jan-14 14:04:17] [trace] [  JLink] - JLINK_ExecCommand("device = nRF52", ...).   
[2024-Jan-14 14:04:17] [trace] [  JLink] - Device "NRF52" selected.
[2024-Jan-14 14:04:17] [trace] [  JLink] - Device "NRF52" selected.
[2024-Jan-14 14:04:17] [trace] [  JLink] - - 0.566ms returns 0x00  
[2024-Jan-14 14:04:17] [trace] [  JLink] - JLINK_HasError()  
[2024-Jan-14 14:04:17] [trace] [  JLink] - JLINK_Connect()  
[2024-Jan-14 14:04:17] [trace] [  JLink] - InitTarget() start
[2024-Jan-14 14:04:17] [trace] [  JLink] - InitTarget() start
[2024-Jan-14 14:04:17] [trace] [  JLink] -  J-Link Script File: Executing InitTarget() 
[2024-Jan-14 14:04:17] [trace] [  JLink] - InitTarget() end - Took 2.57ms
[2024-Jan-14 14:04:17] [trace] [  JLink] - InitTarget() end - Took 2.57ms
[2024-Jan-14 14:04:17] [trace] [  JLink] - InitTarget() start
[2024-Jan-14 14:04:17] [trace] [  JLink] - InitTarget() start
[2024-Jan-14 14:04:17] [trace] [  JLink] -  J-Link Script File: Executing InitTarget() 
[2024-Jan-14 14:04:17] [trace] [  JLink] - InitTarget() end - Took 2.56ms
[2024-Jan-14 14:04:17] [trace] [  JLink] - InitTarget() end - Took 2.56ms
[2024-Jan-14 14:04:17] [trace] [  JLink] - - 57.506ms returns 0xFFFFFFFF  
[2024-Jan-14 14:04:17] [trace] [  JLink] - JLINK_HasError()  
[2024-Jan-14 14:04:17] [debug] [SeggerBackend] - ---just_abort_debug_action
[2024-Jan-14 14:04:17] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
[2024-Jan-14 14:04:17] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Jan-14 14:04:17] [trace] [  JLink] - - 0.248ms returns 0  
[2024-Jan-14 14:04:17] [trace] [  JLink] - JLINK_HasError()  
[2024-Jan-14 14:04:17] [trace] [  JLink] - JLINK_Connect()  
[2024-Jan-14 14:04:17] [trace] [  JLink] - InitTarget() start
[2024-Jan-14 14:04:17] [trace] [  JLink] - InitTarget() start
[2024-Jan-14 14:04:17] [trace] [  JLink] -  J-Link Script File: Executing InitTarget() 
[2024-Jan-14 14:04:17] [trace] [  JLink] - InitTarget() end - Took 2.93ms
[2024-Jan-14 14:04:17] [trace] [  JLink] - InitTarget() end - Took 2.93ms
[2024-Jan-14 14:04:17] [trace] [  JLink] - InitTarget() start
[2024-Jan-14 14:04:17] [trace] [  JLink] - InitTarget() start
[2024-Jan-14 14:04:17] [trace] [  JLink] -  J-Link Script File: Executing InitTarget() 
[2024-Jan-14 14:04:17] [trace] [  JLink] - InitTarget() end - Took 3.58ms
[2024-Jan-14 14:04:17] [trace] [  JLink] - InitTarget() end - Took 3.58ms
[2024-Jan-14 14:04:17] [trace] [  JLink] - - 58.623ms returns 0xFFFFFFFF  
[2024-Jan-14 14:04:17] [trace] [  JLink] - JLINK_HasError()  
[2024-Jan-14 14:04:17] [debug] [SeggerBackend] - ---just_abort_debug_action
[2024-Jan-14 14:04:17] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
[2024-Jan-14 14:04:17] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Jan-14 14:04:17] [trace] [  JLink] - - 0.300ms returns 0  
[2024-Jan-14 14:04:17] [trace] [  JLink] - JLINK_HasError()  
[2024-Jan-14 14:04:17] [trace] [  JLink] - JLINK_Connect()  
[2024-Jan-14 14:04:17] [trace] [  JLink] - InitTarget() start
[2024-Jan-14 14:04:17] [trace] [  JLink] - InitTarget() start
[2024-Jan-14 14:04:17] [trace] [  JLink] -  J-Link Script File: Executing InitTarget() 
[2024-Jan-14 14:04:17] [trace] [  JLink] - InitTarget() end - Took 3.44ms
[2024-Jan-14 14:04:17] [trace] [  JLink] - InitTarget() end - Took 3.44ms
[2024-Jan-14 14:04:17] [trace] [  JLink] - InitTarget() start
[2024-Jan-14 14:04:17] [trace] [  JLink] - InitTarget() start
[2024-Jan-14 14:04:17] [trace] [  JLink] -  J-Link Script File: Executing InitTarget() 
[2024-Jan-14 14:04:17] [trace] [  JLink] - InitTarget() end - Took 5.14ms
[2024-Jan-14 14:04:17] [trace] [  JLink] - InitTarget() end - Took 5.14ms
[2024-Jan-14 14:04:17] [trace] [  JLink] - - 60.889ms returns 0xFFFFFFFF  
[2024-Jan-14 14:04:17] [trace] [  JLink] - JLINK_HasError()  
[2024-Jan-14 14:04:17] [debug] [SeggerBackend] - ---just_abort_debug_action
[2024-Jan-14 14:04:17] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
[2024-Jan-14 14:04:17] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Jan-14 14:04:17] [trace] [  JLink] - - 0.342ms returns 0  
[2024-Jan-14 14:04:17] [trace] [  JLink] - JLINK_HasError()  
[2024-Jan-14 14:04:17] [trace] [  JLink] - JLINK_Connect()  
[2024-Jan-14 14:04:17] [trace] [  JLink] - InitTarget() start
[2024-Jan-14 14:04:17] [trace] [  JLink] - InitTarget() start
[2024-Jan-14 14:04:17] [trace] [  JLink] -  J-Link Script File: Executing InitTarget() 
[2024-Jan-14 14:04:17] [trace] [  JLink] - InitTarget() end - Took 2.67ms
[2024-Jan-14 14:04:17] [trace] [  JLink] - InitTarget() end - Took 2.67ms
[2024-Jan-14 14:04:17] [trace] [  JLink] - InitTarget() start
[2024-Jan-14 14:04:17] [trace] [  JLink] - InitTarget() start
[2024-Jan-14 14:04:17] [trace] [  JLink] -  J-Link Script File: Executing InitTarget() 
[2024-Jan-14 14:04:17] [trace] [  JLink] - InitTarget() end - Took 4.86ms
[2024-Jan-14 14:04:17] [trace] [  JLink] - InitTarget() end - Took 4.86ms
[2024-Jan-14 14:04:17] [trace] [  JLink] - - 60.202ms returns 0xFFFFFFFF  
[2024-Jan-14 14:04:17] [trace] [  JLink] - JLINK_HasError()  
[2024-Jan-14 14:04:17] [debug] [SeggerBackend] - ---just_abort_debug_action
[2024-Jan-14 14:04:17] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
[2024-Jan-14 14:04:17] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Jan-14 14:04:17] [trace] [  JLink] - - 0.300ms returns 0  
[2024-Jan-14 14:04:17] [trace] [  JLink] - JLINK_HasError()  
[2024-Jan-14 14:04:17] [trace] [  JLink] - JLINK_Connect()  
[2024-Jan-14 14:04:17] [trace] [  JLink] - InitTarget() start
[2024-Jan-14 14:04:17] [trace] [  JLink] - InitTarget() start
[2024-Jan-14 14:04:17] [trace] [  JLink] -  J-Link Script File: Executing InitTarget() 
[2024-Jan-14 14:04:17] [trace] [  JLink] - InitTarget() end - Took 3.13ms
[2024-Jan-14 14:04:17] [trace] [  JLink] - InitTarget() end - Took 3.13ms
[2024-Jan-14 14:04:17] [trace] [  JLink] - InitTarget() start
[2024-Jan-14 14:04:17] [trace] [  JLink] - InitTarget() start
[2024-Jan-14 14:04:17] [trace] [  JLink] -  J-Link Script File: Executing InitTarget() 
[2024-Jan-14 14:04:17] [trace] [  JLink] - InitTarget() end - Took 4.60ms
[2024-Jan-14 14:04:17] [trace] [  JLink] - InitTarget() end - Took 4.60ms
[2024-Jan-14 14:04:17] [trace] [  JLink] - - 59.823ms returns 0xFFFFFFFF  
[2024-Jan-14 14:04:17] [trace] [  JLink] - JLINK_HasError()  
[2024-Jan-14 14:04:17] [debug] [SeggerBackend] - ---just_abort_debug_action
[2024-Jan-14 14:04:17] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
[2024-Jan-14 14:04:17] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Jan-14 14:04:17] [trace] [  JLink] - - 0.436ms returns 0  
[2024-Jan-14 14:04:17] [trace] [  JLink] - JLINK_HasError()  
[2024-Jan-14 14:04:17] [trace] [  JLink] - JLINK_Connect()  
[2024-Jan-14 14:04:17] [trace] [  JLink] - InitTarget() start
[2024-Jan-14 14:04:17] [trace] [  JLink] - InitTarget() start
[2024-Jan-14 14:04:17] [trace] [  JLink] -  J-Link Script File: Executing InitTarget() 
[2024-Jan-14 14:04:17] [trace] [  JLink] - InitTarget() end - Took 3.75ms
[2024-Jan-14 14:04:17] [trace] [  JLink] - InitTarget() end - Took 3.75ms
[2024-Jan-14 14:04:18] [error] [ Client] - Encountered error -21: Command recover executed for 1887 milliseconds with result -21
[2024-Jan-14 14:04:18] [trace] [  JLink] - InitTarget() start
[2024-Jan-14 14:04:18] [trace] [  JLink] - InitTarget() start
[2024-Jan-14 14:04:18] [trace] [  JLink] -  J-Link Script File: Executing InitTarget() 
[2024-Jan-14 14:04:18] [trace] [  JLink] - InitTarget() end - Took 4.64ms
[2024-Jan-14 14:04:18] [trace] [  JLink] - InitTarget() end - Took 4.64ms
[2024-Jan-14 14:04:18] [trace] [  JLink] - - 60.820ms returns 0xFFFFFFFF  
[2024-Jan-14 14:04:18] [trace] [  JLink] - JLINK_HasError()  
[2024-Jan-14 14:04:18] [debug] [SeggerBackend] - ---just_abort_debug_action
[2024-Jan-14 14:04:18] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
[2024-Jan-14 14:04:18] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Jan-14 14:04:18] [trace] [  JLink] - - 0.297ms returns 0  
[2024-Jan-14 14:04:18] [trace] [  JLink] - JLINK_HasError()  
[2024-Jan-14 14:04:18] [trace] [  JLink] - - 0.107ms  
[2024-Jan-14 14:04:18] [error] [ Worker] - Encountered error while performing post-recover cleanup. -11: Could not connect to CPU core. This may indicate that AP protection is enabled.
An unknown error.
[2024-Jan-14 14:04:18] [trace] [ Worker] - Command recover executed for 1879 milliseconds with result -21
[2024-Jan-14 14:04:18] [debug] [  nRF52] - close
[2024-Jan-14 14:04:18] [debug] [SeggerBackend] - is_connected_to_emu
[2024-Jan-14 14:04:18] [trace] [  JLink] - JLINK_IsOpen()  
[2024-Jan-14 14:04:18] [trace] [  JLink] - - 0.015ms returns 0x01  
[2024-Jan-14 14:04:18] [trace] [  JLink] - JLINK_HasError()  
[2024-Jan-14 14:04:18] [trace] [  JLink] - JLINK_Lock()  
[2024-Jan-14 14:04:18] [debug] [SeggerBackend] - close
[2024-Jan-14 14:04:18] [debug] [SeggerBackend] - disconnect_from_emu
[2024-Jan-14 14:04:18] [debug] [SeggerBackend] - ---just_disconnect_from_emu
[2024-Jan-14 14:04:18] [debug] [SeggerBackend] - is_connected_to_device
[2024-Jan-14 14:04:18] [trace] [  JLink] - JLINK_IsConnected()  
[2024-Jan-14 14:04:18] [trace] [  JLink] - - 0.004ms returns FALSE  
[2024-Jan-14 14:04:18] [trace] [  JLink] - JLINK_HasError()  
[2024-Jan-14 14:04:18] [debug] [SeggerBackend] - ---just_is_debug_region_powered
[2024-Jan-14 14:04:18] [debug] [SeggerBackend] - ---just_read_debug_port_register
[2024-Jan-14 14:04:18] [debug] [SeggerBackend] - ---just_select_debug_port_register
[2024-Jan-14 14:04:18] [debug] [SeggerBackend] - Select AP 255, DP Bank 0, AP Bank 255
[2024-Jan-14 14:04:18] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
[2024-Jan-14 14:04:18] [trace] [  JLink] - - 0.650ms returns 0  
[2024-Jan-14 14:04:18] [trace] [  JLink] - JLINK_HasError()  
[2024-Jan-14 14:04:18] [trace] [  JLink] - JLINK_CORESIGHT_ReadAPDPReg(DP reg 0x01)  
[2024-Jan-14 14:04:18] [trace] [  JLink] - Value=0x00000000
[2024-Jan-14 14:04:18] [trace] [  JLink] - - 0.298ms returns 0  
[2024-Jan-14 14:04:18] [trace] [  JLink] - JLINK_HasError()  
[2024-Jan-14 14:04:18] [trace] [  JLink] - - 0.005ms  
[2024-Jan-14 14:04:18] [trace] [  JLink] - JLINK_Close()  
[2024-Jan-14 14:04:18] [debug] [SeggerBackend] - Segger Backend closed.
[2024-Jan-14 14:04:18] [debug] [  nRF52] - nRF family DLL closed
[2024-Jan-14 14:04:18] [trace] [ Worker] - Command close executed for 28 milliseconds with result 0
[2024-Jan-14 14:04:18] [trace] [ Client] - Command close executed for 45 milliseconds with result 0
[2024-Jan-14 14:04:18] [debug] [ Client] - terminate
[2024-Jan-14 14:04:18] [trace] [ Client] - Command terminate executed for 0 milliseconds with result 0
[2024-Jan-14 14:04:18] [trace] [ Worker] - Command terminate executed for 0 milliseconds with result 0
[2024-Jan-14 14:04:18] [trace] [ Worker] - Executed 8 commands for 1970 milliseconds
[2024-Jan-14 14:04:18] [debug] [ Client] - Worker process exited with code: 0
[2024-Jan-14 14:04:18] [debug] [ Client] - Worker process exited with code: 0
[2024-Jan-14 14:04:18] [debug] [ Client] - Child process terminated with result 0
[2024-Jan-14 14:04:18] [trace] [ Client] - Executed 8 commands for 2084 milliseconds
[2024-Jan-14 14:04:18] [debug] [ Client] - terminate

These are the used versions of nrfprog.exe:
nrfjprog version: 10.23.2 external
JLinkARM.dll version: 7.88j

and BTW I tried recovering using nRFgo Studio but didn't work also.

Related