Flashing code on I/O shield using nRF5340 DK board

Hi 

I am using the nRF5340 DK board using its P20 trying to flash an LED blink code to MDBT53-P1M (RAYTAC) I/O shield. The LED is connected to P0.31 of the I/O shield. By following all the instructions given for programming the custom board in the following link: https://docs.nordicsemi.com/bundle/ug_nrf5340_dk/page/UG/dk/ext_programming_support_P20.html

The following is the error log we are getting:

[2024-Sept-02 15:44:46] [debug] --------------------------------------------------------------------------------
[2024-Sept-02 15:44:46] [debug] C:\Program Files\Nordic Semiconductor\nrf-command-line-tools\bin\nrfjprog.exe --program c:\nordic-dfu-main\nordic-dfu-main\blinky\build\zephyr\merged.hex --chiperase --verify -f NRF53 --coprocessor CP_APPLICATION --snr 1050083709 --log 
[2024-Sept-02 15:44:46] [debug] nrfjprog version 10.24.2 external
[2024-Sept-02 15:44:46] [debug] --------------------------------------------------------------------------------
[2024-Sept-02 15:44:46] [ info] Load library at C:\Program Files\Nordic Semiconductor\nrf-command-line-tools\bin\nrfjprog.dll.
[2024-Sept-02 15:44:46] [ info] Library loaded, loading member functions.
[2024-Sept-02 15:44:46] [ info] Member functions succesfully loaded.
[2024-Sept-02 15:44:46] [debug] [ Client] - open
[2024-Sept-02 15:44:46] [debug] [ Client] - start
[2024-Sept-02 15:44:46] [ info] [ Client] - stdout: Jlinkarm nRF Worker ready. Handling sequence 41c714a1-ee7d-44da-a0f5-bc41765139d4.

[2024-Sept-02 15:44:46] [debug] [SeggerBackend] - Logger sink registered in Segger backend logger
[2024-Sept-02 15:44:46] [debug] [  JLink] - Logger sink registered in JLink logger
[2024-Sept-02 15:44:46] [debug] [  nRF53] - open
[2024-Sept-02 15:44:46] [debug] [  nRF53] - just_check_family
[2024-Sept-02 15:44:46] [debug] [SeggerBackend] - open_dll
[2024-Sept-02 15:44:46] [debug] [SeggerBackend] - No J-Link DLL path was provided. Attempting to auto detect.
[2024-Sept-02 15:44:46] [ info] [SeggerBackend] - Load library at C:\Program Files\SEGGER\JLink_V794e\JLink_x64.dll.
[2024-Sept-02 15:44:46] [trace] [ Client] - Command open executed for 48 milliseconds with result 0
[2024-Sept-02 15:44:46] [ info] [SeggerBackend] - Library loaded, loading member functions.
[2024-Sept-02 15:44:46] [ info] [SeggerBackend] - Member functions succesfully loaded.
[2024-Sept-02 15:44:46] [debug] [SeggerBackend] - Set batch mode
[2024-Sept-02 15:44:46] [debug] [SeggerBackend] - dll_version
[2024-Sept-02 15:44:46] [ info] [SeggerBackend] - Segger dll version 7.94.e loaded.
[2024-Sept-02 15:44:46] [trace] [ Worker] - Command open executed for 3 milliseconds with result 0
[2024-Sept-02 15:44:46] [debug] [ Client] - config
[2024-Sept-02 15:44:46] [trace] [ Client] - Command config executed for 14 milliseconds with result 0
[2024-Sept-02 15:44:46] [debug] [ Client] - enum_emu_snr
[2024-Sept-02 15:44:46] [trace] [ Client] - Command enum_emu_con_info executed for 15 milliseconds with result 0
[2024-Sept-02 15:44:46] [debug] [  nRF53] - config
[2024-Sept-02 15:44:46] [debug] [SeggerBackend] - enum_emu_snr
[2024-Sept-02 15:44:46] [trace] [ Worker] - Command config executed for 2 milliseconds with result 0
[2024-Sept-02 15:44:46] [debug] [  nRF53] - enum_emu_con_info
[2024-Sept-02 15:44:46] [debug] [SeggerBackend] - is_connected_to_emu
[2024-Sept-02 15:44:46] [debug] [SeggerBackend] - enum_emu_con_info
[2024-Sept-02 15:44:46] [debug] [SeggerBackend] - is_connected_to_emu
[2024-Sept-02 15:44:46] [trace] [ Worker] - Command enum_emu_con_info executed for 2 milliseconds with result 0
[2024-Sept-02 15:44:46] [debug] [ Client] - connect_to_emu_with_snr
[2024-Sept-02 15:44:46] [debug] [  nRF53] - connect_to_emu_with_snr
[2024-Sept-02 15:44:46] [debug] [SeggerBackend] - is_connected_to_emu
[2024-Sept-02 15:44:46] [debug] [SeggerBackend] - connect_to_emu_with_snr
[2024-Sept-02 15:44:46] [debug] [SeggerBackend] - is_connected_to_emu
[2024-Sept-02 15:44:46] [debug] [SeggerBackend] - ---just_enum_emu_snr
[2024-Sept-02 15:44:46] [debug] [SeggerBackend] - ---just_get_num_emus
[2024-Sept-02 15:44:46] [debug] [SeggerBackend] - ---just_connect_to_emu_with_snr
[2024-Sept-02 15:44:46] [debug] [SeggerBackend] - ---just_connect_to_emu_without_snr
[2024-Sept-02 15:44:46] [debug] [SeggerBackend] - Segger logging enabled.
[2024-Sept-02 15:44:46] [trace] [  JLink] - Firmware: J-Link OB-nRF5340-NordicSemi compiled Oct 30 2023 12:13:06
[2024-Sept-02 15:44:46] [trace] [  JLink] - Firmware: J-Link OB-nRF5340-NordicSemi compiled Oct 30 2023 12:13:06
[2024-Sept-02 15:44:46] [trace] [  JLink] - Hardware: V1.00
[2024-Sept-02 15:44:46] [trace] [  JLink] - S/N: 1050083709
[2024-Sept-02 15:44:46] [trace] [  JLink] - OEM: SEGGER
[2024-Sept-02 15:44:46] [trace] [  JLink] - Feature(s): RDI, FlashBP, FlashDL, JFlash, GDB
[2024-Sept-02 15:44:46] [trace] [  JLink] - Bootloader: 2021 May 18
[2024-Sept-02 15:44:46] [trace] [  JLink] - USB speed mode: Full speed (12 MBit/s)
[2024-Sept-02 15:44:46] [trace] [  JLink] - TELNET listener socket opened on port 19021
[2024-Sept-02 15:44:46] [trace] [  JLink] - WEBSRV WEBSRV_Init(): Starting webserver thread(s)
[2024-Sept-02 15:44:46] [trace] [  JLink] - WEBSRV Webserver running on local port 19080
[2024-Sept-02 15:44:46] [trace] [  JLink] - Looking for J-Link GUI Server exe at: C:\Program Files\SEGGER\JLink_V794e\JLinkGUIServer.exe 
[2024-Sept-02 15:44:46] [trace] [  JLink] - Forking J-Link GUI Server: C:\Program Files\SEGGER\JLink_V794e\JLinkGUIServer.exe 
[2024-Sept-02 15:44:46] [trace] [ Client] - Command connect_to_emu_with_snr executed for 61 milliseconds with result 0
[2024-Sept-02 15:44:46] [debug] [ Client] - read_connected_emu_snr
[2024-Sept-02 15:44:46] [trace] [ Client] - Command read_connected_emu_snr executed for 0 milliseconds with result 0
[2024-Sept-02 15:44:46] [debug] [ Client] - enable_coprocessor
[2024-Sept-02 15:44:46] [trace] [ Client] - Command enable_coprocessor executed for 0 milliseconds with result 0
[2024-Sept-02 15:44:46] [debug] [ Client] - select_coprocessor
[2024-Sept-02 15:44:46] [trace] [  JLink] - J-Link GUI Server info: "J-Link GUI server V7.94e " 
[2024-Sept-02 15:44:46] [trace] [  JLink] - - 34.247ms returns "O.K."  
[2024-Sept-02 15:44:46] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:46] [trace] [  JLink] - JLINK_Lock()  
[2024-Sept-02 15:44:46] [trace] [  JLink] - JLINK_ExecCommand("SetRestartOnClose = 0", ...).   
[2024-Sept-02 15:44:46] [trace] [  JLink] - - 0.001ms returns 0x01  
[2024-Sept-02 15:44:46] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:46] [trace] [  JLink] - JLINK_ExecCommand("DisableFlashDL", ...).   
[2024-Sept-02 15:44:46] [trace] [  JLink] - - 0.000ms returns 0x00  
[2024-Sept-02 15:44:46] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:46] [trace] [  JLink] - JLINK_ExecCommand("ExcludeFlashCacheRange 0x0-0xFFFFFFFF", ...).   
[2024-Sept-02 15:44:46] [trace] [  JLink] - - 0.002ms returns 0x00  
[2024-Sept-02 15:44:46] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:46] [trace] [  JLink] - JLINK_SetHookUnsecureDialog  
[2024-Sept-02 15:44:46] [trace] [  JLink] - JLINK_SetHookUnsecureDialog(...)
[2024-Sept-02 15:44:46] [trace] [  JLink] - - 0.007ms returns 0  
[2024-Sept-02 15:44:46] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:46] [trace] [  JLink] - JLINK_TIF_Select(JLINKARM_TIF_SWD)  
[2024-Sept-02 15:44:46] [trace] [  JLink] - - 0.411ms returns 0x00  
[2024-Sept-02 15:44:46] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:46] [trace] [  JLink] - JLINK_GetSpeedInfo()  
[2024-Sept-02 15:44:46] [trace] [  JLink] - 128000000 Hz / n, n >= 64
[2024-Sept-02 15:44:46] [trace] [  JLink] - - 0.006ms  
[2024-Sept-02 15:44:46] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:46] [debug] [SeggerBackend] - Connected emulator supports SWD speeds up to 2000kHz
[2024-Sept-02 15:44:46] [trace] [  JLink] - JLINK_SetSpeed(2000)  
[2024-Sept-02 15:44:46] [trace] [  JLink] - - 0.064ms  
[2024-Sept-02 15:44:46] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:46] [trace] [  JLink] - JLINK_GetSpeed()  
[2024-Sept-02 15:44:46] [trace] [  JLink] - - 0.002ms returns 2000  
[2024-Sept-02 15:44:46] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:46] [debug] [SeggerBackend] - SWD clock set to 2000kHz
[2024-Sept-02 15:44:46] [trace] [  JLink] - JLINK_GetSN()  
[2024-Sept-02 15:44:46] [trace] [  JLink] - - 0.002ms returns 1050083709  
[2024-Sept-02 15:44:46] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:46] [trace] [  JLink] - - 0.003ms  
[2024-Sept-02 15:44:46] [debug] [  nRF53] - read_device_family
[2024-Sept-02 15:44:46] [trace] [ Worker] - Command connect_to_emu_with_snr executed for 49 milliseconds with result 0
[2024-Sept-02 15:44:46] [debug] [  nRF53] - read_connected_emu_snr
[2024-Sept-02 15:44:46] [debug] [SeggerBackend] - is_connected_to_emu
[2024-Sept-02 15:44:46] [trace] [  JLink] - JLINK_IsOpen()  
[2024-Sept-02 15:44:46] [trace] [  JLink] - - 0.014ms returns 0x01  
[2024-Sept-02 15:44:46] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:46] [trace] [  JLink] - JLINK_Lock()  
[2024-Sept-02 15:44:46] [debug] [SeggerBackend] - read_connected_emu_snr
[2024-Sept-02 15:44:46] [trace] [  JLink] - - 0.007ms  
[2024-Sept-02 15:44:46] [trace] [ Worker] - Command read_connected_emu_snr executed for 0 milliseconds with result 0
[2024-Sept-02 15:44:46] [debug] [  nRF53] - enable_coprocessor
[2024-Sept-02 15:44:46] [debug] [SeggerBackend] - is_connected_to_emu
[2024-Sept-02 15:44:46] [trace] [  JLink] - JLINK_IsOpen()  
[2024-Sept-02 15:44:46] [trace] [  JLink] - - 0.007ms returns 0x01  
[2024-Sept-02 15:44:46] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:46] [trace] [  JLink] - JLINK_Lock()  
[2024-Sept-02 15:44:46] [debug] [  nRF53] - Just_enable_coprocessor
[2024-Sept-02 15:44:46] [trace] [  JLink] - - 0.015ms  
[2024-Sept-02 15:44:46] [trace] [ Worker] - Command enable_coprocessor executed for 0 milliseconds with result 0
[2024-Sept-02 15:44:46] [debug] [  nRF53] - select_coprocessor
[2024-Sept-02 15:44:46] [debug] [SeggerBackend] - is_connected_to_emu
[2024-Sept-02 15:44:46] [trace] [  JLink] - JLINK_IsOpen()  
[2024-Sept-02 15:44:46] [trace] [  JLink] - - 0.004ms returns 0x01  
[2024-Sept-02 15:44:46] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:46] [trace] [  JLink] - JLINK_Lock()  
[2024-Sept-02 15:44:46] [debug] [SeggerBackend] - is_connected_to_device
[2024-Sept-02 15:44:46] [debug] [SeggerBackend] - is_connected_to_device
[2024-Sept-02 15:44:46] [trace] [  JLink] - JLINK_IsConnected()  
[2024-Sept-02 15:44:46] [trace] [  JLink] - - 0.005ms returns FALSE  
[2024-Sept-02 15:44:46] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:46] [debug] [  nRF53] - Just_select_coprocessor
[2024-Sept-02 15:44:46] [ info] [  nRF53] - Loading new coprocessor data.
[2024-Sept-02 15:44:46] [debug] [  nRF53] - Just_load_coprocessor_data
[2024-Sept-02 15:44:46] [debug] [SeggerBackend] - set_core_data
[2024-Sept-02 15:44:46] [debug] [SeggerBackend] - Set core data:
[2024-Sept-02 15:44:46] [debug] [SeggerBackend] -   Device ID: Cortex-M33
[2024-Sept-02 15:44:46] [debug] [SeggerBackend] -   Expected core: 235012351
[2024-Sept-02 15:44:46] [debug] [SeggerBackend] -   Existing Expected core: 235012351
[2024-Sept-02 15:44:46] [debug] [SeggerBackend] -   Coprocessor: APPLICATION
[2024-Sept-02 15:44:46] [debug] [SeggerBackend] -   AHB AP index: 0
[2024-Sept-02 15:44:46] [debug] [SeggerBackend] -   Core base address: 4294967295
[2024-Sept-02 15:44:46] [debug] [  nRF53] - Just_readback_status
[2024-Sept-02 15:44:46] [debug] [SeggerBackend] - read_access_port_register
[2024-Sept-02 15:44:46] [debug] [SeggerBackend] - ---just_read_access_port_register
[2024-Sept-02 15:44:46] [debug] [SeggerBackend] - coresight_configure
[2024-Sept-02 15:44:46] [trace] [  JLink] - JLINK_GetHWStatus(...)  
[2024-Sept-02 15:44:46] [trace] [  JLink] - - 0.189ms returns 0  
[2024-Sept-02 15:44:46] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:46] [trace] [  JLink] - JLINK_CORESIGHT_Configure()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 102.278ms returns 0  
[2024-Sept-02 15:44:47] [error] [ Client] - Encountered error -102: Command select_coprocessor executed for 125 milliseconds with result -102
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [debug] [SeggerBackend] - read_debug_port_idr
[2024-Sept-02 15:44:47] [debug] [SeggerBackend] - read_debug_port_register
[2024-Sept-02 15:44:47] [debug] [SeggerBackend] - ---just_read_debug_port_register
[2024-Sept-02 15:44:47] [debug] [SeggerBackend] - ---just_select_debug_port_register
[2024-Sept-02 15:44:47] [debug] [SeggerBackend] - Select AP 255, DP Bank 0, AP Bank 255
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.534ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [debug] [SeggerBackend] - ---just_abort_debug_action
[2024-Sept-02 15:44:47] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.519ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.611ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.498ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.503ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.517ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.480ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.491ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [debug] [SeggerBackend] - ---just_abort_debug_action
[2024-Sept-02 15:44:47] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.489ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.456ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.459ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.450ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.460ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.471ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.486ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [debug] [SeggerBackend] - ---just_abort_debug_action
[2024-Sept-02 15:44:47] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.464ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.461ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.447ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.460ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.466ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.465ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.465ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [debug] [SeggerBackend] - ---just_abort_debug_action
[2024-Sept-02 15:44:47] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.457ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.474ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.463ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.470ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.455ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.467ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.500ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [debug] [SeggerBackend] - ---just_abort_debug_action
[2024-Sept-02 15:44:47] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.474ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.463ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.451ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.456ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.447ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.450ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.466ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [debug] [SeggerBackend] - ---just_abort_debug_action
[2024-Sept-02 15:44:47] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.452ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.468ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.459ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.493ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.487ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.461ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.040ms  
[2024-Sept-02 15:44:47] [error] [ Worker] - An unknown error.
[2024-Sept-02 15:44:47] [trace] [ Worker] - Command select_coprocessor executed for 123 milliseconds with result -102
[2024-Sept-02 15:44:47] [debug] [  nRF53] - close
[2024-Sept-02 15:44:47] [debug] [SeggerBackend] - is_connected_to_emu
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_IsOpen()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.004ms returns 0x01  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_Lock()  
[2024-Sept-02 15:44:47] [debug] [SeggerBackend] - close
[2024-Sept-02 15:44:47] [debug] [SeggerBackend] - disconnect_from_emu
[2024-Sept-02 15:44:47] [debug] [SeggerBackend] - ---just_disconnect_from_emu
[2024-Sept-02 15:44:47] [debug] [SeggerBackend] - is_connected_to_device
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_IsConnected()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.001ms returns FALSE  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [debug] [SeggerBackend] - ---just_is_debug_region_powered
[2024-Sept-02 15:44:47] [debug] [SeggerBackend] - ---just_read_debug_port_register
[2024-Sept-02 15:44:47] [debug] [SeggerBackend] - ---just_select_debug_port_register
[2024-Sept-02 15:44:47] [debug] [SeggerBackend] - Select AP 255, DP Bank 0, AP Bank 255
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.454ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [debug] [SeggerBackend] - ---just_abort_debug_action
[2024-Sept-02 15:44:47] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.520ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.450ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.498ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.446ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.445ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.482ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.494ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [debug] [SeggerBackend] - ---just_abort_debug_action
[2024-Sept-02 15:44:47] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.438ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.456ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.456ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.454ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.490ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.475ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.535ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [debug] [SeggerBackend] - ---just_abort_debug_action
[2024-Sept-02 15:44:47] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.486ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.459ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.465ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.450ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.456ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.439ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.451ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [debug] [SeggerBackend] - ---just_abort_debug_action
[2024-Sept-02 15:44:47] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.457ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.458ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.482ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.478ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.491ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.468ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.542ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [debug] [SeggerBackend] - ---just_abort_debug_action
[2024-Sept-02 15:44:47] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.643ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.478ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.485ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.442ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.456ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.454ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.463ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [debug] [SeggerBackend] - ---just_abort_debug_action
[2024-Sept-02 15:44:47] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.480ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.461ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.484ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.460ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.477ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.466ms returns -1  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_HasError()  
[2024-Sept-02 15:44:47] [debug] [SeggerBackend] - Ignore exception An unknown error.
[2024-Sept-02 15:44:47] [trace] [  JLink] - - 0.054ms  
[2024-Sept-02 15:44:47] [trace] [  JLink] - JLINK_Close()  
[2024-Sept-02 15:44:47] [trace] [ Client] - Command close executed for 75 milliseconds with result 0
[2024-Sept-02 15:44:47] [debug] [ Client] - terminate
[2024-Sept-02 15:44:47] [trace] [ Client] - Command terminate executed for 0 milliseconds with result 0
[2024-Sept-02 15:44:47] [debug] [SeggerBackend] - Segger Backend closed.
[2024-Sept-02 15:44:47] [debug] [  nRF53] - nRF family DLL closed
[2024-Sept-02 15:44:47] [trace] [ Worker] - Command close executed for 60 milliseconds with result 0
[2024-Sept-02 15:44:47] [trace] [ Worker] - Command terminate executed for 0 milliseconds with result 0
[2024-Sept-02 15:44:47] [trace] [ Worker] - Executed 9 commands for 239 milliseconds
[2024-Sept-02 15:44:47] [debug] [ Client] - Worker process exited with code: 0
[2024-Sept-02 15:44:47] [debug] [ Client] - Worker process exited with code: 0
[2024-Sept-02 15:44:47] [debug] [ Client] - Child process terminated with result 0
[2024-Sept-02 15:44:47] [trace] [ Client] - Executed 9 commands for 338 milliseconds
[2024-Sept-02 15:44:47] [debug] [ Client] - terminate

Can anyone guide me over this?

Parents
  • try to recover the chip first. It seems like there is no communication happening with the chip and the debugger. Not sure what the issue is but try recovering two cores

    nrfjprog --recover -f nrf53 --coprocessor CP_APPLICATION
    nrfjprog --recover -f nrf53 --coprocessor CP_NETWORK

  • Hi  

    Yes, I have tried to recover the two cores but don't know what exactly the issue is as I have checked the connection also on the hardware side it seems fine as given in the nRF5340 DK Board Document.

    following are the commands I have used and their error logs:

    [error] [ Client] - Encountered error -102: Command enable_coprocessor executed for 154 milliseconds with result -102
    Failed to enable coprocessor with unknown error.
    [error] [ Worker] - An unknown error.
    ERROR: JLinkARM DLL reported an error. Try again. If error condition
    ERROR: persists, run the same command again with argument --log, contact Nordic
    ERROR: Semiconductor and provide the generated log.log file to them.
    NOTE: For additional output, try running again with logging enabled (--log).
    NOTE: Any generated log error messages will be displayed.
    PS C:\nordic-dfu-main\nordic-dfu-main\blinky> nrfjprog --recover -f NRF53 --snr 1050083709 --coprocessor CP_APPLICATION --speed 1000
    >>
    ERROR: An invalid argument was provided. Use --help for a list of valid
    ERROR: arguments.
    NOTE: For additional output, try running again with logging enabled (--log).
    NOTE: Any generated log error messages will be displayed.
    PS C:\nordic-dfu-main\nordic-dfu-main\blinky> nrfjprog --recover -f NRF53 --snr 1050083709
    >>
    Recovering device. This operation might take 30s.
    [error] [ Client] - Encountered error -21: Command recover executed for 139 milliseconds with result -21
    [error] [ Worker] - An unknown error.
    ERROR: Recover failed. Please make sure that the correct device family is given
    ERROR: and try again.
    NOTE: For additional output, try running again with logging enabled (--log).
    NOTE: Any generated log error messages will be displayed.
    PS C:\nordic-dfu-main\nordic-dfu-main\blinky> nrfjprog --recover -f NRF53 --snr 1050083709
    >>
    Recovering device. This operation might take 30s.
    Erasing user code and UICR flash areas.
    Writing image to disable ap protect.
    PS C:\nordic-dfu-main\nordic-dfu-main\blinky> nrfjprog --recover -f NRF53 --snr 1050083709
    >>
    Recovering device. This operation might take 30s.
    [error] [ Worker] - An unknown error.
    [error] [ Client] - Encountered error -21: Command recover executed for 140 milliseconds with result -21
    ERROR: Recover failed. Please make sure that the correct device family is given
    ERROR: and try again.
    NOTE: For additional output, try running again with logging enabled (--log).
    NOTE: Any generated log error messages will be displayed.
    PS C:\nordic-dfu-main\nordic-dfu-main\blinky> nrfjprog --recover -f NRF53 --snr 1050083709
    >>
    Recovering device. This operation might take 30s.
    Erasing user code and UICR flash areas.
    Writing image to disable ap protect.
    PS C:\nordic-dfu-main\nordic-dfu-main\blinky> nrfjprog --recover -f nrf53 --coprocessor cp_network
    [error] [ Client] - Encountered error -102: Command enable_coprocessor executed for 155 milliseconds with result -102
    Failed to enable coprocessor with unknown error.
    [error] [ Worker] - An unknown error.
    ERROR: JLinkARM DLL reported an error. Try again. If error condition
    ERROR: persists, run the same command again with argument --log, contact Nordic
    ERROR: Semiconductor and provide the generated log.log file to them.
    NOTE: For additional output, try running again with logging enabled (--log).
    NOTE: Any generated log error messages will be displayed.
    PS C:\nordic-dfu-main\nordic-dfu-main\blinky> :loop
    >> nrfjprog --recover -f nrf52
    >> goto loop
    :loop : The term ':loop' is not recognized as the name of a cmdlet, function, script file, or operable program. 
    Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
    At line:1 char:1
    + :loop
    + ~~~~~
        + CategoryInfo          : ObjectNotFound: (:loop:String) [], CommandNotFoundException
        + FullyQualifiedErrorId : CommandNotFoundException
    
    Recovering device. This operation might take 30s.
    [error] [ Client] - Encountered error -21: Command recover executed for 137 milliseconds with result -21
    [error] [ Worker] - An unknown error.
    ERROR: Recover failed. Please make sure that the correct device family is given
    ERROR: and try again.
    NOTE: For additional output, try running again with logging enabled (--log).
    NOTE: Any generated log error messages will be displayed.
    goto : The term 'goto' is not recognized as the name of a cmdlet, function, script file, or operable program. 
    Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
    At line:3 char:1
    + goto loop
    + ~~~~
        + CategoryInfo          : ObjectNotFound: (goto:String) [], CommandNotFoundException
        + FullyQualifiedErrorId : CommandNotFoundException
    
    PS C:\nordic-dfu-main\nordic-dfu-main\blinky> :loop
    >> nrfjprog --recover -f nrf53
    >> goto loop
    :loop : The term ':loop' is not recognized as the name of a cmdlet, function, script file, or operable program. 
    Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
    At line:1 char:1
    + :loop
    + ~~~~~
        + CategoryInfo          : ObjectNotFound: (:loop:String) [], CommandNotFoundException
        + FullyQualifiedErrorId : CommandNotFoundException
    
    Recovering device. This operation might take 30s.
    [error] [ Client] - Encountered error -21: Command recover executed for 137 milliseconds with result -21
    [error] [ Worker] - An unknown error.
    ERROR: Recover failed. Please make sure that the correct device family is given
    ERROR: and try again.
    NOTE: For additional output, try running again with logging enabled (--log).
    NOTE: Any generated log error messages will be displayed.
    goto : The term 'goto' is not recognized as the name of a cmdlet, function, script file, or operable program. 
    Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
    At line:3 char:1
    + goto loop
    + ~~~~
        + CategoryInfo          : ObjectNotFound: (goto:String) [], CommandNotFoundException
        + FullyQualifiedErrorId : CommandNotFoundException
    
    PS C:\nordic-dfu-main\nordic-dfu-main\blinky>
     *  History restored 
    
    PS C:\nordic-dfu-main\nordic-dfu-main\blinky>

  • Have you ever succeeded in flashing or erasing this chip? I am thinking maybe there is not stable power? Also we have seen such reports if the DK was not given stable power and a power spike could have fried the chip. 

    Based on the logs you provided, the debugger is unable to communicate in any way to the chip.

Reply Children
  • Hi Susheel,

    Sorry for the delay in response. Yes till now we haven't been able to communicate with the I/O shield for flashing or erasing chip data. So can nRF5340 DK give that power spike to the I/O shield? because the maximum time we are powering up the I/O shield with DK is only using P20.

    on the power consumption when we are powering up the I/O shield with the external power supply we are giving the I/O shield 3v power supply as suggested in the documents and it was drawing the current around 35mA.

Related