Trouble Connecting to nRF5340 via nRFConnect Extension (WSL Environment)

Hi all,

I've been using the nRFConnect extension without any issues, successfully connecting to my nRF5340 board via JLink, flashing firmware, and receiving printed messages using the RTT extension. However, I encountered a problem today: I can no longer connect or upload firmware to the board.

Here’s the error message I received:

FATAL ERROR: command exited with status 33: nrfjprog --recover -f NRF53 --coprocessor CP_NETWORK --snr 260116832

I use WSL and rely on tools like USBPID to enable USB connections from my hardware to the Linux environment. In my debugging attempts, I searched for similar issues and encountered this thread. Following its suggestions, I tested the RTT connection, and while the RTT interface connected, it didn’t function as expected.

These are the screenshots of what I got from the Jlinkexe and RTTClient:

I couldn't find any similar issues in this forum and wanted to know if this was a known issue or how to troubleshoot and get more information about the source of the problem itself. Thank you in advance for any help!

Parents
  • Hi,

    I haven't tested using the linux version of nrfjprog, jlinkexe etc. in WSL with USBPID. Instead when using WSL I have replaced the executables for nrfjprog and JLinkExe in /usr/bin with scripts that instead use the windows versions of the tools from within WSL. This has the benefit of not needing to pass the USB device over to the linux environment to connect to them.

    Here's the scripts for replacing nrfjprog and JLinkExe with the windows tools:

    /usr/bin/JLinkExe:

    #!/bin/bash
     
    ARGS=("$@")
    JLINKEXE='/mnt/c/Program Files/SEGGER/JLink/JLink.exe'
    WSLROOT='\\wsl$\Ubuntu'
     
    for IDX in ${!ARGS[*]}; do
            ARG=${ARGS[$IDX]}
            case "$ARG" in
            -*)
                    ;;
            *)
                    if [ -e "$ARG" ]; then
                            NEW=$(wslpath -aw "$ARG" 2>/dev/null) || \
                            NEW="$WSLROOT"$(readlink -f "$ARG" | sed 's@/@\\@g')
                            ARGS[$IDX]=$NEW
                    fi
                    ;;
            esac
    done
     
    exec "$JLINKEXE" "${ARGS[@]}"

    /usr/bin/nrfjprog:

    #!/bin/bash
     
    ARGS=("$@")
    NRFJPROG='/mnt/c/Program Files/Nordic Semiconductor/nrf-command-line-tools/bin/nrfjprog.exe'
    WSLROOT='\\wsl$\Ubuntu'
     
    for IDX in ${!ARGS[*]}; do
            ARG=${ARGS[$IDX]}
            case "$ARG" in
            -*)
                    ;;
            *)
                    if [ -e "$ARG" ]; then
                            NEW=$(wslpath -aw "$ARG" 2>/dev/null) || \
                            NEW="$WSLROOT"$(readlink -f "$ARG" | sed 's@/@\\@g')
                            ARGS[$IDX]=$NEW
                    fi
                    ;;
            esac
    done
     
    exec "$NRFJPROG" "${ARGS[@]}"
    

     

    The scrips need to be set as a executable using chmod +x /usr/bin/nrfjprog /usr/bin/JLinkExe

    I also recommend to rename the existing executables before replacing them, incase you need to revert the changes.

    It should be possible to do the same for other CLI tools, but these are the only ones I have tested.

    This approach requires nRF-Command-Line-Tools and SEGGER JLink to be installed on the host windows system.

     

    Best regards,

    Bendik

  • Hi Bendik,

    Thank you for your quick response!

    Before changing the WSL configuration, I tested the Windows version of the SEGGER JLink and nRF Command Line Tools to check if the connection with the device was possible.

    I tested JLink separately, and similar to WSL, I couldn’t connect to the device using either JTAG or SWD. (See attached images.)

    To rule out potential configuration issues, I attempted to upload firmware to the board using the command line tools but encountered the same problem.

    The respective log file is attached here.

    [2025-Jan-07 10:39:48] [debug] --------------------------------------------------------------------------------
    [2025-Jan-07 10:39:48] [debug] C:\Program Files\Nordic Semiconductor\nrf-command-line-tools\bin\nrfjprog.exe --reset --log 
    [2025-Jan-07 10:39:48] [debug] nrfjprog version 10.24.2 external
    [2025-Jan-07 10:39:48] [debug] --------------------------------------------------------------------------------
    [2025-Jan-07 10:39:48] [ info] Load library at C:\Program Files\Nordic Semiconductor\nrf-command-line-tools\bin\nrfjprog.dll.
    [2025-Jan-07 10:39:48] [ info] Library loaded, loading member functions.
    [2025-Jan-07 10:39:48] [ info] Member functions succesfully loaded.
    [2025-Jan-07 10:39:48] [debug] [ Client] - open
    [2025-Jan-07 10:39:48] [debug] [ Client] - start
    [2025-Jan-07 10:39:48] [ info] [ Client] - stdout: Jlinkarm nRF Worker ready. Handling sequence 934ffcd1-cd0a-4f75-8f5d-cf8551868c4b.
    
    [2025-Jan-07 10:39:48] [debug] [SeggerBackend] - Logger sink registered in Segger backend logger
    [2025-Jan-07 10:39:48] [debug] [  JLink] - Logger sink registered in JLink logger
    [2025-Jan-07 10:39:48] [debug] [  nRFXX] - open
    [2025-Jan-07 10:39:48] [debug] [  nRFXX] - just_check_family
    [2025-Jan-07 10:39:48] [debug] [SeggerBackend] - open_dll
    [2025-Jan-07 10:39:48] [debug] [SeggerBackend] - No J-Link DLL path was provided. Attempting to auto detect.
    [2025-Jan-07 10:39:48] [trace] [ Client] - Command open executed for 61 milliseconds with result 0
    [2025-Jan-07 10:39:48] [debug] [ Client] - config
    [2025-Jan-07 10:39:48] [trace] [ Client] - Command config executed for 15 milliseconds with result 0
    [2025-Jan-07 10:39:48] [debug] [ Client] - enum_emu_snr
    [2025-Jan-07 10:39:48] [ info] [SeggerBackend] - Load library at C:\Program Files\SEGGER\JLink_V812\JLink_x64.dll.
    [2025-Jan-07 10:39:48] [ info] [SeggerBackend] - Library loaded, loading member functions.
    [2025-Jan-07 10:39:48] [ info] [SeggerBackend] - Member functions succesfully loaded.
    [2025-Jan-07 10:39:48] [debug] [SeggerBackend] - Set batch mode
    [2025-Jan-07 10:39:48] [debug] [SeggerBackend] - dll_version
    [2025-Jan-07 10:39:48] [ info] [SeggerBackend] - Segger dll version 8.12.  loaded.
    [2025-Jan-07 10:39:48] [trace] [ Worker] - Command open executed for 4 milliseconds with result 0
    [2025-Jan-07 10:39:48] [debug] [  nRFXX] - config
    [2025-Jan-07 10:39:48] [debug] [SeggerBackend] - enum_emu_snr
    [2025-Jan-07 10:39:48] [trace] [ Worker] - Command config executed for 3 milliseconds with result 0
    [2025-Jan-07 10:39:48] [debug] [  nRFXX] - enum_emu_con_info
    [2025-Jan-07 10:39:48] [debug] [SeggerBackend] - is_connected_to_emu
    [2025-Jan-07 10:39:48] [debug] [SeggerBackend] - enum_emu_con_info
    [2025-Jan-07 10:39:48] [trace] [ Client] - Command enum_emu_con_info executed for 15 milliseconds with result 0
    [2025-Jan-07 10:39:48] [debug] [ Client] - connect_to_emu_with_snr
    [2025-Jan-07 10:39:48] [debug] [SeggerBackend] - is_connected_to_emu
    [2025-Jan-07 10:39:48] [trace] [ Worker] - Command enum_emu_con_info executed for 3 milliseconds with result 0
    [2025-Jan-07 10:39:48] [debug] [  nRFXX] - connect_to_emu_with_snr
    [2025-Jan-07 10:39:48] [debug] [SeggerBackend] - is_connected_to_emu
    [2025-Jan-07 10:39:48] [debug] [SeggerBackend] - connect_to_emu_with_snr
    [2025-Jan-07 10:39:48] [debug] [SeggerBackend] - is_connected_to_emu
    [2025-Jan-07 10:39:48] [debug] [SeggerBackend] - ---just_enum_emu_snr
    [2025-Jan-07 10:39:48] [debug] [SeggerBackend] - ---just_get_num_emus
    [2025-Jan-07 10:39:48] [debug] [SeggerBackend] - ---just_connect_to_emu_with_snr
    [2025-Jan-07 10:39:48] [debug] [SeggerBackend] - ---just_connect_to_emu_without_snr
    [2025-Jan-07 10:39:48] [debug] [SeggerBackend] - Segger logging enabled.
    [2025-Jan-07 10:39:48] [trace] [  JLink] - Firmware: J-Link V10 compiled Jan 30 2023 11:28:07
    [2025-Jan-07 10:39:48] [trace] [  JLink] - Firmware: J-Link V10 compiled Jan 30 2023 11:28:07
    [2025-Jan-07 10:39:48] [trace] [  JLink] - Decompressing FW timestamp took 125 us
    [2025-Jan-07 10:39:48] [trace] [  JLink] - Hardware: V10.10
    [2025-Jan-07 10:39:48] [trace] [  JLink] - S/N: 260116832
    [2025-Jan-07 10:39:48] [trace] [  JLink] - OEM: SEGGER-EDU
    [2025-Jan-07 10:39:48] [trace] [  JLink] - Feature(s): FlashBP, GDB
    [2025-Jan-07 10:39:48] [trace] [  JLink] - Bootloader: (FW returned invalid version)
    [2025-Jan-07 10:39:48] [trace] [  JLink] - TELNET listener socket opened on port 19021
    [2025-Jan-07 10:39:48] [trace] [  JLink] - WEBSRV WEBSRV_Init(): Starting webserver thread(s)
    [2025-Jan-07 10:39:48] [trace] [  JLink] - WEBSRV Webserver running on local port 19080
    [2025-Jan-07 10:39:48] [trace] [  JLink] - Looking for J-Link GUI Server exe at: C:\Program Files\SEGGER\JLink_V812\JLinkGUIServer.exe 
    [2025-Jan-07 10:39:48] [trace] [  JLink] - Forking J-Link GUI Server: C:\Program Files\SEGGER\JLink_V812\JLinkGUIServer.exe 
    [2025-Jan-07 10:39:48] [trace] [  JLink] - J-Link GUI Server info: "J-Link GUI server V8.12 " 
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 39.176ms returns "O.K."  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_Lock()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_ExecCommand("SetRestartOnClose = 0", ...).   
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.001ms returns 0x01  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_ExecCommand("DisableFlashDL", ...).   
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.002ms returns 0x00  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_ExecCommand("ExcludeFlashCacheRange 0x0-0xFFFFFFFF", ...).   
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.003ms returns 0x00  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_SetHookUnsecureDialog  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_SetHookUnsecureDialog(...)
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.011ms returns 0  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_TIF_Select(JLINKARM_TIF_SWD)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.755ms returns 0x00  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_GetSpeedInfo()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - 180000000 Hz / n, n >= 12
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.008ms   
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [debug] [SeggerBackend] - Connected emulator supports SWD speeds up to 15000kHz
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_SetSpeed(2000)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.127ms   
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_GetSpeed()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.003ms returns 2000  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [debug] [SeggerBackend] - SWD clock set to 2000kHz
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_GetSN()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.013ms returns 260116832  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.005ms   
    [2025-Jan-07 10:39:48] [debug] [  nRFXX] - read_device_family
    [2025-Jan-07 10:39:48] [debug] [  nRFXX] - read_device_family
    [2025-Jan-07 10:39:48] [debug] [SeggerBackend] - is_connected_to_emu
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_IsOpen()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.003ms returns 0x01  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_Lock()  
    [2025-Jan-07 10:39:48] [debug] [SeggerBackend] - is_connected_to_emu
    [2025-Jan-07 10:39:48] [debug] [SeggerBackend] - read_debug_port_idr
    [2025-Jan-07 10:39:48] [debug] [SeggerBackend] - read_debug_port_register
    [2025-Jan-07 10:39:48] [debug] [SeggerBackend] - ---just_read_debug_port_register
    [2025-Jan-07 10:39:48] [debug] [SeggerBackend] - coresight_configure
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_GetHWStatus(...)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.204ms returns 0  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_Configure()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 100.501ms returns 0  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [debug] [SeggerBackend] - read_debug_port_idr
    [2025-Jan-07 10:39:48] [debug] [SeggerBackend] - read_debug_port_register
    [2025-Jan-07 10:39:48] [debug] [SeggerBackend] - ---just_read_debug_port_register
    [2025-Jan-07 10:39:48] [debug] [SeggerBackend] - ---just_select_debug_port_register
    [2025-Jan-07 10:39:48] [debug] [SeggerBackend] - Select AP 255, DP Bank 0, AP Bank 255
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.863ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2025-Jan-07 10:39:48] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.943ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.878ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.854ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.857ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.831ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.854ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.907ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2025-Jan-07 10:39:48] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.920ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.887ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.928ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.810ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.857ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.844ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.768ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2025-Jan-07 10:39:48] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.858ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.784ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.813ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.755ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.910ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.856ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.806ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2025-Jan-07 10:39:48] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.735ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.739ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.850ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.764ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.803ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.688ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2025-Jan-07 10:39:48] [error] [ Client] - Encountered error -102: Command connect_to_emu_with_snr executed for 204 milliseconds with result -102
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.690ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2025-Jan-07 10:39:48] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.780ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.776ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.805ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.678ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.653ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.819ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.792ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2025-Jan-07 10:39:48] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.650ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.747ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.703ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.780ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.719ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.783ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.077ms   
    [2025-Jan-07 10:39:48] [error] [ Worker] - An unknown error.
    [2025-Jan-07 10:39:48] [trace] [ Worker] - Command connect_to_emu_with_snr executed for 198 milliseconds with result -102
    [2025-Jan-07 10:39:48] [debug] [  nRFXX] - close
    [2025-Jan-07 10:39:48] [debug] [SeggerBackend] - is_connected_to_emu
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_IsOpen()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.018ms returns 0x01  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_Lock()  
    [2025-Jan-07 10:39:48] [debug] [SeggerBackend] - close
    [2025-Jan-07 10:39:48] [debug] [SeggerBackend] - disconnect_from_emu
    [2025-Jan-07 10:39:48] [debug] [SeggerBackend] - ---just_disconnect_from_emu
    [2025-Jan-07 10:39:48] [debug] [SeggerBackend] - is_connected_to_device
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_IsConnected()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.008ms returns FALSE  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [debug] [SeggerBackend] - ---just_is_debug_region_powered
    [2025-Jan-07 10:39:48] [debug] [SeggerBackend] - ---just_read_debug_port_register
    [2025-Jan-07 10:39:48] [debug] [SeggerBackend] - ---just_select_debug_port_register
    [2025-Jan-07 10:39:48] [debug] [SeggerBackend] - Select AP 255, DP Bank 0, AP Bank 255
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.663ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2025-Jan-07 10:39:48] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.555ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.583ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.640ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.585ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.524ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.556ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.477ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2025-Jan-07 10:39:48] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.524ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.490ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.553ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.488ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.520ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.484ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.542ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2025-Jan-07 10:39:48] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.485ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.518ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.490ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.562ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.464ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.478ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.457ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2025-Jan-07 10:39:48] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.514ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.482ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.485ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.625ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.580ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.489ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.485ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2025-Jan-07 10:39:48] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.520ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.515ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.562ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.481ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.513ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.513ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.476ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2025-Jan-07 10:39:48] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.687ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.588ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.646ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.629ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.624ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.624ms returns -1  
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_HasError()  
    [2025-Jan-07 10:39:48] [debug] [SeggerBackend] - Ignore exception An unknown error.
    [2025-Jan-07 10:39:48] [trace] [  JLink] - - 0.043ms   
    [2025-Jan-07 10:39:48] [trace] [  JLink] - JLINK_Close()  
    [2025-Jan-07 10:39:48] [debug] [SeggerBackend] - Segger Backend closed.
    [2025-Jan-07 10:39:48] [debug] [  nRFXX] - nRF family DLL closed
    [2025-Jan-07 10:39:48] [trace] [ Client] - Command close executed for 90 milliseconds with result 0
    [2025-Jan-07 10:39:48] [debug] [ Client] - terminate
    [2025-Jan-07 10:39:48] [trace] [ Client] - Command terminate executed for 0 milliseconds with result 0
    [2025-Jan-07 10:39:48] [trace] [ Worker] - Command close executed for 73 milliseconds with result 0
    [2025-Jan-07 10:39:48] [trace] [ Worker] - Command terminate executed for 0 milliseconds with result 0
    [2025-Jan-07 10:39:48] [trace] [ Worker] - Executed 6 commands for 281 milliseconds
    [2025-Jan-07 10:39:48] [debug] [ Client] - Worker process exited with code: 0
    [2025-Jan-07 10:39:48] [debug] [ Client] - Worker process exited with code: 0
    [2025-Jan-07 10:39:48] [debug] [ Client] - Child process terminated with result 0
    [2025-Jan-07 10:39:48] [trace] [ Client] - Executed 6 commands for 385 milliseconds
    [2025-Jan-07 10:39:48] [debug] [ Client] - terminate
    

    I re-checked the USB cable, tag-connect cable, and other hardware components. Everything appears to be in working order. Interestingly, the board restarts after a failed connection, suggesting a connection attempt is being made.

    Are there any additional tests or debugging steps you’d recommend to identify the issue?

    I appreciate your support!

    Best regards,

    Valentin. 

  • I also tested downgrading the Jlink Software/Driver version  (8.12, 8.10l, 8.10k) just in case this affects the interaction with the microcontroller, and I have the same issue.

Reply Children
No Data
Related