JlinkARM.dll returns '-1' repeatedly, using nRF52840 on a custom development board

Hi,

We've been in the process of debugging our development board but are having issues. When we try to connect to our board we get:

ERROR: [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".

We are using the VS Code extensions for flashing, this is the terminal:

So I ran the same command it errors on through a CMD on Windows

Here is the provided log when attempting to run "nrfjprog --program 'zephyr.hex' --sectoranduicrerase -f NRF52 --snr 801029963"

[2022-Apr-15 20:31:36] [ info] --------------------------------------------------------------------------------
[2022-Apr-15 20:31:36] [ info] nrfjprog -f NRF52 --eraseall --log 
[2022-Apr-15 20:31:36] [ info] nrfjprog version 10.15.2 external
[2022-Apr-15 20:31:36] [ info] --------------------------------------------------------------------------------
[2022-Apr-15 20:31:36] [ info] Load library at C:\Program Files (x86)\Nordic Semiconductor\nrf-command-line-tools\bin\nrfjprog.dll.
[2022-Apr-15 20:31:36] [ info] Library loaded, loading member functions.
[2022-Apr-15 20:31:36] [ info] Member functions succesfully loaded.
[2022-Apr-15 20:31:36] [debug] [ Client] - open
[2022-Apr-15 20:31:36] [debug] [ Client] - start
[2022-Apr-15 20:31:36] [ info] [ Client] - stdout: Jlinkarm nRF Worker ready. Handling sequence 410344c7-58e5-4301-8a3e-8f52378e0a09.

[2022-Apr-15 20:31:36] [trace] [ Client] - Command open executed for 55 milliseconds with result 0
[2022-Apr-15 20:31:36] [debug] [ Client] - enum_emu_snr
[2022-Apr-15 20:31:36] [trace] [ Client] - Command enum_emu_con_info executed for 15 milliseconds with result 0
[2022-Apr-15 20:31:36] [debug] [ Client] - connect_to_emu_with_snr
[2022-Apr-15 20:31:36] [debug] [SeggerBackend] - Logger sink registered in Segger backend logger
[2022-Apr-15 20:31:36] [debug] [  JLink] - Logger sink registered in JLink logger
[2022-Apr-15 20:31:36] [debug] [  nRF52] - open
[2022-Apr-15 20:31:36] [debug] [  nRF52] - just_check_family
[2022-Apr-15 20:31:36] [debug] [SeggerBackend] - open_dll
[2022-Apr-15 20:31:36] [debug] [SeggerBackend] - No J-Link DLL path was provided. Attempting to auto detect.
[2022-Apr-15 20:31:36] [ info] [SeggerBackend] - Load library at C:\Program Files (x86)\SEGGER\JLink\JLinkARM.dll.
[2022-Apr-15 20:31:36] [ info] [SeggerBackend] - Library loaded, loading member functions.
[2022-Apr-15 20:31:36] [ info] [SeggerBackend] - Member functions succesfully loaded.
[2022-Apr-15 20:31:36] [debug] [SeggerBackend] - dll_version
[2022-Apr-15 20:31:36] [ info] [SeggerBackend] - Segger dll version 7.58.b loaded.
[2022-Apr-15 20:31:36] [trace] [ Worker] - Command open executed for 10 milliseconds with result 0
[2022-Apr-15 20:31:36] [debug] [  nRF52] - enum_emu_con_info
[2022-Apr-15 20:31:36] [debug] [SeggerBackend] - is_connected_to_emu
[2022-Apr-15 20:31:36] [debug] [SeggerBackend] - enum_emu_con_info
[2022-Apr-15 20:31:36] [debug] [SeggerBackend] - is_connected_to_emu
[2022-Apr-15 20:31:36] [trace] [ Worker] - Command enum_emu_con_info executed for 3 milliseconds with result 0
[2022-Apr-15 20:31:36] [debug] [  nRF52] - connect_to_emu_with_snr
[2022-Apr-15 20:31:36] [debug] [SeggerBackend] - is_connected_to_emu
[2022-Apr-15 20:31:36] [debug] [SeggerBackend] - connect_to_emu_with_snr
[2022-Apr-15 20:31:36] [debug] [SeggerBackend] - is_connected_to_emu
[2022-Apr-15 20:31:36] [debug] [SeggerBackend] - ---just_enum_emu_snr
[2022-Apr-15 20:31:36] [debug] [SeggerBackend] - ---just_get_num_emus
[2022-Apr-15 20:31:36] [debug] [SeggerBackend] - ---just_connect_to_emu_with_snr
[2022-Apr-15 20:31:36] [debug] [SeggerBackend] - ---just_connect_to_emu_without_snr
[2022-Apr-15 20:31:36] [debug] [SeggerBackend] - Segger logging enabled.
[2022-Apr-15 20:31:36] [trace] [  JLink] - Firmware: J-Link EDU Mini V1 compiled Nov  2 2021 11:12:01
[2022-Apr-15 20:31:36] [trace] [  JLink] - Firmware: J-Link EDU Mini V1 compiled Nov  2 2021 11:12:01
[2022-Apr-15 20:31:36] [trace] [  JLink] - Hardware: V1.00
[2022-Apr-15 20:31:36] [trace] [  JLink] - S/N: 801029963
[2022-Apr-15 20:31:36] [trace] [  JLink] - OEM: SEGGER
[2022-Apr-15 20:31:36] [trace] [  JLink] - Feature(s): FlashBP, GDB
[2022-Apr-15 20:31:36] [trace] [  JLink] - TELNET listener socket opened on port 19021
[2022-Apr-15 20:31:36] [trace] [  JLink] - WEBSRV WEBSRV_Init(): Starting webserver thread(s)
[2022-Apr-15 20:31:36] [trace] [  JLink] - WEBSRV Webserver running on local port 19080
[2022-Apr-15 20:31:36] [trace] [  JLink] - - 24.595ms returns "O.K."  
[2022-Apr-15 20:31:36] [trace] [  JLink] - JLINK_HasError()  
[2022-Apr-15 20:31:36] [trace] [  JLink] - JLINK_Lock()  
[2022-Apr-15 20:31:36] [trace] [  JLink] - JLINK_GetHWStatus(...)  
[2022-Apr-15 20:31:36] [trace] [  JLink] - - 0.251ms returns 0  
[2022-Apr-15 20:31:36] [trace] [  JLink] - JLINK_HasError()  
[2022-Apr-15 20:31:36] [trace] [  JLink] - JLINK_ExecCommand("SetRestartOnClose = 0", ...).   
[2022-Apr-15 20:31:36] [trace] [  JLink] - - 0.003ms returns 0x01  
[2022-Apr-15 20:31:36] [trace] [  JLink] - JLINK_HasError()  
[2022-Apr-15 20:31:36] [trace] [  JLink] - JLINK_ExecCommand("DisableFlashDL", ...).   
[2022-Apr-15 20:31:36] [trace] [  JLink] - - 0.003ms returns 0x00  
[2022-Apr-15 20:31:36] [trace] [  JLink] - JLINK_HasError()  
[2022-Apr-15 20:31:36] [trace] [  JLink] - JLINK_ExecCommand("ExcludeFlashCacheRange 0x0-0xFFFFFFFF", ...).   
[2022-Apr-15 20:31:36] [trace] [  JLink] - - 0.007ms returns 0x00  
[2022-Apr-15 20:31:36] [trace] [  JLink] - JLINK_HasError()  
[2022-Apr-15 20:31:36] [trace] [  JLink] - JLINK_SetHookUnsecureDialog  
[2022-Apr-15 20:31:36] [trace] [  JLink] - JLINK_SetHookUnsecureDialog(...)
[2022-Apr-15 20:31:36] [trace] [  JLink] - - 0.018ms returns 0  
[2022-Apr-15 20:31:36] [trace] [  JLink] - JLINK_HasError()  
[2022-Apr-15 20:31:36] [trace] [  JLink] - JLINK_TIF_Select(JLINKARM_TIF_SWD)  
[2022-Apr-15 20:31:36] [trace] [  JLink] - - 0.840ms returns 0x00  
[2022-Apr-15 20:31:36] [trace] [  JLink] - JLINK_HasError()  
[2022-Apr-15 20:31:36] [trace] [  JLink] - JLINK_SetSpeed(2000)  
[2022-Apr-15 20:31:36] [trace] [  JLink] - - 0.163ms  
[2022-Apr-15 20:31:36] [trace] [  JLink] - JLINK_HasError()  
[2022-Apr-15 20:31:36] [trace] [  JLink] - JLINK_GetSN()  
[2022-Apr-15 20:31:36] [trace] [  JLink] - - 0.007ms returns 801029963  
[2022-Apr-15 20:31:36] [trace] [  JLink] - JLINK_HasError()  
[2022-Apr-15 20:31:36] [debug] [SeggerBackend] - read_debug_port_idr
[2022-Apr-15 20:31:36] [debug] [SeggerBackend] - read_debug_port_register
[2022-Apr-15 20:31:36] [debug] [SeggerBackend] - ---just_read_debug_port_register
[2022-Apr-15 20:31:36] [debug] [SeggerBackend] - coresight_configure
[2022-Apr-15 20:31:36] [trace] [  JLink] - JLINK_CORESIGHT_Configure()  
[2022-Apr-15 20:31:37] [trace] [  JLink] - - 101.729ms returns 0  
[2022-Apr-15 20:31:37] [trace] [ Client] - Command connect_to_emu_with_snr executed for 231 milliseconds with result -102
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_HasError()  
[2022-Apr-15 20:31:37] [debug] [SeggerBackend] - ---just_select_debug_port_register
[2022-Apr-15 20:31:37] [debug] [SeggerBackend] - Select AP 255, DP Bank 0, AP Bank 255
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
[2022-Apr-15 20:31:37] [trace] [  JLink] - - 1.121ms returns -1  
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_HasError()  
[2022-Apr-15 20:31:37] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
[2022-Apr-15 20:31:37] [debug] [SeggerBackend] - ---just_abort_debug_action
[2022-Apr-15 20:31:37] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2022-Apr-15 20:31:37] [trace] [  JLink] - - 0.770ms returns -1  
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_HasError()  
[2022-Apr-15 20:31:37] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2022-Apr-15 20:31:37] [trace] [  JLink] - - 0.716ms returns 0  
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_HasError()  
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
[2022-Apr-15 20:31:37] [trace] [  JLink] - - 0.424ms returns 0  
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_HasError()  
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_CORESIGHT_ReadAPDPReg(DP reg 0x00)  
[2022-Apr-15 20:31:37] [trace] [  JLink] - failed
[2022-Apr-15 20:31:37] [trace] [  JLink] - - 0.727ms returns -1  
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_HasError()  
[2022-Apr-15 20:31:37] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
[2022-Apr-15 20:31:37] [debug] [SeggerBackend] - ---just_abort_debug_action
[2022-Apr-15 20:31:37] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2022-Apr-15 20:31:37] [trace] [  JLink] - - 0.881ms returns -1  
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_HasError()  
[2022-Apr-15 20:31:37] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2022-Apr-15 20:31:37] [trace] [  JLink] - - 0.816ms returns -1  
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_HasError()  
[2022-Apr-15 20:31:37] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2022-Apr-15 20:31:37] [trace] [  JLink] - - 0.884ms returns -1  
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_HasError()  
[2022-Apr-15 20:31:37] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2022-Apr-15 20:31:37] [trace] [  JLink] - - 0.884ms returns -1  
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_HasError()  
[2022-Apr-15 20:31:37] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2022-Apr-15 20:31:37] [trace] [  JLink] - - 0.938ms returns -1  
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_HasError()  
[2022-Apr-15 20:31:37] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_CORESIGHT_ReadAPDPReg(DP reg 0x00)  
[2022-Apr-15 20:31:37] [trace] [  JLink] - failed
[2022-Apr-15 20:31:37] [trace] [  JLink] - - 0.929ms returns -1  
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_HasError()  
[2022-Apr-15 20:31:37] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
[2022-Apr-15 20:31:37] [debug] [SeggerBackend] - ---just_abort_debug_action
[2022-Apr-15 20:31:37] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2022-Apr-15 20:31:37] [trace] [  JLink] - - 0.929ms returns 0  
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_HasError()  
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_CORESIGHT_ReadAPDPReg(DP reg 0x00)  
[2022-Apr-15 20:31:37] [trace] [  JLink] - failed
[2022-Apr-15 20:31:37] [trace] [  JLink] - - 0.926ms returns -1  
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_HasError()  
[2022-Apr-15 20:31:37] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
[2022-Apr-15 20:31:37] [debug] [SeggerBackend] - ---just_abort_debug_action
[2022-Apr-15 20:31:37] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2022-Apr-15 20:31:37] [trace] [  JLink] - - 0.914ms returns -1  
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_HasError()  
[2022-Apr-15 20:31:37] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2022-Apr-15 20:31:37] [trace] [  JLink] - - 0.914ms returns -1  
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_HasError()  
[2022-Apr-15 20:31:37] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2022-Apr-15 20:31:37] [trace] [  JLink] - - 0.922ms returns -1  
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_HasError()  
[2022-Apr-15 20:31:37] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2022-Apr-15 20:31:37] [trace] [  JLink] - - 0.940ms returns -1  
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_HasError()  
[2022-Apr-15 20:31:37] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2022-Apr-15 20:31:37] [trace] [  JLink] - - 0.888ms returns -1  
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_HasError()  
[2022-Apr-15 20:31:37] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_CORESIGHT_ReadAPDPReg(DP reg 0x00)  
[2022-Apr-15 20:31:37] [trace] [  JLink] - failed
[2022-Apr-15 20:31:37] [trace] [  JLink] - - 0.804ms returns -1  
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_HasError()  
[2022-Apr-15 20:31:37] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
[2022-Apr-15 20:31:37] [debug] [SeggerBackend] - ---just_abort_debug_action
[2022-Apr-15 20:31:37] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2022-Apr-15 20:31:37] [trace] [  JLink] - - 0.999ms returns -1  
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_HasError()  
[2022-Apr-15 20:31:37] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2022-Apr-15 20:31:37] [trace] [  JLink] - - 0.745ms returns -1  
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_HasError()  
[2022-Apr-15 20:31:37] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2022-Apr-15 20:31:37] [trace] [  JLink] - - 0.737ms returns -1  
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_HasError()  
[2022-Apr-15 20:31:37] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2022-Apr-15 20:31:37] [trace] [  JLink] - - 0.706ms returns -1  
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_HasError()  
[2022-Apr-15 20:31:37] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2022-Apr-15 20:31:37] [trace] [  JLink] - - 0.742ms returns -1  
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_HasError()  
[2022-Apr-15 20:31:37] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_CORESIGHT_ReadAPDPReg(DP reg 0x00)  
[2022-Apr-15 20:31:37] [trace] [  JLink] - failed
[2022-Apr-15 20:31:37] [trace] [  JLink] - - 0.756ms returns -1  
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_HasError()  
[2022-Apr-15 20:31:37] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
[2022-Apr-15 20:31:37] [debug] [SeggerBackend] - ---just_abort_debug_action
[2022-Apr-15 20:31:37] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2022-Apr-15 20:31:37] [trace] [  JLink] - - 0.785ms returns -1  
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_HasError()  
[2022-Apr-15 20:31:37] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2022-Apr-15 20:31:37] [trace] [  JLink] - - 0.742ms returns -1  
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_HasError()  
[2022-Apr-15 20:31:37] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2022-Apr-15 20:31:37] [trace] [  JLink] - - 0.772ms returns -1  
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_HasError()  
[2022-Apr-15 20:31:37] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2022-Apr-15 20:31:37] [trace] [  JLink] - - 0.752ms returns -1  
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_HasError()  
[2022-Apr-15 20:31:37] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2022-Apr-15 20:31:37] [trace] [  JLink] - - 0.759ms returns -1  
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_HasError()  
[2022-Apr-15 20:31:37] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
[2022-Apr-15 20:31:37] [trace] [  JLink] - - 0.063ms  
[2022-Apr-15 20:31:37] [trace] [ Worker] - Command connect_to_emu_with_snr executed for 224 milliseconds with result -102
[2022-Apr-15 20:31:37] [debug] [  nRF52] - close
[2022-Apr-15 20:31:37] [debug] [SeggerBackend] - is_connected_to_emu
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_IsOpen()  
[2022-Apr-15 20:31:37] [trace] [  JLink] - - 0.033ms returns 0x01  
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_HasError()  
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_Lock()  
[2022-Apr-15 20:31:37] [debug] [SeggerBackend] - close
[2022-Apr-15 20:31:37] [debug] [SeggerBackend] - disconnect_from_emu
[2022-Apr-15 20:31:37] [debug] [SeggerBackend] - ---just_disconnect_from_emu
[2022-Apr-15 20:31:37] [debug] [SeggerBackend] - is_connected_to_device
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_IsConnected()  
[2022-Apr-15 20:31:37] [trace] [  JLink] - - 0.025ms returns FALSE  
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_HasError()  
[2022-Apr-15 20:31:37] [debug] [SeggerBackend] - ---just_is_debug_region_powered
[2022-Apr-15 20:31:37] [debug] [SeggerBackend] - ---just_read_debug_port_register
[2022-Apr-15 20:31:37] [debug] [SeggerBackend] - ---just_select_debug_port_register
[2022-Apr-15 20:31:37] [debug] [SeggerBackend] - Select AP 255, DP Bank 0, AP Bank 255
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
[2022-Apr-15 20:31:37] [trace] [  JLink] - - 0.726ms returns -1  
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_HasError()  
[2022-Apr-15 20:31:37] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
[2022-Apr-15 20:31:37] [debug] [SeggerBackend] - ---just_abort_debug_action
[2022-Apr-15 20:31:37] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2022-Apr-15 20:31:37] [trace] [  JLink] - - 0.723ms returns -1  
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_HasError()  
[2022-Apr-15 20:31:37] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2022-Apr-15 20:31:37] [trace] [  JLink] - - 0.771ms returns -1  
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_HasError()  
[2022-Apr-15 20:31:37] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2022-Apr-15 20:31:37] [trace] [  JLink] - - 0.854ms returns -1  
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_HasError()  
[2022-Apr-15 20:31:37] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2022-Apr-15 20:31:37] [trace] [  JLink] - - 0.878ms returns -1  
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_HasError()  
[2022-Apr-15 20:31:37] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2022-Apr-15 20:31:37] [trace] [  JLink] - - 0.895ms returns -1  
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_HasError()  
[2022-Apr-15 20:31:37] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
[2022-Apr-15 20:31:37] [trace] [  JLink] - - 0.884ms returns -1  
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_HasError()  
[2022-Apr-15 20:31:37] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
[2022-Apr-15 20:31:37] [debug] [SeggerBackend] - ---just_abort_debug_action
[2022-Apr-15 20:31:37] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2022-Apr-15 20:31:37] [trace] [  JLink] - - 0.885ms returns -1  
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_HasError()  
[2022-Apr-15 20:31:37] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2022-Apr-15 20:31:37] [trace] [  JLink] - - 0.859ms returns -1  
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_HasError()  
[2022-Apr-15 20:31:37] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2022-Apr-15 20:31:37] [trace] [  JLink] - - 0.911ms returns -1  
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_HasError()  
[2022-Apr-15 20:31:37] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2022-Apr-15 20:31:37] [trace] [  JLink] - - 0.800ms returns -1  
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_HasError()  
[2022-Apr-15 20:31:37] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2022-Apr-15 20:31:37] [trace] [  JLink] - - 0.902ms returns -1  
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_HasError()  
[2022-Apr-15 20:31:37] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
[2022-Apr-15 20:31:37] [trace] [  JLink] - - 0.714ms returns -1  
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_HasError()  
[2022-Apr-15 20:31:37] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
[2022-Apr-15 20:31:37] [debug] [SeggerBackend] - ---just_abort_debug_action
[2022-Apr-15 20:31:37] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2022-Apr-15 20:31:37] [trace] [  JLink] - - 0.894ms returns -1  
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_HasError()  
[2022-Apr-15 20:31:37] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2022-Apr-15 20:31:37] [trace] [  JLink] - - 0.991ms returns -1  
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_HasError()  
[2022-Apr-15 20:31:37] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2022-Apr-15 20:31:37] [trace] [  JLink] - - 0.636ms returns -1  
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_HasError()  
[2022-Apr-15 20:31:37] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2022-Apr-15 20:31:37] [trace] [  JLink] - - 0.686ms returns -1  
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_HasError()  
[2022-Apr-15 20:31:37] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2022-Apr-15 20:31:37] [trace] [  JLink] - - 0.661ms returns -1  
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_HasError()  
[2022-Apr-15 20:31:37] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
[2022-Apr-15 20:31:37] [trace] [  JLink] - - 0.624ms returns -1  
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_HasError()  
[2022-Apr-15 20:31:37] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
[2022-Apr-15 20:31:37] [debug] [SeggerBackend] - ---just_abort_debug_action
[2022-Apr-15 20:31:37] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2022-Apr-15 20:31:37] [trace] [  JLink] - - 0.718ms returns -1  
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_HasError()  
[2022-Apr-15 20:31:37] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2022-Apr-15 20:31:37] [trace] [  JLink] - - 0.646ms returns -1  
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_HasError()  
[2022-Apr-15 20:31:37] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2022-Apr-15 20:31:37] [trace] [  JLink] - - 0.611ms returns -1  
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_HasError()  
[2022-Apr-15 20:31:37] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2022-Apr-15 20:31:37] [trace] [  JLink] - - 0.685ms returns -1  
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_HasError()  
[2022-Apr-15 20:31:37] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2022-Apr-15 20:31:37] [trace] [  JLink] - - 0.647ms returns -1  
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_HasError()  
[2022-Apr-15 20:31:37] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
[2022-Apr-15 20:31:37] [trace] [  JLink] - - 0.619ms returns -1  
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_HasError()  
[2022-Apr-15 20:31:37] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
[2022-Apr-15 20:31:37] [debug] [SeggerBackend] - ---just_abort_debug_action
[2022-Apr-15 20:31:37] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2022-Apr-15 20:31:37] [trace] [  JLink] - - 0.702ms returns -1  
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_HasError()  
[2022-Apr-15 20:31:37] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2022-Apr-15 20:31:37] [trace] [  JLink] - - 0.624ms returns -1  
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_HasError()  
[2022-Apr-15 20:31:37] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2022-Apr-15 20:31:37] [trace] [  JLink] - - 0.621ms returns -1  
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_HasError()  
[2022-Apr-15 20:31:37] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2022-Apr-15 20:31:37] [trace] [  JLink] - - 0.622ms returns -1  
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_HasError()  
[2022-Apr-15 20:31:37] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2022-Apr-15 20:31:37] [trace] [  JLink] - - 0.635ms returns -1  
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_HasError()  
[2022-Apr-15 20:31:37] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
[2022-Apr-15 20:31:37] [trace] [  JLink] - - 0.096ms  
[2022-Apr-15 20:31:37] [trace] [  JLink] - JLINK_Close()  
[2022-Apr-15 20:31:37] [debug] [SeggerBackend] - Segger Backend closed.
[2022-Apr-15 20:31:37] [debug] [  nRF52] - nRF family DLL closed
[2022-Apr-15 20:31:37] [trace] [ Client] - Command close executed for 110 milliseconds with result 0
[2022-Apr-15 20:31:37] [debug] [ Client] - terminate
[2022-Apr-15 20:31:37] [trace] [ Client] - Command terminate executed for 0 milliseconds with result 0
[2022-Apr-15 20:31:37] [trace] [ Worker] - Command close executed for 110 milliseconds with result 0
[2022-Apr-15 20:31:37] [trace] [ Worker] - Command terminate executed for 0 milliseconds with result 0
[2022-Apr-15 20:31:37] [trace] [ Worker] - Executed 5 commands for 347 milliseconds
[2022-Apr-15 20:31:37] [debug] [ Client] - Worker process exited with code: 0
[2022-Apr-15 20:31:37] [debug] [ Client] - Worker process exited with code: 0
[2022-Apr-15 20:31:37] [debug] [ Client] - Child process terminated with result 0
[2022-Apr-15 20:31:37] [trace] [ Client] - Executed 5 commands for 411 milliseconds
[2022-Apr-15 20:31:37] [debug] [ Client] - terminate

 

--MRC

Parents
  • My greatest apologies, the log in the original post was incorrect. Here is the real one running the same command as per our terminal output.

    [2022-Apr-15 20:33:17] [ info] --------------------------------------------------------------------------------
    [2022-Apr-15 20:33:17] [ info] nrfjprog --program 'zephyr.hex' --sectoranduicrerase -f NRF52 --snr 801029963 --log 
    [2022-Apr-15 20:33:17] [ info] nrfjprog version 10.15.2 external
    [2022-Apr-15 20:33:17] [ info] --------------------------------------------------------------------------------
    [2022-Apr-15 20:33:17] [ info] Load library at C:\Program Files (x86)\Nordic Semiconductor\nrf-command-line-tools\bin\nrfjprog.dll.
    [2022-Apr-15 20:33:17] [ info] Library loaded, loading member functions.
    [2022-Apr-15 20:33:17] [ info] Member functions succesfully loaded.
    [2022-Apr-15 20:33:18] [debug] [ Client] - open
    [2022-Apr-15 20:33:18] [debug] [ Client] - start
    [2022-Apr-15 20:33:18] [ info] [ Client] - stdout: Jlinkarm nRF Worker ready. Handling sequence 021b19ba-a8b2-49e9-bb18-8e6c1efb427a.
    
    [2022-Apr-15 20:33:18] [trace] [ Client] - Command open executed for 71 milliseconds with result 0
    [2022-Apr-15 20:33:18] [debug] [ Client] - enum_emu_snr
    [2022-Apr-15 20:33:18] [trace] [ Client] - Command enum_emu_con_info executed for 15 milliseconds with result 0
    [2022-Apr-15 20:33:18] [debug] [ Client] - connect_to_emu_with_snr
    [2022-Apr-15 20:33:18] [debug] [SeggerBackend] - Logger sink registered in Segger backend logger
    [2022-Apr-15 20:33:18] [debug] [  JLink] - Logger sink registered in JLink logger
    [2022-Apr-15 20:33:18] [debug] [  nRF52] - open
    [2022-Apr-15 20:33:18] [debug] [  nRF52] - just_check_family
    [2022-Apr-15 20:33:18] [debug] [SeggerBackend] - open_dll
    [2022-Apr-15 20:33:18] [debug] [SeggerBackend] - No J-Link DLL path was provided. Attempting to auto detect.
    [2022-Apr-15 20:33:18] [ info] [SeggerBackend] - Load library at C:\Program Files (x86)\SEGGER\JLink\JLinkARM.dll.
    [2022-Apr-15 20:33:18] [ info] [SeggerBackend] - Library loaded, loading member functions.
    [2022-Apr-15 20:33:18] [ info] [SeggerBackend] - Member functions succesfully loaded.
    [2022-Apr-15 20:33:18] [debug] [SeggerBackend] - dll_version
    [2022-Apr-15 20:33:18] [ info] [SeggerBackend] - Segger dll version 7.58.b loaded.
    [2022-Apr-15 20:33:18] [trace] [ Worker] - Command open executed for 11 milliseconds with result 0
    [2022-Apr-15 20:33:18] [debug] [  nRF52] - enum_emu_con_info
    [2022-Apr-15 20:33:18] [debug] [SeggerBackend] - is_connected_to_emu
    [2022-Apr-15 20:33:18] [debug] [SeggerBackend] - enum_emu_con_info
    [2022-Apr-15 20:33:18] [debug] [SeggerBackend] - is_connected_to_emu
    [2022-Apr-15 20:33:18] [trace] [ Worker] - Command enum_emu_con_info executed for 3 milliseconds with result 0
    [2022-Apr-15 20:33:18] [debug] [  nRF52] - connect_to_emu_with_snr
    [2022-Apr-15 20:33:18] [debug] [SeggerBackend] - is_connected_to_emu
    [2022-Apr-15 20:33:18] [debug] [SeggerBackend] - connect_to_emu_with_snr
    [2022-Apr-15 20:33:18] [debug] [SeggerBackend] - is_connected_to_emu
    [2022-Apr-15 20:33:18] [debug] [SeggerBackend] - ---just_enum_emu_snr
    [2022-Apr-15 20:33:18] [debug] [SeggerBackend] - ---just_get_num_emus
    [2022-Apr-15 20:33:18] [debug] [SeggerBackend] - ---just_connect_to_emu_with_snr
    [2022-Apr-15 20:33:18] [debug] [SeggerBackend] - ---just_connect_to_emu_without_snr
    [2022-Apr-15 20:33:18] [debug] [SeggerBackend] - Segger logging enabled.
    [2022-Apr-15 20:33:18] [trace] [  JLink] - Firmware: J-Link EDU Mini V1 compiled Nov  2 2021 11:12:01
    [2022-Apr-15 20:33:18] [trace] [  JLink] - Firmware: J-Link EDU Mini V1 compiled Nov  2 2021 11:12:01
    [2022-Apr-15 20:33:18] [trace] [  JLink] - Hardware: V1.00
    [2022-Apr-15 20:33:18] [trace] [  JLink] - S/N: 801029963
    [2022-Apr-15 20:33:18] [trace] [  JLink] - OEM: SEGGER
    [2022-Apr-15 20:33:18] [trace] [  JLink] - Feature(s): FlashBP, GDB
    [2022-Apr-15 20:33:18] [trace] [  JLink] - TELNET listener socket opened on port 19021
    [2022-Apr-15 20:33:18] [trace] [  JLink] - WEBSRV WEBSRV_Init(): Starting webserver thread(s)
    [2022-Apr-15 20:33:18] [trace] [  JLink] - WEBSRV Webserver running on local port 19080
    [2022-Apr-15 20:33:18] [trace] [  JLink] - - 28.714ms returns "O.K."  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_HasError()  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_Lock()  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_GetHWStatus(...)  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - - 0.204ms returns 0  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_HasError()  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_ExecCommand("SetRestartOnClose = 0", ...).   
    [2022-Apr-15 20:33:18] [trace] [  JLink] - - 0.006ms returns 0x01  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_HasError()  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_ExecCommand("DisableFlashDL", ...).   
    [2022-Apr-15 20:33:18] [trace] [  JLink] - - 0.005ms returns 0x00  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_HasError()  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_ExecCommand("ExcludeFlashCacheRange 0x0-0xFFFFFFFF", ...).   
    [2022-Apr-15 20:33:18] [trace] [  JLink] - - 0.010ms returns 0x00  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_HasError()  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_SetHookUnsecureDialog  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_SetHookUnsecureDialog(...)
    [2022-Apr-15 20:33:18] [trace] [  JLink] - - 0.028ms returns 0  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_HasError()  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_TIF_Select(JLINKARM_TIF_SWD)  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - - 0.739ms returns 0x00  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_HasError()  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_SetSpeed(2000)  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - - 0.149ms  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_HasError()  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_GetSN()  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - - 0.010ms returns 801029963  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_HasError()  
    [2022-Apr-15 20:33:18] [debug] [SeggerBackend] - read_debug_port_idr
    [2022-Apr-15 20:33:18] [debug] [SeggerBackend] - read_debug_port_register
    [2022-Apr-15 20:33:18] [debug] [SeggerBackend] - ---just_read_debug_port_register
    [2022-Apr-15 20:33:18] [debug] [SeggerBackend] - coresight_configure
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_CORESIGHT_Configure()  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - - 101.578ms returns 0  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_HasError()  
    [2022-Apr-15 20:33:18] [debug] [SeggerBackend] - ---just_select_debug_port_register
    [2022-Apr-15 20:33:18] [debug] [SeggerBackend] - Select AP 255, DP Bank 0, AP Bank 255
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - - 0.927ms returns -1  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_HasError()  
    [2022-Apr-15 20:33:18] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2022-Apr-15 20:33:18] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2022-Apr-15 20:33:18] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - - 0.864ms returns -1  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_HasError()  
    [2022-Apr-15 20:33:18] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - - 0.841ms returns 0  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_HasError()  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - - 0.942ms returns -1  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_HasError()  
    [2022-Apr-15 20:33:18] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2022-Apr-15 20:33:18] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2022-Apr-15 20:33:18] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - - 0.821ms returns -1  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_HasError()  
    [2022-Apr-15 20:33:18] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - - 0.816ms returns -1  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_HasError()  
    [2022-Apr-15 20:33:18] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - - 0.864ms returns -1  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_HasError()  
    [2022-Apr-15 20:33:18] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2022-Apr-15 20:33:18] [trace] [ Client] - Command connect_to_emu_with_snr executed for 234 milliseconds with result -102
    [2022-Apr-15 20:33:18] [trace] [  JLink] - - 0.869ms returns -1  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_HasError()  
    [2022-Apr-15 20:33:18] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - - 0.866ms returns -1  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_HasError()  
    [2022-Apr-15 20:33:18] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - - 0.811ms returns -1  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_HasError()  
    [2022-Apr-15 20:33:18] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2022-Apr-15 20:33:18] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2022-Apr-15 20:33:18] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - - 1.011ms returns -1  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_HasError()  
    [2022-Apr-15 20:33:18] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - - 0.822ms returns -1  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_HasError()  
    [2022-Apr-15 20:33:18] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - - 0.876ms returns -1  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_HasError()  
    [2022-Apr-15 20:33:18] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - - 0.829ms returns -1  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_HasError()  
    [2022-Apr-15 20:33:18] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - - 0.940ms returns -1  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_HasError()  
    [2022-Apr-15 20:33:18] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - - 0.822ms returns -1  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_HasError()  
    [2022-Apr-15 20:33:18] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2022-Apr-15 20:33:18] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2022-Apr-15 20:33:18] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - - 0.824ms returns -1  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_HasError()  
    [2022-Apr-15 20:33:18] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - - 0.907ms returns -1  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_HasError()  
    [2022-Apr-15 20:33:18] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - - 0.868ms returns -1  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_HasError()  
    [2022-Apr-15 20:33:18] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - - 0.799ms returns -1  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_HasError()  
    [2022-Apr-15 20:33:18] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - - 0.825ms returns -1  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_HasError()  
    [2022-Apr-15 20:33:18] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - - 0.814ms returns -1  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_HasError()  
    [2022-Apr-15 20:33:18] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2022-Apr-15 20:33:18] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2022-Apr-15 20:33:18] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - - 0.830ms returns -1  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_HasError()  
    [2022-Apr-15 20:33:18] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - - 0.792ms returns -1  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_HasError()  
    [2022-Apr-15 20:33:18] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - - 0.716ms returns -1  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_HasError()  
    [2022-Apr-15 20:33:18] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - - 0.812ms returns -1  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_HasError()  
    [2022-Apr-15 20:33:18] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - - 0.761ms returns -1  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_HasError()  
    [2022-Apr-15 20:33:18] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2022-Apr-15 20:33:18] [trace] [  JLink] - - 0.139ms  
    [2022-Apr-15 20:33:18] [trace] [ Worker] - Command connect_to_emu_with_snr executed for 227 milliseconds with result -102
    [2022-Apr-15 20:33:18] [debug] [  nRF52] - close
    [2022-Apr-15 20:33:18] [debug] [SeggerBackend] - is_connected_to_emu
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_IsOpen()  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - - 0.052ms returns 0x01  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_HasError()  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_Lock()  
    [2022-Apr-15 20:33:18] [debug] [SeggerBackend] - close
    [2022-Apr-15 20:33:18] [debug] [SeggerBackend] - disconnect_from_emu
    [2022-Apr-15 20:33:18] [debug] [SeggerBackend] - ---just_disconnect_from_emu
    [2022-Apr-15 20:33:18] [debug] [SeggerBackend] - is_connected_to_device
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_IsConnected()  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - - 0.036ms returns FALSE  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_HasError()  
    [2022-Apr-15 20:33:18] [debug] [SeggerBackend] - ---just_is_debug_region_powered
    [2022-Apr-15 20:33:18] [debug] [SeggerBackend] - ---just_read_debug_port_register
    [2022-Apr-15 20:33:18] [debug] [SeggerBackend] - ---just_select_debug_port_register
    [2022-Apr-15 20:33:18] [debug] [SeggerBackend] - Select AP 255, DP Bank 0, AP Bank 255
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - - 0.775ms returns -1  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_HasError()  
    [2022-Apr-15 20:33:18] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2022-Apr-15 20:33:18] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2022-Apr-15 20:33:18] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - - 0.778ms returns 0  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_HasError()  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - - 0.859ms returns -1  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_HasError()  
    [2022-Apr-15 20:33:18] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2022-Apr-15 20:33:18] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2022-Apr-15 20:33:18] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - - 0.765ms returns -1  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_HasError()  
    [2022-Apr-15 20:33:18] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - - 0.755ms returns -1  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_HasError()  
    [2022-Apr-15 20:33:18] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - - 0.756ms returns -1  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_HasError()  
    [2022-Apr-15 20:33:18] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - - 0.839ms returns -1  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_HasError()  
    [2022-Apr-15 20:33:18] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - - 0.844ms returns -1  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_HasError()  
    [2022-Apr-15 20:33:18] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - - 0.802ms returns -1  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_HasError()  
    [2022-Apr-15 20:33:18] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2022-Apr-15 20:33:18] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2022-Apr-15 20:33:18] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - - 0.813ms returns -1  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_HasError()  
    [2022-Apr-15 20:33:18] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - - 0.645ms returns 0  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_HasError()  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - - 0.861ms returns -1  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_HasError()  
    [2022-Apr-15 20:33:18] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2022-Apr-15 20:33:18] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2022-Apr-15 20:33:18] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - - 0.767ms returns -1  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_HasError()  
    [2022-Apr-15 20:33:18] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - - 0.767ms returns -1  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_HasError()  
    [2022-Apr-15 20:33:18] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - - 0.796ms returns -1  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_HasError()  
    [2022-Apr-15 20:33:18] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - - 0.769ms returns -1  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_HasError()  
    [2022-Apr-15 20:33:18] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - - 0.819ms returns -1  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_HasError()  
    [2022-Apr-15 20:33:18] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - - 0.786ms returns -1  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_HasError()  
    [2022-Apr-15 20:33:18] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2022-Apr-15 20:33:18] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2022-Apr-15 20:33:18] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - - 0.741ms returns -1  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_HasError()  
    [2022-Apr-15 20:33:18] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - - 0.757ms returns -1  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_HasError()  
    [2022-Apr-15 20:33:18] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - - 0.762ms returns -1  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_HasError()  
    [2022-Apr-15 20:33:18] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - - 0.791ms returns -1  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_HasError()  
    [2022-Apr-15 20:33:18] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - - 0.883ms returns -1  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_HasError()  
    [2022-Apr-15 20:33:18] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2022-Apr-15 20:33:18] [trace] [  JLink] - - 0.094ms  
    [2022-Apr-15 20:33:18] [trace] [  JLink] - JLINK_Close()  
    [2022-Apr-15 20:33:18] [debug] [SeggerBackend] - Segger Backend closed.
    [2022-Apr-15 20:33:18] [debug] [  nRF52] - nRF family DLL closed
    [2022-Apr-15 20:33:18] [trace] [ Worker] - Command close executed for 246 milliseconds with result 0
    [2022-Apr-15 20:33:18] [trace] [ Client] - Command close executed for 247 milliseconds with result 0
    [2022-Apr-15 20:33:18] [debug] [ Client] - terminate
    [2022-Apr-15 20:33:18] [trace] [ Client] - Command terminate executed for 3 milliseconds with result 0
    [2022-Apr-15 20:33:18] [trace] [ Worker] - Command terminate executed for 0 milliseconds with result 0
    [2022-Apr-15 20:33:18] [trace] [ Worker] - Executed 5 commands for 487 milliseconds
    [2022-Apr-15 20:33:18] [debug] [ Client] - Worker process exited with code: 0
    [2022-Apr-15 20:33:18] [debug] [ Client] - Worker process exited with code: 0
    [2022-Apr-15 20:33:18] [debug] [ Client] - Child process terminated with result 0
    [2022-Apr-15 20:33:18] [trace] [ Client] - Executed 5 commands for 570 milliseconds
    [2022-Apr-15 20:33:18] [debug] [ Client] - terminate
    

  • Hi MRC,

    It could look like the nRF52840 on your custom board can not be reached by the programmer.

    I suggest first checking that the nRF52840 is powered.

    Then double-check if the nRF52840 has contact with your programmer.

    Could you explain how you have connected your custom board to the programmer?

    Regards,
    Sigurd Hellesvik

Reply Children
No Data
Related