I have been having a series of issues with programming from nRF Connect using a J-Link programmer. I have made a couple of other recent posts and in each of those, I thought I had found a solution only for the problem to return in a slightly different form.
My target is an Adafruit nRF52840 Express (https://www.adafruit.com/product/4062). I have used these boards a lot over the past couple of years, including for a released product. Up until the past couple of weeks, I've had no difficulty flashing them.
I am using SDK and toolchain 2.2.0.
Here is what I get when I try to flash from VSCode with nRF Connect plugin:
Flashing build to J-Link Ultra+ west flash -d c:\gitRepos\GR3_Firmware\build --dev-id 504500724 -- west flash: rebuilding [0/4] Performing build step for 'mcuboot_subimage' ninja: no work to do. -- west flash: using runner nrfjprog -- runners.nrfjprog: Flashing file: C:\gitRepos\GR3_Firmware\build\zephyr\merged.hex [error] [ Client] - Encountered error -102: Command read_device_info executed for 124 milliseconds with result -102 [error] [ Worker] - An unknown error. [error] [ Client] - Encountered error -102: Command read_memory_descriptors executed for 30 milliseconds with result -102 Failed to read device memories.[error] [ Worker] - An unknown error. ERROR: JLinkARM DLL reported an error. Try again. If error condition ERROR: persists, run the same command again with argument --log, contact Nordic ERROR: Semiconductor and provide the generated log.log file to them. NOTE: For additional output, try running again with logging enabled (--log). NOTE: Any generated log error messages will be displayed. FATAL ERROR: command exited with status 33: nrfjprog --program 'C:\gitRepos\GR3_Firmware\build\zephyr\merged.hex' --sectoranduicrerase --verify -f NRF52 --snr 504500724 * The terminal process terminated with exit code: 33. * Terminal will be reused by tasks, press any key to close it.
I took the command from the end of this bit and ran in from a new terminal in nRF Connect. Here's what I got:
PS C:\gitRepos\GR3_Firmware> nrfjprog --program 'C:\gitRepos\GR3_Firmware\build\zephyr\merged.hex' --sectoranduicrerase --verify -f NRF52 --snr 504500724 [error] [ Client] - Encountered error -102: Command read_device_info executed for 124 milliseconds with result -102 [error] [ Client] - Encountered error -102: Command read_memory_descriptors executed for 31 milliseconds with result -102 Failed to read device memories.[error] [ Worker] - An unknown error. [error] [ Worker] - An unknown error. ERROR: JLinkARM DLL reported an error. Try again. If error condition ERROR: persists, run the same command again with argument --log, contact Nordic ERROR: Semiconductor and provide the generated log.log file to them. NOTE: For additional output, try running again with logging enabled (--log). NOTE: Any generated log error messages will be displayed. PS C:\gitRepos\GR3_Firmware>
So, I ran it again with the --log option, as it suggests. Here is the log it generated.
[2025-Oct-17 14:15:21] [debug] --------------------------------------------------------------------------------
[2025-Oct-17 14:15:21] [debug] C:\Program Files\Nordic Semiconductor\nrf-command-line-tools\bin\nrfjprog.exe --program C:\gitRepos\GR3_Firmware\build\zephyr\merged.hex --sectoranduicrerase --verify -f NRF52 --snr 504500724 --log
[2025-Oct-17 14:15:21] [debug] nrfjprog version 10.24.2 external
[2025-Oct-17 14:15:21] [debug] --------------------------------------------------------------------------------
[2025-Oct-17 14:15:21] [ info] Load library at C:\Program Files\Nordic Semiconductor\nrf-command-line-tools\bin\nrfjprog.dll.
[2025-Oct-17 14:15:21] [ info] Library loaded, loading member functions.
[2025-Oct-17 14:15:21] [ info] Member functions succesfully loaded.
[2025-Oct-17 14:15:21] [debug] [ Client] - open
[2025-Oct-17 14:15:21] [debug] [ Client] - start
[2025-Oct-17 14:15:21] [ info] [ Client] - stdout: Jlinkarm nRF Worker ready. Handling sequence bd106a28-2265-4931-a7f7-146718fe97eb.
[2025-Oct-17 14:15:21] [debug] [SeggerBackend] - Logger sink registered in Segger backend logger
[2025-Oct-17 14:15:21] [debug] [ JLink] - Logger sink registered in JLink logger
[2025-Oct-17 14:15:21] [debug] [ nRF52] - open
[2025-Oct-17 14:15:21] [debug] [ nRF52] - just_check_family
[2025-Oct-17 14:15:21] [debug] [SeggerBackend] - open_dll
[2025-Oct-17 14:15:21] [debug] [SeggerBackend] - No J-Link DLL path was provided. Attempting to auto detect.
[2025-Oct-17 14:15:21] [ info] [SeggerBackend] - Load library at C:\Program Files\SEGGER\JLink_V818\JLink_x64.dll.
[2025-Oct-17 14:15:21] [trace] [ Client] - Command open executed for 228 milliseconds with result 0
[2025-Oct-17 14:15:21] [debug] [ Client] - config
[2025-Oct-17 14:15:21] [ info] [SeggerBackend] - Library loaded, loading member functions.
[2025-Oct-17 14:15:21] [ info] [SeggerBackend] - Member functions succesfully loaded.
[2025-Oct-17 14:15:21] [debug] [SeggerBackend] - Set batch mode
[2025-Oct-17 14:15:21] [debug] [SeggerBackend] - dll_version
[2025-Oct-17 14:15:21] [ info] [SeggerBackend] - Segger dll version 8.18. loaded.
[2025-Oct-17 14:15:21] [trace] [ Worker] - Command open executed for 18 milliseconds with result 0
[2025-Oct-17 14:15:21] [trace] [ Client] - Command config executed for 16 milliseconds with result 0
[2025-Oct-17 14:15:21] [debug] [ Client] - enum_emu_snr
[2025-Oct-17 14:15:21] [debug] [ nRF52] - config
[2025-Oct-17 14:15:21] [debug] [SeggerBackend] - enum_emu_snr
[2025-Oct-17 14:15:21] [trace] [ Worker] - Command config executed for 3 milliseconds with result 0
[2025-Oct-17 14:15:21] [debug] [ nRF52] - enum_emu_con_info
[2025-Oct-17 14:15:21] [debug] [SeggerBackend] - is_connected_to_emu
[2025-Oct-17 14:15:21] [debug] [SeggerBackend] - enum_emu_con_info
[2025-Oct-17 14:15:21] [trace] [ Client] - Command enum_emu_con_info executed for 30 milliseconds with result 0
[2025-Oct-17 14:15:21] [debug] [ Client] - connect_to_emu_with_snr
[2025-Oct-17 14:15:21] [debug] [SeggerBackend] - is_connected_to_emu
[2025-Oct-17 14:15:21] [trace] [ Worker] - Command enum_emu_con_info executed for 17 milliseconds with result 0
[2025-Oct-17 14:15:21] [debug] [ nRF52] - connect_to_emu_with_snr
[2025-Oct-17 14:15:21] [debug] [SeggerBackend] - is_connected_to_emu
[2025-Oct-17 14:15:21] [debug] [SeggerBackend] - connect_to_emu_with_snr
[2025-Oct-17 14:15:21] [debug] [SeggerBackend] - is_connected_to_emu
[2025-Oct-17 14:15:21] [debug] [SeggerBackend] - ---just_enum_emu_snr
[2025-Oct-17 14:15:21] [debug] [SeggerBackend] - ---just_get_num_emus
[2025-Oct-17 14:15:21] [debug] [SeggerBackend] - ---just_connect_to_emu_with_snr
[2025-Oct-17 14:15:21] [debug] [SeggerBackend] - ---just_connect_to_emu_without_snr
[2025-Oct-17 14:15:21] [debug] [SeggerBackend] - Segger logging enabled.
[2025-Oct-17 14:15:22] [trace] [ JLink] - Firmware: J-Link Ultra V4 compiled Sep 22 2022 15:00:10
[2025-Oct-17 14:15:22] [trace] [ JLink] - Firmware: J-Link Ultra V4 compiled Sep 22 2022 15:00:10
[2025-Oct-17 14:15:22] [trace] [ JLink] - Decompressing FW timestamp took 168 us
[2025-Oct-17 14:15:22] [trace] [ JLink] - Hardware: V4.00
[2025-Oct-17 14:15:22] [trace] [ JLink] - S/N: 504500724
[2025-Oct-17 14:15:22] [trace] [ JLink] - OEM: SEGGER
[2025-Oct-17 14:15:22] [trace] [ JLink] - Feature(s): RDI, FlashBP, FlashDL, JFlash, GDB
[2025-Oct-17 14:15:22] [trace] [ JLink] - Bootloader: (FW returned invalid version)
[2025-Oct-17 14:15:22] [trace] [ JLink] - TELNET listener socket opened on port 19021
[2025-Oct-17 14:15:22] [trace] [ JLink] - WEBSRV WEBSRV_Init(): Starting webserver thread(s)
[2025-Oct-17 14:15:22] [trace] [ JLink] - WEBSRV Webserver running on local port 19080
[2025-Oct-17 14:15:22] [trace] [ JLink] - Looking for J-Link GUI Server exe at: C:\Program Files\SEGGER\JLink_V818\JLinkGUIServer.exe
[2025-Oct-17 14:15:22] [trace] [ JLink] - Forking J-Link GUI Server: C:\Program Files\SEGGER\JLink_V818\JLinkGUIServer.exe
[2025-Oct-17 14:15:22] [trace] [ Client] - Command connect_to_emu_with_snr executed for 205 milliseconds with result 0
[2025-Oct-17 14:15:22] [debug] [ Client] - read_connected_emu_snr
[2025-Oct-17 14:15:22] [trace] [ JLink] - J-Link GUI Server info: "J-Link GUI server V8.18 "
[2025-Oct-17 14:15:22] [trace] [ Client] - Command read_connected_emu_snr executed for 15 milliseconds with result 0
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 151.113ms returns "O.K."
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_Lock()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_ExecCommand("SetRestartOnClose = 0", ...).
[2025-Oct-17 14:15:22] [debug] [ Client] - read_device_info
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.003ms returns 0x01
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_ExecCommand("DisableFlashDL", ...).
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.002ms returns 0x00
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_ExecCommand("ExcludeFlashCacheRange 0x0-0xFFFFFFFF", ...).
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.008ms returns 0x00
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_SetHookUnsecureDialog
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_SetHookUnsecureDialog(...)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.027ms returns 0
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_TIF_Select(JLINKARM_TIF_SWD)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.561ms returns 0x00
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_GetSpeedInfo()
[2025-Oct-17 14:15:22] [trace] [ JLink] - 1600000000 Hz / n, n >= 32
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.014ms
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [debug] [SeggerBackend] - Connected emulator supports SWD speeds up to 50000kHz
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_SetSpeed(2000)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.095ms
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_GetSpeed()
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.008ms returns 2000
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [debug] [SeggerBackend] - SWD clock set to 2000kHz
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_GetSN()
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.005ms returns 504500724
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.008ms
[2025-Oct-17 14:15:22] [debug] [ nRF52] - read_device_family
[2025-Oct-17 14:15:22] [trace] [ Worker] - Command connect_to_emu_with_snr executed for 192 milliseconds with result 0
[2025-Oct-17 14:15:22] [debug] [ nRF52] - read_connected_emu_snr
[2025-Oct-17 14:15:22] [debug] [SeggerBackend] - is_connected_to_emu
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_IsOpen()
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.015ms returns 0x01
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_Lock()
[2025-Oct-17 14:15:22] [debug] [SeggerBackend] - read_connected_emu_snr
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.008ms
[2025-Oct-17 14:15:22] [trace] [ Worker] - Command read_connected_emu_snr executed for 0 milliseconds with result 0
[2025-Oct-17 14:15:22] [debug] [ nRF52] - read_device_info
[2025-Oct-17 14:15:22] [debug] [SeggerBackend] - is_connected_to_emu
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_IsOpen()
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.020ms returns 0x01
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_Lock()
[2025-Oct-17 14:15:22] [debug] [ nRF52] - Just_read_device_version
[2025-Oct-17 14:15:22] [debug] [ nRF52] - Just_readback_status
[2025-Oct-17 14:15:22] [debug] [ nRF52] - Just_is_ctrl_ap_available
[2025-Oct-17 14:15:22] [debug] [SeggerBackend] - read_access_port_register
[2025-Oct-17 14:15:22] [debug] [SeggerBackend] - ---just_read_access_port_register
[2025-Oct-17 14:15:22] [debug] [SeggerBackend] - coresight_configure
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_GetHWStatus(...)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.184ms returns 0
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_Configure()
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 100.912ms returns 0
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [debug] [SeggerBackend] - read_debug_port_idr
[2025-Oct-17 14:15:22] [debug] [SeggerBackend] - read_debug_port_register
[2025-Oct-17 14:15:22] [debug] [SeggerBackend] - ---just_read_debug_port_register
[2025-Oct-17 14:15:22] [debug] [SeggerBackend] - ---just_select_debug_port_register
[2025-Oct-17 14:15:22] [debug] [SeggerBackend] - Select AP 255, DP Bank 0, AP Bank 255
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.658ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [debug] [SeggerBackend] - ---just_abort_debug_action
[2025-Oct-17 14:15:22] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection.
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.527ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.535ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.519ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.520ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.562ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.524ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.601ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [debug] [SeggerBackend] - ---just_abort_debug_action
[2025-Oct-17 14:15:22] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection.
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.518ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.504ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.485ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.502ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.520ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.522ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.745ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [debug] [SeggerBackend] - ---just_abort_debug_action
[2025-Oct-17 14:15:22] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection.
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.427ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.536ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.494ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.564ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.525ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.549ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.690ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [debug] [SeggerBackend] - ---just_abort_debug_action
[2025-Oct-17 14:15:22] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection.
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.422ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.677ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.539ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.432ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.469ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.392ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.441ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [debug] [SeggerBackend] - ---just_abort_debug_action
[2025-Oct-17 14:15:22] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection.
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.492ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.475ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.475ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.476ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.487ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.484ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.492ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [debug] [SeggerBackend] - ---just_abort_debug_action
[2025-Oct-17 14:15:22] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection.
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.476ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.465ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.480ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.456ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.853ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [error] [ Client] - Encountered error -102: Command read_device_info executed for 140 milliseconds with result -102
[2025-Oct-17 14:15:22] [warning] Failed to read device info. Attempting to complete command anyways.
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.773ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.167ms
[2025-Oct-17 14:15:22] [error] [ Worker] - An unknown error.
[2025-Oct-17 14:15:22] [trace] [ Worker] - Command read_device_info executed for 125 milliseconds with result -102
[2025-Oct-17 14:15:22] [debug] [ Client] - read_memory_descriptors
[2025-Oct-17 14:15:22] [debug] [ nRF52] - read_memory_descriptors
[2025-Oct-17 14:15:22] [debug] [SeggerBackend] - is_connected_to_emu
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_IsOpen()
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.045ms returns 0x01
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_Lock()
[2025-Oct-17 14:15:22] [debug] [ nRF52] - Just_read_memory_descriptors
[2025-Oct-17 14:15:22] [debug] [ nRF52] - Just_readback_status
[2025-Oct-17 14:15:22] [debug] [ nRF52] - Just_is_ctrl_ap_available
[2025-Oct-17 14:15:22] [debug] [SeggerBackend] - read_access_port_register
[2025-Oct-17 14:15:22] [debug] [SeggerBackend] - ---just_read_access_port_register
[2025-Oct-17 14:15:22] [debug] [SeggerBackend] - ---just_is_debug_region_powered
[2025-Oct-17 14:15:22] [debug] [SeggerBackend] - ---just_read_debug_port_register
[2025-Oct-17 14:15:22] [debug] [SeggerBackend] - ---just_select_debug_port_register
[2025-Oct-17 14:15:22] [debug] [SeggerBackend] - Select AP 255, DP Bank 0, AP Bank 255
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.683ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [debug] [SeggerBackend] - ---just_abort_debug_action
[2025-Oct-17 14:15:22] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection.
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.453ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.555ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.451ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.471ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.460ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.445ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.554ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [debug] [SeggerBackend] - ---just_abort_debug_action
[2025-Oct-17 14:15:22] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection.
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.540ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.584ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.702ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.571ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.547ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.731ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.459ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [debug] [SeggerBackend] - ---just_abort_debug_action
[2025-Oct-17 14:15:22] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection.
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.443ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.446ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.412ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.453ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.474ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.471ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.424ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [debug] [SeggerBackend] - ---just_abort_debug_action
[2025-Oct-17 14:15:22] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection.
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.399ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.455ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.539ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.837ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [error] [ Client] - Encountered error -102: Command read_memory_descriptors executed for 30 milliseconds with result -102
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.443ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.449ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.529ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [debug] [SeggerBackend] - ---just_abort_debug_action
[2025-Oct-17 14:15:22] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection.
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.529ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.500ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.561ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.584ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.583ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.506ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.519ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [debug] [SeggerBackend] - ---just_abort_debug_action
[2025-Oct-17 14:15:22] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection.
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.504ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.485ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.587ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.474ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.435ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.460ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.083ms
[2025-Oct-17 14:15:22] [error] [ Worker] - An unknown error.
[2025-Oct-17 14:15:22] [trace] [ Worker] - Command read_memory_descriptors executed for 23 milliseconds with result -102
[2025-Oct-17 14:15:22] [debug] [ nRF52] - close
[2025-Oct-17 14:15:22] [debug] [SeggerBackend] - is_connected_to_emu
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_IsOpen()
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.014ms returns 0x01
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_Lock()
[2025-Oct-17 14:15:22] [debug] [SeggerBackend] - close
[2025-Oct-17 14:15:22] [debug] [SeggerBackend] - disconnect_from_emu
[2025-Oct-17 14:15:22] [debug] [SeggerBackend] - ---just_disconnect_from_emu
[2025-Oct-17 14:15:22] [debug] [SeggerBackend] - is_connected_to_device
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_IsConnected()
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.006ms returns FALSE
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [debug] [SeggerBackend] - ---just_is_debug_region_powered
[2025-Oct-17 14:15:22] [debug] [SeggerBackend] - ---just_read_debug_port_register
[2025-Oct-17 14:15:22] [debug] [SeggerBackend] - ---just_select_debug_port_register
[2025-Oct-17 14:15:22] [debug] [SeggerBackend] - Select AP 255, DP Bank 0, AP Bank 255
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.562ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [debug] [SeggerBackend] - ---just_abort_debug_action
[2025-Oct-17 14:15:22] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection.
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.643ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.587ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.545ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.459ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.753ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.477ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.580ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [debug] [SeggerBackend] - ---just_abort_debug_action
[2025-Oct-17 14:15:22] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection.
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.478ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.564ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.623ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.582ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.574ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.621ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.503ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [debug] [SeggerBackend] - ---just_abort_debug_action
[2025-Oct-17 14:15:22] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection.
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.497ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.450ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.442ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.574ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.446ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.464ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.457ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [debug] [SeggerBackend] - ---just_abort_debug_action
[2025-Oct-17 14:15:22] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection.
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.578ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.531ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.467ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.466ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.439ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.444ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.624ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [debug] [SeggerBackend] - ---just_abort_debug_action
[2025-Oct-17 14:15:22] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection.
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.441ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.455ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.451ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.534ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.457ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.608ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.512ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [debug] [SeggerBackend] - ---just_abort_debug_action
[2025-Oct-17 14:15:22] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection.
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.448ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.486ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.524ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.535ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.468ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.560ms returns -1
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_HasError()
[2025-Oct-17 14:15:22] [debug] [SeggerBackend] - Ignore exception An unknown error.
[2025-Oct-17 14:15:22] [trace] [ JLink] - - 0.088ms
[2025-Oct-17 14:15:22] [trace] [ JLink] - JLINK_Close()
[2025-Oct-17 14:15:22] [debug] [SeggerBackend] - Segger Backend closed.
[2025-Oct-17 14:15:22] [debug] [ nRF52] - nRF family DLL closed
[2025-Oct-17 14:15:22] [trace] [ Worker] - Command close executed for 61 milliseconds with result 0
[2025-Oct-17 14:15:22] [trace] [ Client] - Command close executed for 78 milliseconds with result 0
[2025-Oct-17 14:15:22] [debug] [ Client] - terminate
[2025-Oct-17 14:15:22] [trace] [ Client] - Command terminate executed for 0 milliseconds with result 0
[2025-Oct-17 14:15:22] [trace] [ Worker] - Command terminate executed for 0 milliseconds with result 0
[2025-Oct-17 14:15:22] [trace] [ Worker] - Executed 9 commands for 439 milliseconds
[2025-Oct-17 14:15:22] [debug] [ Client] - Worker process exited with code: 0
[2025-Oct-17 14:15:22] [debug] [ Client] - Worker process exited with code: 0
[2025-Oct-17 14:15:22] [debug] [ Client] - Child process terminated with result 0
[2025-Oct-17 14:15:22] [trace] [ Client] - Executed 9 commands for 742 milliseconds
[2025-Oct-17 14:15:22] [debug] [ Client] - terminate
Earlier today, after switching the project to use nrfjprog, I was able to flash several times in a row with no problems at all, and I thought the issue was solved.
The fact that the problem seems to come and go like that made me wonder if it could be something like a bad connection. On that thread of investigation:
- I have tried this with two different target boards and with two different SWD cables and get the same results each time.
- I am programming through an adapter that goes from the connector on the J-Link to the small 10-pin ribbon cable often used for SWD. Careful inspection of that adapter board reveals no obvious faults or bad solder joints.
- The programmer itself is a Segger J-Link Ultra+. The label on the bottom says it is version 4.5, manufactured week 25 2018, part number 8.16.28.
I also found another thread here on DevZone where a similar issue was resolved with the addition of a -c option to the programming command to slow down the data rate. I tried adding this and still had the same problems, though the timeouts mentioned were longer.