I also have 2x brand new nrf9160 feathers. I have tried to power these up via the usb-c from computer, as well as the battery port with 3.6V. However, there is no LEDs lighting up when trying to power it up.

I have tried to measure the voltage on the board, and it seems to be fine with the battery port (not measured with usbc).

I have also tried to look at connected usb devices on my computer when connected through usbc, but nothing shows up.

Does anyone know what the issue might be?🙂

Hi @therustyalex

Can you confirm the cable you’re using works on other devices? Are you plugging the nRF9160 Feather into anything else? Did you solder headers on?

    jaredwolff Do you by any chance know what this error might be related to:
    nrfjprog version: 10.23.2 external
    JLinkARM.dll version: 7.88j
    computer: mac

    When I run the: nrfjprog -r on the nrf9160 DK I get:
    Applying system reset.
    Run.

    However, when connecting the feather with a TC2030-CTX-NL 6-Pin I get this error:

    [error] [ Client] - Encountered error -102: Command connect_to_emu_with_snr executed for 576 milliseconds with result -102
    ERROR: Unable to connect to a debugger.
    [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.

    I have followed this tutorial:
    https://docs.circuitdojo.com/nrf9160-programming-and-debugging.html#requirements-for-external-programming

    I have also run this:

    nrfjprog --com
    960045815    /dev/tty.usbmodem0009600458153    VCOM1
    960045815    /dev/tty.usbmodem0009600458151    VCOM0
    960045815    /dev/tty.usbmodem0009600458155    VCOM
    
    FULL LOG:
    [2023-Dec-12 21:22:30] [debug] --------------------------------------------------------------------------------
    [2023-Dec-12 21:22:30] [debug] nrfjprog -r --log 
    [2023-Dec-12 21:22:30] [debug] nrfjprog version 10.23.2 external
    [2023-Dec-12 21:22:30] [debug] --------------------------------------------------------------------------------
    [2023-Dec-12 21:22:30] [ info] Load library at /Applications/Nordic Semiconductor/lib/libnrfjprogdll.dylib.
    [2023-Dec-12 21:22:30] [ info] Library loaded, loading member functions.
    [2023-Dec-12 21:22:30] [ info] Member functions succesfully loaded.
    [2023-Dec-12 21:22:30] [debug] [ Client] - open
    [2023-Dec-12 21:22:30] [debug] [ Client] - start
    [2023-Dec-12 21:22:30] [ info] [ Client] - stdout: Jlinkarm nRF Worker ready. Handling sequence a1e71bc8-643a-4729-b539-53abac389a2f.
    [2023-Dec-12 21:22:30] [debug] [SeggerBackend] - Logger sink registered in Segger backend logger
    [2023-Dec-12 21:22:30] [debug] [  JLink] - Logger sink registered in JLink logger
    [2023-Dec-12 21:22:30] [debug] [  nRFXX] - open
    [2023-Dec-12 21:22:30] [debug] [  nRFXX] - just_check_family
    [2023-Dec-12 21:22:30] [debug] [SeggerBackend] - open_dll
    [2023-Dec-12 21:22:30] [debug] [SeggerBackend] - No J-Link DLL path was provided. Attempting to auto detect.
    [2023-Dec-12 21:22:30] [ info] [SeggerBackend] - Load library at /Applications/SEGGER/JLink/libjlinkarm.7.88.10.dylib.
    [2023-Dec-12 21:22:30] [ info] [SeggerBackend] - Library loaded, loading member functions.
    [2023-Dec-12 21:22:30] [ info] [SeggerBackend] - Member functions succesfully loaded.
    [2023-Dec-12 21:22:30] [debug] [SeggerBackend] - Set batch mode
    [2023-Dec-12 21:22:30] [debug] [SeggerBackend] - dll_version
    [2023-Dec-12 21:22:30] [ info] [SeggerBackend] - Segger dll version 7.88.j loaded.
    [2023-Dec-12 21:22:30] [trace] [ Worker] - Command open executed for 5 milliseconds with result 0
    [2023-Dec-12 21:22:30] [trace] [ Client] - Command open executed for 12 milliseconds with result 0
    [2023-Dec-12 21:22:30] [debug] [ Client] - config
    [2023-Dec-12 21:22:30] [trace] [ Client] - Command config executed for 6 milliseconds with result 0
    [2023-Dec-12 21:22:30] [debug] [ Client] - enum_emu_snr
    [2023-Dec-12 21:22:30] [trace] [ Client] - Command enum_emu_con_info executed for 6 milliseconds with result 0
    [2023-Dec-12 21:22:30] [debug] [ Client] - connect_to_emu_with_snr
    [2023-Dec-12 21:22:30] [debug] [  nRFXX] - config
    [2023-Dec-12 21:22:30] [debug] [SeggerBackend] - enum_emu_snr
    [2023-Dec-12 21:22:30] [trace] [ Worker] - Command config executed for 1 milliseconds with result 0
    [2023-Dec-12 21:22:30] [debug] [  nRFXX] - enum_emu_con_info
    [2023-Dec-12 21:22:30] [debug] [SeggerBackend] - is_connected_to_emu
    [2023-Dec-12 21:22:30] [debug] [SeggerBackend] - enum_emu_con_info
    [2023-Dec-12 21:22:30] [debug] [SeggerBackend] - is_connected_to_emu
    [2023-Dec-12 21:22:30] [trace] [ Worker] - Command enum_emu_con_info executed for 0 milliseconds with result 0
    [2023-Dec-12 21:22:30] [debug] [  nRFXX] - connect_to_emu_with_snr
    [2023-Dec-12 21:22:30] [debug] [SeggerBackend] - is_connected_to_emu
    [2023-Dec-12 21:22:30] [debug] [SeggerBackend] - connect_to_emu_with_snr
    [2023-Dec-12 21:22:30] [debug] [SeggerBackend] - is_connected_to_emu
    [2023-Dec-12 21:22:30] [debug] [SeggerBackend] - ---just_enum_emu_snr
    [2023-Dec-12 21:22:30] [debug] [SeggerBackend] - ---just_get_num_emus
    [2023-Dec-12 21:22:30] [debug] [SeggerBackend] - ---just_connect_to_emu_with_snr
    [2023-Dec-12 21:22:30] [debug] [SeggerBackend] - ---just_connect_to_emu_without_snr
    [2023-Dec-12 21:22:30] [debug] [SeggerBackend] - Segger logging enabled.
    [2023-Dec-12 21:22:30] [trace] [  JLink] - Firmware: J-Link OB-K22-NordicSemi compiled Oct 30 2023 12:12:53
    [2023-Dec-12 21:22:30] [trace] [  JLink] - Firmware: J-Link OB-K22-NordicSemi compiled Oct 30 2023 12:12:53
    [2023-Dec-12 21:22:30] [trace] [  JLink] - Hardware: V1.00
    [2023-Dec-12 21:22:30] [trace] [  JLink] - S/N: 960045815
    [2023-Dec-12 21:22:30] [trace] [  JLink] - OEM: SEGGER
    [2023-Dec-12 21:22:30] [trace] [  JLink] - Feature(s): RDI, FlashBP, FlashDL, JFlash, GDB
    [2023-Dec-12 21:22:30] [trace] [  JLink] - Bootloader: 2018 Aug 07
    [2023-Dec-12 21:22:30] [trace] [  JLink] - USB speed mode: Full speed (12 MBit/s)
    [2023-Dec-12 21:22:30] [trace] [  JLink] - TELNET listener socket opened on port 19021
    [2023-Dec-12 21:22:30] [trace] [  JLink] - WEBSRV WEBSRV_Init(): Starting webserver thread(s)
    [2023-Dec-12 21:22:30] [trace] [  JLink] - WEBSRV Webserver running on local port 19080
    [2023-Dec-12 21:22:30] [trace] [  JLink] - Looking for J-Link GUI Server exe at: /Applications/SEGGER/JLink_V788j/JLinkGUIServerExe 
    [2023-Dec-12 21:22:30] [trace] [  JLink] - Forking J-Link GUI Server: /Applications/SEGGER/JLink_V788j/JLinkGUIServerExe 
    [2023-Dec-12 21:22:30] [trace] [  JLink] - J-Link GUI Server info: "J-Link GUI server V7.88j " 
    [2023-Dec-12 21:22:30] [trace] [  JLink] - - 429.943ms returns "O.K."  
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_Lock()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_ExecCommand("SetRestartOnClose = 0", ...).
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.002ms returns 0x01
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_ExecCommand("DisableFlashDL", ...).
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.001ms returns 0x00
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_ExecCommand("ExcludeFlashCacheRange 0x0-0xFFFFFFFF", ...).
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.001ms returns 0x00
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_SetHookUnsecureDialog
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_SetHookUnsecureDialog(...) [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.003ms returns 0
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_TIF_Select(JLINKARM_TIF_SWD)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.572ms returns 0x00
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_GetSpeedInfo()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - 72000000 Hz / n, n >= 36 [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.003ms
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [debug] [SeggerBackend] - Connected emulator supports SWD speeds up to 2000kHz [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_SetSpeed(2000)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.072ms
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_GetSpeed()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.001ms returns 2000
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [debug] [SeggerBackend] - SWD clock set to 2000kHz [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_GetSN()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.002ms returns 960045815
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.001ms
    [2023-Dec-12 21:22:30] [debug] [ nRFXX] - read_device_family [2023-Dec-12 21:22:30] [debug] [ nRFXX] - read_device_family [2023-Dec-12 21:22:30] [debug] [SeggerBackend] - is_connected_to_emu [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_IsOpen()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.001ms returns 0x01
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_Lock()
    [2023-Dec-12 21:22:30] [debug] [SeggerBackend] - is_connected_to_emu [2023-Dec-12 21:22:30] [debug] [SeggerBackend] - read_debug_port_idr [2023-Dec-12 21:22:30] [debug] [SeggerBackend] - read_debug_port_register [2023-Dec-12 21:22:30] [debug] [SeggerBackend] - ---just_read_debug_port_register [2023-Dec-12 21:22:30] [debug] [SeggerBackend] - coresight_configure [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_GetHWStatus(...)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.123ms returns 0
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_Configure()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 100.442ms returns 0
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [debug] [SeggerBackend] - read_debug_port_idr [2023-Dec-12 21:22:30] [debug] [SeggerBackend] - read_debug_port_register [2023-Dec-12 21:22:30] [debug] [SeggerBackend] - ---just_read_debug_port_register [2023-Dec-12 21:22:30] [debug] [SeggerBackend] - ---just_select_debug_port_register [2023-Dec-12 21:22:30] [debug] [SeggerBackend] - Select AP 255, DP Bank 0, AP Bank 255 [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.593ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [debug] [SeggerBackend] - ---just_abort_debug_action [2023-Dec-12 21:22:30] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.527ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.506ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.513ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.522ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.528ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.531ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.531ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [debug] [SeggerBackend] - ---just_abort_debug_action [2023-Dec-12 21:22:30] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.531ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.521ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.524ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.516ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.529ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.501ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.496ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [debug] [SeggerBackend] - ---just_abort_debug_action [2023-Dec-12 21:22:30] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.502ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.504ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.513ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.521ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2023-Dec-12 21:22:30] [error] [ Client] - Encountered error -102: Command connect_to_emu_with_snr executed for 580 milliseconds with result -102 [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.531ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.524ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.527ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [debug] [SeggerBackend] - ---just_abort_debug_action [2023-Dec-12 21:22:30] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.523ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.521ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.525ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.519ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.528ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.531ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.533ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [debug] [SeggerBackend] - ---just_abort_debug_action [2023-Dec-12 21:22:30] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.527ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.535ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.514ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.569ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.588ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.535ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.526ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [debug] [SeggerBackend] - ---just_abort_debug_action [2023-Dec-12 21:22:30] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.531ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.512ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.560ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.525ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.526ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.555ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.045ms
    [2023-Dec-12 21:22:30] [error] [ Worker] - An unknown error. [2023-Dec-12 21:22:30] [trace] [ Worker] - Command connect_to_emu_with_snr executed for 570 milliseconds with result -102 [2023-Dec-12 21:22:30] [debug] [ nRFXX] - close [2023-Dec-12 21:22:30] [debug] [SeggerBackend] - is_connected_to_emu [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_IsOpen()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.002ms returns 0x01
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_Lock()
    [2023-Dec-12 21:22:30] [debug] [SeggerBackend] - close [2023-Dec-12 21:22:30] [debug] [SeggerBackend] - disconnect_from_emu [2023-Dec-12 21:22:30] [debug] [SeggerBackend] - ---just_disconnect_from_emu [2023-Dec-12 21:22:30] [debug] [SeggerBackend] - is_connected_to_device [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_IsConnected()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.004ms returns FALSE
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [debug] [SeggerBackend] - ---just_is_debug_region_powered [2023-Dec-12 21:22:30] [debug] [SeggerBackend] - ---just_read_debug_port_register [2023-Dec-12 21:22:30] [debug] [SeggerBackend] - ---just_select_debug_port_register [2023-Dec-12 21:22:30] [debug] [SeggerBackend] - Select AP 255, DP Bank 0, AP Bank 255 [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.581ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [debug] [SeggerBackend] - ---just_abort_debug_action [2023-Dec-12 21:22:30] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.585ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.529ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.530ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.523ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.527ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.534ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.516ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [debug] [SeggerBackend] - ---just_abort_debug_action [2023-Dec-12 21:22:30] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.523ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.593ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.555ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.535ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.532ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.517ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.507ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [debug] [SeggerBackend] - ---just_abort_debug_action [2023-Dec-12 21:22:30] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.540ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.522ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.522ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.521ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.540ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.514ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.572ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [debug] [SeggerBackend] - ---just_abort_debug_action [2023-Dec-12 21:22:30] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.525ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.517ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.539ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.520ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.532ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.524ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.558ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [debug] [SeggerBackend] - ---just_abort_debug_action [2023-Dec-12 21:22:30] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.547ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.586ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.534ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.532ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.530ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.521ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.534ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [debug] [SeggerBackend] - ---just_abort_debug_action [2023-Dec-12 21:22:30] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.517ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.525ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.561ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.591ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.520ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.523ms returns -1
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_HasError()
    [2023-Dec-12 21:22:30] [debug] [SeggerBackend] - Ignore exception An unknown error. [2023-Dec-12 21:22:30] [trace] [ JLink] - - 0.026ms
    [2023-Dec-12 21:22:30] [trace] [ JLink] - JLINK_Close()
    [2023-Dec-12 21:22:30] [debug] [SeggerBackend] - Segger Backend closed. [2023-Dec-12 21:22:30] [debug] [ nRFXX] - nRF family DLL closed [2023-Dec-12 21:22:30] [trace] [ Client] - Command close executed for 62 milliseconds with result 0 [2023-Dec-12 21:22:30] [debug] [ Client] - terminate [2023-Dec-12 21:22:30] [trace] [ Client] - Command terminate executed for 6 milliseconds with result 0 [2023-Dec-12 21:22:30] [trace] [ Worker] - Command close executed for 55 milliseconds with result 0 [2023-Dec-12 21:22:30] [trace] [ Worker] - Command t

    Interesting. Is your board powered when you have it connected? Depending on your development board, you may need to solder a jumper to force usage of the external connector rather than the on-board chip. Also the nRF9160 can only be programmed by the nRF91DK, nRF53DK, or anything else newer.

      jaredwolff I have it connected with the usb-c. However, there is no constant green LED light on the feather. It lights up for 1 sec when plugging in the usb-c, then turns off.
      I am able to get the blue LED lighting up constantly by holding the MODE down when plugging in the cable.

      Yes I am using the nrf9160 DK🙂

      Thanks!

        therustyalex However, there is no constant green LED light on the feather. It lights up for 1 sec when plugging in the usb-c, then turns off.

        The green LED is for the battery chragee. W
        It will only turn on if you have USB and a low battery connected (when it’s charging)

        therustyalex I am able to get the blue LED lighting up constantly by holding the MODE down when plugging in the cable.

        This is only important for the bootloader. If you’re programming using the Tag Connect the LED state won’t matter.

        Can you explain what you’re trying to accomplish by using the Tag Connect?

          jaredwolff Thanks!
          So I am successfully flashing my rust code to the nrf9160 DK. My ambition is to do the same on the feather through the DK🙂

          So if I understood LEDs correct, there should be no LEDs lighting up when only the usb-c is connected and not in the bootloader?

            therustyalex So if I understood LEDs correct, there should be no LEDs lighting up when only the usb-c is connected and not in the bootloader?

            If you don’t have code on there that isn’t toggling/using the LED, then yes it shouldn’t light up. You should be able to program using the Tag Connect irrespective of the LED state.

              jaredwolff I see.
              So I tried checking the nrf connect desktop programmer tool, and I got this:

              Does this make any sense to you?

              When nrf9160 DK chosen:

              20:14:45.921 Using nrfutil device to communicate with target via JLink
              20:14:45.921 JLink OB firmware version J-Link OB-K22-NordicSemi compiled Oct 30 2023 12:12:53
              20:14:45.921 Device family NRF91_FAMILY
              20:14:45.921 Device version NRF9160_xxAA_REV2
              20:14:45.921 Board version PCA10090
              20:14:46.240 Reading readback protection status for Application core
              20:14:46.242 Reading readback protection status for Application core 0%
              20:14:46.242 Reading readback protection status for Application core 100%
              20:14:46.242 Application core protection status ‘NRFDL_PROTECTION_STATUS_NONE’
              20:14:46.243 Reading readback protection status for Application core completed
              20:14:46.657 Loading core information for Application core
              20:14:46.660 Loading core information for Application core 0%
              20:14:46.661 Loading core information for Application core 100%
              20:14:46.662 Loading core information for Application core completed
              20:14:47.072 Reading readback protection status for Application core
              20:14:47.075 Reading readback protection status for Application core 0%
              20:14:47.075 Reading readback protection status for Application core 100%
              20:14:47.075 Application core protection status ‘NRFDL_PROTECTION_STATUS_NONE’
              20:14:47.075 Reading readback protection status for Application core completed
              20:14:47.146 Device is loaded and ready for further operation

              When feather chosen:

              20:15:58.606 No operations possible for device.
              20:15:58.609 If the device is a MCUBoot device make sure it is in the bootloader mode
              20:15:58.609 If the device is a JLink device, please make sure J-Link Software is installed. See https://github.com/NordicSemiconductor/pc-nrfconnect-launcher/#macos-and-linux

              jaredwolff Thanks.
              So I followed the tutorial closely and opened a terminal and run nrfjprog -r.
              When not having the feather connected via the Tag Connect, the command successfully runs, but still getting the error when hooking the feather up:

              [error] [ Client] - Encountered error -102: Command connect_to_emu_with_snr executed for 881 milliseconds with result -102
              ERROR: Unable to connect to a debugger.
              [error] [ Worker] - An unknown error.
              ERROR: JLinkARM DLL reported an error. Try again. If error condition

              I have not jumped the SB47 on nrf9160 DK. However, as the error only occurs when hooking up the feather on the Tag Connect, it may indicate that the DK know an external devices is connected?

              Also spoke with nordic regarding this issue, their answer:
              Is the voltage level of nRF9160DK and the feather same? This should be same.

              Both the DK and the feather are connected to my mac through a Satechi adapter. Which seems to power the DK and feather.

              If your DK is not jumped it may not work well. Can you share a picture of your setup?

              Sure!
              I sometimes have to hold the Tag Connect with a bit of pressure on the feather to make sure it is connected.
              IMG_2820

              IMG_2821

              Cool thanks. Make sure you really squish it down. A light touch doesn’t work well.

              Also do you have the latest JLink? You should download the latest to make sure your DK is up to date. (Running jlinkexe should prompt you to update your DK firmware if it’s out of date)

              I would also, if you can, make sure your external connector doesn’t have issues by programming another board. (Or simply issuing a nrfjprog -r)

              Yeah I squish it down firmly.
              I have tried using the latest JLink, but the latest version of nrfjprog command seem to want JLinkARM.dll version: 7.88j
              Which I get from this download: https://www.nordicsemi.com/Products/Development-tools/nrf-command-line-tools/download#infotabs

              So regarding keeping my DK up to date, this is my log:
              alex ~ $ jlinkexe
              SEGGER J-Link Commander V7.88j (Compiled Jun 28 2023 13:34:58)
              DLL version V7.88j, compiled Jun 28 2023 13:34:50

              Connecting to J-Link via USB…O.K.
              Firmware: J-Link OB-K22-NordicSemi compiled Oct 30 2023 12:12:53
              Hardware version: V1.00
              J-Link uptime (since boot): 0d 00h 00m 07s
              S/N: xxx
              License(s): RDI, FlashBP, FlashDL, JFlash, GDB
              USB speed mode: Full speed (12 MBit/s)
              VTref=3.300V

              Type “connect” to establish a target connection, ‘?’ for help
              J-Link>

              So I am running:
              nrfjprog version: 10.23.0 external
              JLinkARM.dll version: 7.94b

              Also tried with an older mac which run on intel. Still getting an error when trying to run the nrfjprog -r with feather attached:/

              FYI I have not jumped my SB37 on 9160 DK.

              Tried to west build + flash also.

              Only DK flashing

              west flash
              – west flash: rebuilding
              ninja: no work to do.
              – west flash: using runner nrfjprog
              Using board 960045815
              – runners.nrfjprog: Flashing file: /opt/nordic/ncs/v2.2.0/nrf/samples/spm/build/zephyr/zephyr.hex
              [ #################### ] 0.774s | Erase file - Done erasing
              [ #################### ] 0.212s | Program file - Done programming
              [ #################### ] 0.196s | Verify file - Done verifying
              Applying pin reset.
              – runners.nrfjprog: Board with serial number 960045815 flashed successfully.

              Flashing with feather attached to DK

              alex /opt/nordic/ncs/v2.2.0/nrf/samples/spm [(no branch)] $ west flash
              – west flash: rebuilding
              ninja: no work to do.
              – west flash: using runner nrfjprog
              Using board 960045815
              – runners.nrfjprog: Flashing file: /opt/nordic/ncs/v2.2.0/nrf/samples/spm/build/zephyr/zephyr.hex
              [error] [ Client] - Encountered error -102: Command read_device_info executed for 131 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 /opt/nordic/ncs/v2.2.0/nrf/samples/spm/build/zephyr/zephyr.hex –sectorerase –verify -f NRF91 –snr 960045815

              This is what nordic answered:

              10 pin connector is changed on the newer version of DK.

              The documentation you followed for earlier version of DKs. (https://docs.circuitdojo.com/nrf9160-programming-and-debugging.html#requirements-for-external-programming-and-debugging)

              Do you think your external board as same connection as this https://infocenter.nordicsemi.com/topic/ug_nrf91_dk/UG/nrf91_DK/ext_programming_support.html?cp=2_0_4_3_11_0?

              Terms and Conditions | Privacy Policy