nrf5340DK program another nrf5340DK

Hi,

I have a custom board based on the nrf5340 which I would like to program using one of my nrf5340DK boards.

As a starting point to test the external board programming workflow, I'm trying to program one nrf5340DK from a second nrf5340DK.

Configuration is:

Both boards are revision 0.11.0

Board 1: connected to Mac running VS Code (and am able to program this board standalone OK), P19 (Debug Out) connected via 1-1 ribbon cable to P18 (Debug In) of board 2.

Board 2: powered via USB from a different computer. P18 (Debug In) connected to P19 (Debug Out) of board 1. Have verified that 3V is present on P18 pin 1.

Attempting to program the above setup results in error messages:

ERROR: Unable to connect to a debugger.
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 /Users/skajam66/Projects/Nordic/peripheral_lbs/build/zephyr/GENERATED_CP_NETWORK_merged_domains.hex --sectorerase -f NRF53 --snr 960114329 --coprocessor CP_NETWORK

Is what I'm doing supposed to work? If yes, any suggestions are appreciated.

Regards,

skajam66

Parents
  • Hi Kenneth,

    I followed your instructions but no success:

    Step 1: Programmed board1 with a sample bluetooth application. Verified that it was working via LightBlue

    Step 2: Erased board 1 using commands below and verified that board1 was erased

    nrfjprog --recover --coprocessor CP_NETWORK
    nrfjprog --recover

    Step 3: Connected board1 to board2. Powered board2 from VDD on board1. - LED4 lit up. Ribbon cable between board1 P19 and board2 P18

    Step 4: Attempted to erase board2 using above commands. Failed. Log file attached

    [2021-Nov-20 11:46:23] [ info] --------------------------------------------------------------------------------
    [2021-Nov-20 11:46:23] [ info] nrfjprog --recover --coprocessor CP_NETWORK --log 
    [2021-Nov-20 11:46:23] [ info] nrfjprog version 10.15.0 external
    [2021-Nov-20 11:46:23] [ info] --------------------------------------------------------------------------------
    [2021-Nov-20 11:46:23] [ info] Load library at /Applications/Nordic Semiconductor/lib/libnrfjprogdll.dylib.
    [2021-Nov-20 11:46:23] [ info] Library loaded, loading member functions.
    [2021-Nov-20 11:46:23] [ info] Member functions succesfully loaded.
    [2021-Nov-20 11:46:23] [debug] [ Client] - open
    [2021-Nov-20 11:46:23] [debug] [ Client] - start
    [2021-Nov-20 11:46:23] [ info] [ Client] - stdout: Jlinkarm nRF Worker ready. Handling sequence c73295c4-29b4-4e02-89ae-ed0938b058b8.
    [2021-Nov-20 11:46:23] [debug] [SeggerBackend] - Logger sink registered in Segger backend logger
    [2021-Nov-20 11:46:23] [debug] [  JLink] - Logger sink registered in JLink logger
    [2021-Nov-20 11:46:23] [debug] [  nRFXX] - open
    [2021-Nov-20 11:46:23] [debug] [  nRFXX] - just_check_family
    [2021-Nov-20 11:46:23] [debug] [SeggerBackend] - open_dll
    [2021-Nov-20 11:46:23] [debug] [SeggerBackend] - No J-Link DLL path was provided. Attempting to auto detect.
    [2021-Nov-20 11:46:23] [ info] [SeggerBackend] - Load library at /Applications/SEGGER/JLink/libjlinkarm.dylib.
    [2021-Nov-20 11:46:23] [trace] [ Client] - Command open executed for 28 milliseconds with result 0
    [2021-Nov-20 11:46:23] [debug] [ Client] - enum_emu_snr
    [2021-Nov-20 11:46:23] [trace] [ Client] - Command enum_emu_con_info executed for 0 milliseconds with result 0
    [2021-Nov-20 11:46:23] [debug] [ Client] - connect_to_emu_with_snr
    [2021-Nov-20 11:46:23] [ info] [SeggerBackend] - Library loaded, loading member functions.
    [2021-Nov-20 11:46:23] [ info] [SeggerBackend] - Member functions succesfully loaded.
    [2021-Nov-20 11:46:23] [debug] [SeggerBackend] - dll_version
    [2021-Nov-20 11:46:23] [ info] [SeggerBackend] - Segger dll version 7.56.a loaded.
    [2021-Nov-20 11:46:23] [trace] [ Worker] - Command open executed for 20 milliseconds with result 0
    [2021-Nov-20 11:46:23] [debug] [  nRFXX] - enum_emu_con_info
    [2021-Nov-20 11:46:23] [debug] [SeggerBackend] - is_connected_to_emu
    [2021-Nov-20 11:46:23] [debug] [SeggerBackend] - enum_emu_con_info
    [2021-Nov-20 11:46:23] [debug] [SeggerBackend] - is_connected_to_emu
    [2021-Nov-20 11:46:23] [trace] [ Worker] - Command enum_emu_con_info executed for 0 milliseconds with result 0
    [2021-Nov-20 11:46:23] [debug] [  nRFXX] - connect_to_emu_with_snr
    [2021-Nov-20 11:46:23] [debug] [SeggerBackend] - is_connected_to_emu
    [2021-Nov-20 11:46:23] [debug] [SeggerBackend] - connect_to_emu_with_snr
    [2021-Nov-20 11:46:23] [debug] [SeggerBackend] - is_connected_to_emu
    [2021-Nov-20 11:46:23] [debug] [SeggerBackend] - ---just_enum_emu_snr
    [2021-Nov-20 11:46:23] [debug] [SeggerBackend] - ---just_get_num_emus
    [2021-Nov-20 11:46:23] [debug] [SeggerBackend] - ---just_connect_to_emu_with_snr
    [2021-Nov-20 11:46:23] [debug] [SeggerBackend] - ---just_connect_to_emu_without_snr
    [2021-Nov-20 11:46:23] [debug] [SeggerBackend] - Segger logging enabled.
    [2021-Nov-20 11:46:23] [trace] [  JLink] - Firmware: J-Link OB-K22-NordicSemi compiled Jul  2 2021 10:44:28
    [2021-Nov-20 11:46:23] [trace] [  JLink] - Firmware: J-Link OB-K22-NordicSemi compiled Jul  2 2021 10:44:28
    [2021-Nov-20 11:46:23] [trace] [  JLink] - Hardware: V1.00
    [2021-Nov-20 11:46:23] [trace] [  JLink] - S/N: 960114329
    [2021-Nov-20 11:46:23] [trace] [  JLink] - OEM: SEGGER
    [2021-Nov-20 11:46:23] [trace] [  JLink] - Feature(s): RDI, FlashBP, FlashDL, JFlash, GDB
    [2021-Nov-20 11:46:23] [trace] [  JLink] - TELNET listener socket opened on port 19021
    [2021-Nov-20 11:46:23] [trace] [  JLink] - WEBSRV WEBSRV_Init(): Starting webserver thread(s)
    [2021-Nov-20 11:46:23] [trace] [  JLink] - WEBSRV Webserver running on local port 19080
    [2021-Nov-20 11:46:23] [trace] [  JLink] - - 25.666ms returns "O.K."  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_HasError()  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_Lock()  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_GetHWStatus(...)  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - - 0.255ms returns 0  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_HasError()  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_ExecCommand("SetRestartOnClose = 0", ...).   
    [2021-Nov-20 11:46:23] [trace] [  JLink] - - 0.029ms returns 0x01  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_HasError()  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_ExecCommand("DisableFlashDL", ...).   
    [2021-Nov-20 11:46:23] [trace] [  JLink] - - 0.046ms returns 0x00  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_HasError()  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_ExecCommand("ExcludeFlashCacheRange 0x0-0xFFFFFFFF", ...).   
    [2021-Nov-20 11:46:23] [trace] [  JLink] - - 0.030ms returns 0x00  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_HasError()  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_SetHookUnsecureDialog  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_SetHookUnsecureDialog(...)
    [2021-Nov-20 11:46:23] [trace] [  JLink] - - 0.014ms returns 0  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_HasError()  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_TIF_Select(JLINKARM_TIF_SWD)  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - - 0.907ms returns 0x00  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_HasError()  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_SetSpeed(2000)  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - - 0.135ms  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_HasError()  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_GetSN()  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - - 0.003ms returns 960114329  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_HasError()  
    [2021-Nov-20 11:46:23] [debug] [SeggerBackend] - read_debug_port_idr
    [2021-Nov-20 11:46:23] [debug] [SeggerBackend] - read_debug_port_register
    [2021-Nov-20 11:46:23] [debug] [SeggerBackend] - ---just_read_debug_port_register
    [2021-Nov-20 11:46:23] [debug] [SeggerBackend] - coresight_configure
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_CORESIGHT_Configure()  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - - 100.327ms returns 0  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_HasError()  
    [2021-Nov-20 11:46:23] [debug] [SeggerBackend] - ---just_select_debug_port_register
    [2021-Nov-20 11:46:23] [debug] [SeggerBackend] - Select AP 255, DP Bank 0, AP Bank 255
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - - 0.631ms returns -1  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_HasError()  
    [2021-Nov-20 11:46:23] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Nov-20 11:46:23] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2021-Nov-20 11:46:23] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - - 0.540ms returns -1  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_HasError()  
    [2021-Nov-20 11:46:23] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - - 0.562ms returns -1  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_HasError()  
    [2021-Nov-20 11:46:23] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - - 0.554ms returns -1  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_HasError()  
    [2021-Nov-20 11:46:23] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - - 0.554ms returns -1  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_HasError()  
    [2021-Nov-20 11:46:23] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Nov-20 11:46:23] [trace] [ Client] - Command connect_to_emu_with_snr executed for 172 milliseconds with result -102
    [2021-Nov-20 11:46:23] [trace] [  JLink] - - 0.588ms returns -1  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_HasError()  
    [2021-Nov-20 11:46:23] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - - 0.563ms returns -1  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_HasError()  
    [2021-Nov-20 11:46:23] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Nov-20 11:46:23] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2021-Nov-20 11:46:23] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - - 0.563ms returns -1  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_HasError()  
    [2021-Nov-20 11:46:23] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - - 0.556ms returns -1  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_HasError()  
    [2021-Nov-20 11:46:23] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - - 0.550ms returns -1  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_HasError()  
    [2021-Nov-20 11:46:23] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - - 0.558ms returns -1  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_HasError()  
    [2021-Nov-20 11:46:23] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - - 0.573ms returns -1  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_HasError()  
    [2021-Nov-20 11:46:23] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - - 0.544ms returns -1  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_HasError()  
    [2021-Nov-20 11:46:23] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Nov-20 11:46:23] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2021-Nov-20 11:46:23] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - - 0.550ms returns -1  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_HasError()  
    [2021-Nov-20 11:46:23] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - - 0.523ms returns -1  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_HasError()  
    [2021-Nov-20 11:46:23] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - - 0.558ms returns -1  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_HasError()  
    [2021-Nov-20 11:46:23] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - - 0.558ms returns -1  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_HasError()  
    [2021-Nov-20 11:46:23] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - - 0.549ms returns -1  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_HasError()  
    [2021-Nov-20 11:46:23] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - - 0.561ms returns -1  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_HasError()  
    [2021-Nov-20 11:46:23] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Nov-20 11:46:23] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2021-Nov-20 11:46:23] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - - 0.533ms returns -1  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_HasError()  
    [2021-Nov-20 11:46:23] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - - 0.551ms returns -1  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_HasError()  
    [2021-Nov-20 11:46:23] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - - 0.561ms returns -1  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_HasError()  
    [2021-Nov-20 11:46:23] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - - 0.541ms returns -1  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_HasError()  
    [2021-Nov-20 11:46:23] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - - 0.550ms returns -1  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_HasError()  
    [2021-Nov-20 11:46:23] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - - 0.612ms returns -1  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_HasError()  
    [2021-Nov-20 11:46:23] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Nov-20 11:46:23] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2021-Nov-20 11:46:23] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - - 0.580ms returns -1  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_HasError()  
    [2021-Nov-20 11:46:23] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - - 0.563ms returns -1  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_HasError()  
    [2021-Nov-20 11:46:23] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - - 0.523ms returns -1  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_HasError()  
    [2021-Nov-20 11:46:23] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - - 0.520ms returns -1  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_HasError()  
    [2021-Nov-20 11:46:23] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - - 0.535ms returns -1  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_HasError()  
    [2021-Nov-20 11:46:23] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Nov-20 11:46:23] [trace] [  JLink] - - 0.018ms  
    [2021-Nov-20 11:46:23] [trace] [ Worker] - Command connect_to_emu_with_snr executed for 172 milliseconds with result -102
    [2021-Nov-20 11:46:23] [debug] [  nRFXX] - close
    [2021-Nov-20 11:46:23] [debug] [SeggerBackend] - is_connected_to_emu
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_IsOpen()  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - - 0.006ms returns 0x01  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_HasError()  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_Lock()  
    [2021-Nov-20 11:46:23] [debug] [SeggerBackend] - close
    [2021-Nov-20 11:46:23] [debug] [SeggerBackend] - disconnect_from_emu
    [2021-Nov-20 11:46:23] [debug] [SeggerBackend] - ---just_disconnect_from_emu
    [2021-Nov-20 11:46:23] [debug] [SeggerBackend] - is_connected_to_device
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_IsConnected()  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - - 0.003ms returns FALSE  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_HasError()  
    [2021-Nov-20 11:46:23] [debug] [SeggerBackend] - ---just_is_debug_region_powered
    [2021-Nov-20 11:46:23] [debug] [SeggerBackend] - ---just_read_debug_port_register
    [2021-Nov-20 11:46:23] [debug] [SeggerBackend] - ---just_select_debug_port_register
    [2021-Nov-20 11:46:23] [debug] [SeggerBackend] - Select AP 255, DP Bank 0, AP Bank 255
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - - 0.572ms returns -1  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_HasError()  
    [2021-Nov-20 11:46:23] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Nov-20 11:46:23] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2021-Nov-20 11:46:23] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - - 0.572ms returns -1  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_HasError()  
    [2021-Nov-20 11:46:23] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - - 0.533ms returns -1  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_HasError()  
    [2021-Nov-20 11:46:23] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - - 0.562ms returns -1  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_HasError()  
    [2021-Nov-20 11:46:23] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - - 0.614ms returns -1  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_HasError()  
    [2021-Nov-20 11:46:23] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - - 0.541ms returns -1  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_HasError()  
    [2021-Nov-20 11:46:23] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - - 0.555ms returns -1  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_HasError()  
    [2021-Nov-20 11:46:23] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Nov-20 11:46:23] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2021-Nov-20 11:46:23] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - - 0.536ms returns -1  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_HasError()  
    [2021-Nov-20 11:46:23] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - - 0.555ms returns -1  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_HasError()  
    [2021-Nov-20 11:46:23] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - - 0.553ms returns -1  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_HasError()  
    [2021-Nov-20 11:46:23] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - - 0.575ms returns -1  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_HasError()  
    [2021-Nov-20 11:46:23] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - - 0.512ms returns -1  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_HasError()  
    [2021-Nov-20 11:46:23] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - - 0.574ms returns -1  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_HasError()  
    [2021-Nov-20 11:46:23] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Nov-20 11:46:23] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2021-Nov-20 11:46:23] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - - 0.513ms returns -1  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_HasError()  
    [2021-Nov-20 11:46:23] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - - 0.575ms returns -1  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_HasError()  
    [2021-Nov-20 11:46:23] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - - 0.559ms returns -1  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_HasError()  
    [2021-Nov-20 11:46:23] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - - 0.530ms returns -1  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_HasError()  
    [2021-Nov-20 11:46:23] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - - 0.557ms returns -1  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_HasError()  
    [2021-Nov-20 11:46:23] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - - 0.569ms returns -1  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_HasError()  
    [2021-Nov-20 11:46:23] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Nov-20 11:46:23] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2021-Nov-20 11:46:23] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - - 0.560ms returns -1  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_HasError()  
    [2021-Nov-20 11:46:23] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - - 0.515ms returns -1  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_HasError()  
    [2021-Nov-20 11:46:23] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - - 0.572ms returns -1  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_HasError()  
    [2021-Nov-20 11:46:23] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - - 0.517ms returns -1  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_HasError()  
    [2021-Nov-20 11:46:23] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - - 0.531ms returns -1  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_HasError()  
    [2021-Nov-20 11:46:23] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - - 0.532ms returns -1  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_HasError()  
    [2021-Nov-20 11:46:23] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Nov-20 11:46:23] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2021-Nov-20 11:46:23] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - - 0.628ms returns -1  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_HasError()  
    [2021-Nov-20 11:46:23] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - - 0.568ms returns -1  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_HasError()  
    [2021-Nov-20 11:46:23] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - - 0.524ms returns -1  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_HasError()  
    [2021-Nov-20 11:46:23] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - - 0.553ms returns -1  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_HasError()  
    [2021-Nov-20 11:46:23] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - - 0.561ms returns -1  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_HasError()  
    [2021-Nov-20 11:46:23] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Nov-20 11:46:23] [trace] [  JLink] - - 0.016ms  
    [2021-Nov-20 11:46:23] [trace] [  JLink] - JLINK_Close()  
    [2021-Nov-20 11:46:23] [debug] [SeggerBackend] - Segger Backend closed.
    [2021-Nov-20 11:46:23] [debug] [  nRFXX] - nRF family DLL closed
    [2021-Nov-20 11:46:23] [trace] [ Client] - Command close executed for 53 milliseconds with result 0
    [2021-Nov-20 11:46:23] [debug] [ Client] - terminate
    [2021-Nov-20 11:46:23] [trace] [ Client] - Command terminate executed for 0 milliseconds with result 0
    [2021-Nov-20 11:46:23] [trace] [ Worker] - Command close executed for 53 milliseconds with result 0
    [2021-Nov-20 11:46:23] [trace] [ Worker] - Command terminate executed for 0 milliseconds with result 0
    [2021-Nov-20 11:46:23] [trace] [ Worker] - Executed 5 commands for 245 milliseconds
    [2021-Nov-20 11:46:23] [debug] [ Client] - Worker process exited with code: 0
    [2021-Nov-20 11:46:23] [debug] [ Client] - Tried to wait on already ended process: wait error: No child processes
    [2021-Nov-20 11:46:23] [debug] [ Client] - Child process terminated with result 0
    [2021-Nov-20 11:46:23] [trace] [ Client] - Executed 5 commands for 253 milliseconds
    [2021-Nov-20 11:46:23] [debug] [ Client] - terminate
    

    Regards,

    AC

  • Hi,

    Sometimes a picture can say more than a thousand words, but can you provide the version number of the nRF5340-DK's you are using?

    Kenneth

  • Apologies, both boards are version 0.11.0

    Kind regards...

  • Unfortunately I don't have .11 to test with, my boards are slightly newer, but I can confirm it worked here using those. Not sure how to proceed, do you have any other nordic DK's you can use for test?

    Kenneth

Reply Children
No Data
Related