Unable to flash nrf9160 - is my design correct?

Hello,

I have designed this schematic according to reference designs provided by Nordic Semi, however I might have failed as I am unable to flash the main module. I should mention I am a beginner, however not a complete beginner, as I've created functioning PCBs in the past.

I am flashing it using the nrf9161DK via SPI and I am sure the connections are correct. Still, the Programmer app of Nordic SDK doesnt recognize the new board with the nrf9160

Below is the schematic:

Thank you for your help

Matej Holubec

  • Hi, Matej.

    When using the nRF9161 DK to program an external board, you should use the SWD connection, as described in the nRF9161 DK's documentation.

    If you want to perform DFU on your board using a connection different from SWD, you should check out the Bootloaders and DFU lesson in DevAcademy.

    Best regards,
    Mathias

  • Yes, sorry I used the wrong term. Of course I used the SWD connectors, in my design headers SWDCLK1 and SWDIO1. What I'd like to know if there is a flaw in this schematic that would explain why it does not work

  • Ok, understood.

    Are you sure you've made the connections exactly as in the documentation? Are you using a custom connection or a standard 10-pin connector?

    What error do you get when attempting to flash?

  • Sorry for not being able to reply sooner and thank you for your time so far.

    I'm using a custom connection (single header pins) connected to the respective header pins on the NRF9161DK's P20 cluster. In my design, I'm connecting them to the same names as on the DK, with the only difference of VTG => 3V3

    The following is the log file of "nrfjprog --eraseall --log" with the DK connected by USB to the host computer and my board connected to the DK by the P20 pins 

    [2025-May-05 21:16:12] [debug] --------------------------------------------------------------------------------
    [2025-May-05 21:16:12] [debug] C:\Program Files\Nordic Semiconductor\nrf-command-line-tools\bin\nrfjprog.exe --eraseall --log 
    [2025-May-05 21:16:12] [debug] nrfjprog version 10.24.2 external
    [2025-May-05 21:16:12] [debug] --------------------------------------------------------------------------------
    [2025-May-05 21:16:12] [ info] Load library at C:\Program Files\Nordic Semiconductor\nrf-command-line-tools\bin\nrfjprog.dll.
    [2025-May-05 21:16:12] [ info] Library loaded, loading member functions.
    [2025-May-05 21:16:12] [ info] Member functions succesfully loaded.
    [2025-May-05 21:16:13] [debug] [ Client] - open
    [2025-May-05 21:16:13] [debug] [ Client] - start
    [2025-May-05 21:16:13] [ info] [ Client] - stdout: Jlinkarm nRF Worker ready. Handling sequence 20ae1bfa-89cf-49ec-bf41-0696495f383a.
    
    [2025-May-05 21:16:13] [trace] [ Client] - Command open executed for 37 milliseconds with result 0
    [2025-May-05 21:16:13] [debug] [ Client] - config
    [2025-May-05 21:16:13] [debug] [SeggerBackend] - Logger sink registered in Segger backend logger
    [2025-May-05 21:16:13] [trace] [ Client] - Command config executed for 15 milliseconds with result 0
    [2025-May-05 21:16:13] [debug] [  JLink] - Logger sink registered in JLink logger
    [2025-May-05 21:16:13] [debug] [  nRFXX] - open
    [2025-May-05 21:16:13] [debug] [  nRFXX] - just_check_family
    [2025-May-05 21:16:13] [debug] [SeggerBackend] - open_dll
    [2025-May-05 21:16:13] [debug] [SeggerBackend] - No J-Link DLL path was provided. Attempting to auto detect.
    [2025-May-05 21:16:13] [ info] [SeggerBackend] - Load library at C:\Program Files\SEGGER\JLink\JLink_x64.dll.
    [2025-May-05 21:16:13] [debug] [ Client] - enum_emu_snr
    [2025-May-05 21:16:13] [ info] [SeggerBackend] - Library loaded, loading member functions.
    [2025-May-05 21:16:13] [ info] [SeggerBackend] - Member functions succesfully loaded.
    [2025-May-05 21:16:13] [debug] [SeggerBackend] - Set batch mode
    [2025-May-05 21:16:13] [debug] [SeggerBackend] - dll_version
    [2025-May-05 21:16:13] [ info] [SeggerBackend] - Segger dll version 7.94.i loaded.
    [2025-May-05 21:16:13] [trace] [ Worker] - Command open executed for 4 milliseconds with result 0
    [2025-May-05 21:16:13] [debug] [  nRFXX] - config
    [2025-May-05 21:16:13] [debug] [SeggerBackend] - enum_emu_snr
    [2025-May-05 21:16:13] [trace] [ Worker] - Command config executed for 3 milliseconds with result 0
    [2025-May-05 21:16:13] [trace] [ Client] - Command enum_emu_con_info executed for 15 milliseconds with result 0
    [2025-May-05 21:16:13] [debug] [ Client] - connect_to_emu_with_snr
    [2025-May-05 21:16:13] [debug] [  nRFXX] - enum_emu_con_info
    [2025-May-05 21:16:13] [debug] [SeggerBackend] - is_connected_to_emu
    [2025-May-05 21:16:13] [debug] [SeggerBackend] - enum_emu_con_info
    [2025-May-05 21:16:13] [debug] [SeggerBackend] - is_connected_to_emu
    [2025-May-05 21:16:13] [trace] [ Worker] - Command enum_emu_con_info executed for 2 milliseconds with result 0
    [2025-May-05 21:16:13] [debug] [  nRFXX] - connect_to_emu_with_snr
    [2025-May-05 21:16:13] [debug] [SeggerBackend] - is_connected_to_emu
    [2025-May-05 21:16:13] [debug] [SeggerBackend] - connect_to_emu_with_snr
    [2025-May-05 21:16:13] [debug] [SeggerBackend] - is_connected_to_emu
    [2025-May-05 21:16:13] [debug] [SeggerBackend] - ---just_enum_emu_snr
    [2025-May-05 21:16:13] [debug] [SeggerBackend] - ---just_get_num_emus
    [2025-May-05 21:16:13] [debug] [SeggerBackend] - ---just_connect_to_emu_with_snr
    [2025-May-05 21:16:13] [debug] [SeggerBackend] - ---just_connect_to_emu_without_snr
    [2025-May-05 21:16:13] [debug] [SeggerBackend] - Segger logging enabled.
    [2025-May-05 21:16:13] [trace] [  JLink] - Firmware: J-Link OB-nRF5340-NordicSemi compiled Jun 25 2024 17:06:45
    [2025-May-05 21:16:13] [trace] [  JLink] - Firmware: J-Link OB-nRF5340-NordicSemi compiled Jun 25 2024 17:06:45
    [2025-May-05 21:16:13] [trace] [  JLink] - Hardware: V1.00
    [2025-May-05 21:16:13] [trace] [  JLink] - S/N: 1050987041
    [2025-May-05 21:16:13] [trace] [  JLink] - OEM: SEGGER
    [2025-May-05 21:16:13] [trace] [  JLink] - Feature(s): RDI, FlashBP, FlashDL, JFlash, GDB
    [2025-May-05 21:16:13] [trace] [  JLink] - Bootloader: 2021 May 18
    [2025-May-05 21:16:13] [trace] [  JLink] - USB speed mode: Full speed (12 MBit/s)
    [2025-May-05 21:16:13] [trace] [  JLink] - TELNET listener socket opened on port 19021
    [2025-May-05 21:16:13] [trace] [  JLink] - WEBSRV WEBSRV_Init(): Starting webserver thread(s)
    [2025-May-05 21:16:13] [trace] [  JLink] - WEBSRV Webserver running on local port 19080
    [2025-May-05 21:16:13] [trace] [  JLink] - Looking for J-Link GUI Server exe at: C:\Program Files\SEGGER\JLink\JLinkGUIServer.exe 
    [2025-May-05 21:16:13] [trace] [  JLink] - Forking J-Link GUI Server: C:\Program Files\SEGGER\JLink\JLinkGUIServer.exe 
    [2025-May-05 21:16:13] [trace] [  JLink] - J-Link GUI Server info: "J-Link GUI server V7.94i " 
    [2025-May-05 21:16:13] [trace] [  JLink] - - 100.024ms returns "O.K."  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_Lock()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_ExecCommand("SetRestartOnClose = 0", ...).   
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.002ms returns 0x01  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_ExecCommand("DisableFlashDL", ...).   
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.001ms returns 0x00  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_ExecCommand("ExcludeFlashCacheRange 0x0-0xFFFFFFFF", ...).   
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.003ms returns 0x00  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_SetHookUnsecureDialog  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_SetHookUnsecureDialog(...)
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.008ms returns 0  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_TIF_Select(JLINKARM_TIF_SWD)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.629ms returns 0x00  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_GetSpeedInfo()  
    [2025-May-05 21:16:13] [trace] [  JLink] - 128000000 Hz / n, n >= 64
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.007ms  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [debug] [SeggerBackend] - Connected emulator supports SWD speeds up to 2000kHz
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_SetSpeed(2000)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.092ms  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_GetSpeed()  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.003ms returns 2000  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [debug] [SeggerBackend] - SWD clock set to 2000kHz
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_GetSN()  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.005ms returns 1050987041  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.004ms  
    [2025-May-05 21:16:13] [debug] [  nRFXX] - read_device_family
    [2025-May-05 21:16:13] [debug] [  nRFXX] - read_device_family
    [2025-May-05 21:16:13] [debug] [SeggerBackend] - is_connected_to_emu
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_IsOpen()  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.004ms returns 0x01  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_Lock()  
    [2025-May-05 21:16:13] [debug] [SeggerBackend] - is_connected_to_emu
    [2025-May-05 21:16:13] [debug] [SeggerBackend] - read_debug_port_idr
    [2025-May-05 21:16:13] [debug] [SeggerBackend] - read_debug_port_register
    [2025-May-05 21:16:13] [debug] [SeggerBackend] - ---just_read_debug_port_register
    [2025-May-05 21:16:13] [debug] [SeggerBackend] - coresight_configure
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_GetHWStatus(...)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.193ms returns 0  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_Configure()  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 102.539ms returns 0  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [debug] [SeggerBackend] - read_debug_port_idr
    [2025-May-05 21:16:13] [debug] [SeggerBackend] - read_debug_port_register
    [2025-May-05 21:16:13] [debug] [SeggerBackend] - ---just_read_debug_port_register
    [2025-May-05 21:16:13] [debug] [SeggerBackend] - ---just_select_debug_port_register
    [2025-May-05 21:16:13] [debug] [SeggerBackend] - Select AP 255, DP Bank 0, AP Bank 255
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.891ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2025-May-05 21:16:13] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.875ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.918ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 1.029ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.974ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.932ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.967ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.955ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2025-May-05 21:16:13] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.989ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.969ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.983ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.968ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.975ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.969ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.974ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2025-May-05 21:16:13] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.995ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.862ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.975ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.488ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.982ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.570ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.960ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2025-May-05 21:16:13] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.993ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.977ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.989ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.983ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.978ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.965ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.978ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2025-May-05 21:16:13] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.989ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.968ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.980ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 1.000ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-May-05 21:16:13] [error] [ Client] - Encountered error -102: Command connect_to_emu_with_snr executed for 268 milliseconds with result -102
    [2025-May-05 21:16:13] [trace] [  JLink] - - 1.040ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.819ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.837ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2025-May-05 21:16:13] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.524ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.537ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.980ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.970ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 1.401ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.561ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.050ms  
    [2025-May-05 21:16:13] [error] [ Worker] - An unknown error.
    [2025-May-05 21:16:13] [trace] [ Worker] - Command connect_to_emu_with_snr executed for 261 milliseconds with result -102
    [2025-May-05 21:16:13] [debug] [  nRFXX] - close
    [2025-May-05 21:16:13] [debug] [SeggerBackend] - is_connected_to_emu
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_IsOpen()  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.014ms returns 0x01  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_Lock()  
    [2025-May-05 21:16:13] [debug] [SeggerBackend] - close
    [2025-May-05 21:16:13] [debug] [SeggerBackend] - disconnect_from_emu
    [2025-May-05 21:16:13] [debug] [SeggerBackend] - ---just_disconnect_from_emu
    [2025-May-05 21:16:13] [debug] [SeggerBackend] - is_connected_to_device
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_IsConnected()  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.003ms returns FALSE  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [debug] [SeggerBackend] - ---just_is_debug_region_powered
    [2025-May-05 21:16:13] [debug] [SeggerBackend] - ---just_read_debug_port_register
    [2025-May-05 21:16:13] [debug] [SeggerBackend] - ---just_select_debug_port_register
    [2025-May-05 21:16:13] [debug] [SeggerBackend] - Select AP 255, DP Bank 0, AP Bank 255
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.599ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2025-May-05 21:16:13] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.575ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.965ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.955ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.968ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.975ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.980ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.971ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2025-May-05 21:16:13] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.990ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 1.401ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.553ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 1.414ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.549ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.866ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.496ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2025-May-05 21:16:13] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.576ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.990ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.933ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.864ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 1.039ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.997ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.865ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2025-May-05 21:16:13] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 1.163ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.715ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.963ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.969ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.951ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.965ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.839ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2025-May-05 21:16:13] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.507ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.559ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.974ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.981ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.975ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.921ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.946ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2025-May-05 21:16:13] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 1.095ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.753ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 1.068ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.980ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.869ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.851ms returns -1  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_HasError()  
    [2025-May-05 21:16:13] [debug] [SeggerBackend] - Ignore exception An unknown error.
    [2025-May-05 21:16:13] [trace] [  JLink] - - 0.057ms  
    [2025-May-05 21:16:13] [trace] [  JLink] - JLINK_Close()  
    [2025-May-05 21:16:13] [debug] [SeggerBackend] - Segger Backend closed.
    [2025-May-05 21:16:13] [debug] [  nRFXX] - nRF family DLL closed
    [2025-May-05 21:16:13] [trace] [ Client] - Command close executed for 94 milliseconds with result 0
    [2025-May-05 21:16:13] [debug] [ Client] - terminate
    [2025-May-05 21:16:13] [trace] [ Worker] - Command close executed for 76 milliseconds with result 0
    [2025-May-05 21:16:13] [trace] [ Client] - Command terminate executed for 0 milliseconds with result 0
    [2025-May-05 21:16:13] [trace] [ Worker] - Command terminate executed for 0 milliseconds with result 0
    [2025-May-05 21:16:13] [trace] [ Worker] - Executed 6 commands for 346 milliseconds
    [2025-May-05 21:16:13] [debug] [ Client] - Worker process exited with code: 0
    [2025-May-05 21:16:13] [debug] [ Client] - Worker process exited with code: 0
    [2025-May-05 21:16:13] [debug] [ Client] - Child process terminated with result 0
    [2025-May-05 21:16:13] [trace] [ Client] - Executed 6 commands for 429 milliseconds
    [2025-May-05 21:16:13] [debug] [ Client] - terminate
    

  • Nothing to worry about, Matej.

    galook said:
    In my design, I'm connecting them to the same names as on the DK, with the only difference of VTG => 3V3

    But VDD and VTG on the DK are still connected to the same net, right?

Related