Hello Nordic,
I have been using nRF52-DK to perform a process of programming. Within the process, I need to access the external board's nRF52 and the OB-nRF52 both.(Not at the same time)
I make a schema of connection by simplifying the system:
By turn ON/OFF the Power supply, I can toggle the logic level of pin SELECT/VGT to choose the target of debugger:
- Power Supply ON: SELECT/VGT is High -> Target of debugger is the external board.
- Power Supply OFF: SELECT/VGT is Low -> Target of debugger is the OB-nRF52.
This scenario was working well with a DK < rev.2.2.0, but doesn't work at all with the new DK rev.3.0.0.
Problem-1: Incorrect logic level of SELECT/VGT
Always on the above scenario, when the Power supply is ON, the target of debugger is the external board, that's correct.
However, once turning OFF the Power supply, I can't access to the expected target, OB-nRF52, with the following error:
This is the log:
[2023-Mar-21 15:58:25] [debug] -------------------------------------------------------------------------------- [2023-Mar-21 15:58:25] [debug] C:\Program Files (x86)\Nordic Semiconductor\nrf-command-line-tools\bin\nrfjprog.exe --memrd 0x10001080 --log [2023-Mar-21 15:58:25] [debug] nrfjprog version 10.19.0 external [2023-Mar-21 15:58:25] [debug] -------------------------------------------------------------------------------- [2023-Mar-21 15:58:25] [ info] Load library at C:\Program Files (x86)\Nordic Semiconductor\nrf-command-line-tools\bin\nrfjprog.dll. [2023-Mar-21 15:58:25] [ info] Library loaded, loading member functions. [2023-Mar-21 15:58:25] [ info] Member functions succesfully loaded. [2023-Mar-21 15:58:25] [debug] [ Client] - open [2023-Mar-21 15:58:25] [debug] [ Client] - start [2023-Mar-21 15:58:25] [ info] [ Client] - stdout: Jlinkarm nRF Worker ready. Handling sequence 3d6bdbea-747d-4927-b78c-3ad039f44417. [2023-Mar-21 15:58:25] [debug] [SeggerBackend] - Logger sink registered in Segger backend logger [2023-Mar-21 15:58:25] [debug] [ JLink] - Logger sink registered in JLink logger [2023-Mar-21 15:58:25] [debug] [ nRFXX] - open [2023-Mar-21 15:58:25] [debug] [ nRFXX] - just_check_family [2023-Mar-21 15:58:25] [debug] [SeggerBackend] - open_dll [2023-Mar-21 15:58:25] [debug] [SeggerBackend] - No J-Link DLL path was provided. Attempting to auto detect. [2023-Mar-21 15:58:25] [ info] [SeggerBackend] - Load library at C:\Program Files (x86)\SEGGER\JLink\JLinkARM.dll. [2023-Mar-21 15:58:25] [trace] [ Client] - Command open executed for 99 milliseconds with result 0 [2023-Mar-21 15:58:25] [debug] [ Client] - config [2023-Mar-21 15:58:25] [ info] [SeggerBackend] - Library loaded, loading member functions. [2023-Mar-21 15:58:25] [ info] [SeggerBackend] - Member functions succesfully loaded. [2023-Mar-21 15:58:25] [debug] [SeggerBackend] - Set batch mode [2023-Mar-21 15:58:25] [debug] [SeggerBackend] - dll_version [2023-Mar-21 15:58:25] [ info] [SeggerBackend] - Segger dll version 7.80.c loaded. [2023-Mar-21 15:58:25] [trace] [ Worker] - Command open executed for 7 milliseconds with result 0 [2023-Mar-21 15:58:25] [trace] [ Client] - Command config executed for 15 milliseconds with result 0 [2023-Mar-21 15:58:25] [debug] [ Client] - enum_emu_snr [2023-Mar-21 15:58:25] [debug] [ nRFXX] - config [2023-Mar-21 15:58:25] [debug] [SeggerBackend] - enum_emu_snr [2023-Mar-21 15:58:25] [trace] [ Client] - Command enum_emu_con_info executed for 15 milliseconds with result 0 [2023-Mar-21 15:58:25] [trace] [ Worker] - Command config executed for 5 milliseconds with result 0 [2023-Mar-21 15:58:25] [debug] [ nRFXX] - enum_emu_con_info [2023-Mar-21 15:58:25] [debug] [SeggerBackend] - is_connected_to_emu [2023-Mar-21 15:58:25] [debug] [SeggerBackend] - enum_emu_con_info [2023-Mar-21 15:58:25] [debug] [SeggerBackend] - is_connected_to_emu [2023-Mar-21 15:58:25] [trace] [ Worker] - Command enum_emu_con_info executed for 6 milliseconds with result 0 [2023-Mar-21 15:58:25] [debug] [ Client] - connect_to_emu_with_snr [2023-Mar-21 15:58:25] [debug] [ nRFXX] - connect_to_emu_with_snr [2023-Mar-21 15:58:25] [debug] [SeggerBackend] - is_connected_to_emu [2023-Mar-21 15:58:25] [debug] [SeggerBackend] - connect_to_emu_with_snr [2023-Mar-21 15:58:25] [debug] [SeggerBackend] - is_connected_to_emu [2023-Mar-21 15:58:25] [debug] [SeggerBackend] - ---just_enum_emu_snr [2023-Mar-21 15:58:25] [debug] [SeggerBackend] - ---just_get_num_emus [2023-Mar-21 15:58:25] [debug] [SeggerBackend] - ---just_connect_to_emu_with_snr [2023-Mar-21 15:58:25] [debug] [SeggerBackend] - ---just_connect_to_emu_without_snr [2023-Mar-21 15:58:25] [debug] [SeggerBackend] - Segger logging enabled. [2023-Mar-21 15:58:25] [trace] [ JLink] - Firmware: J-Link OB-nRF5340-NordicSemi compiled Dec 3 2021 15:46:49 [2023-Mar-21 15:58:25] [trace] [ JLink] - Firmware: J-Link OB-nRF5340-NordicSemi compiled Dec 3 2021 15:46:49 [2023-Mar-21 15:58:25] [trace] [ JLink] - Hardware: V1.00 [2023-Mar-21 15:58:25] [trace] [ JLink] - S/N: 1050315295 [2023-Mar-21 15:58:25] [trace] [ JLink] - OEM: SEGGER [2023-Mar-21 15:58:25] [trace] [ JLink] - Feature(s): None [2023-Mar-21 15:58:25] [trace] [ JLink] - TELNET listener socket opened on port 19021 [2023-Mar-21 15:58:25] [trace] [ JLink] - WEBSRV WEBSRV_Init(): Starting webserver thread(s) [2023-Mar-21 15:58:25] [trace] [ JLink] - WEBSRV Webserver running on local port 19080 [2023-Mar-21 15:58:25] [trace] [ JLink] - - 34.965ms returns "O.K." [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_Lock() [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_ExecCommand("SetRestartOnClose = 0", ...). [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.004ms returns 0x01 [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_ExecCommand("DisableFlashDL", ...). [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.003ms returns 0x00 [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_ExecCommand("ExcludeFlashCacheRange 0x0-0xFFFFFFFF", ...). [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.005ms returns 0x00 [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_SetHookUnsecureDialog [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_SetHookUnsecureDialog(...) [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.018ms returns 0 [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_TIF_Select(JLINKARM_TIF_SWD) [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.986ms returns 0x00 [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_GetSpeedInfo() [2023-Mar-21 15:58:25] [trace] [ JLink] - 128000000 Hz / n, n >= 64 [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.019ms [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [debug] [SeggerBackend] - Connected emulator supports SWD speeds up to 2000kHz [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_SetSpeed(2000) [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.274ms [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_GetSpeed() [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.008ms returns 2000 [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [debug] [SeggerBackend] - SWD clock set to 2000kHz [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_GetSN() [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.009ms returns 1050315295 [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.009ms [2023-Mar-21 15:58:25] [debug] [ nRFXX] - read_device_family [2023-Mar-21 15:58:25] [debug] [ nRFXX] - read_device_family [2023-Mar-21 15:58:25] [debug] [SeggerBackend] - is_connected_to_emu [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_IsOpen() [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.008ms returns 0x01 [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_Lock() [2023-Mar-21 15:58:25] [debug] [SeggerBackend] - read_debug_port_idr [2023-Mar-21 15:58:25] [debug] [SeggerBackend] - read_debug_port_register [2023-Mar-21 15:58:25] [debug] [SeggerBackend] - ---just_read_debug_port_register [2023-Mar-21 15:58:25] [debug] [SeggerBackend] - coresight_configure [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_GetHWStatus(...) [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.412ms returns 0 [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_CORESIGHT_Configure() [2023-Mar-21 15:58:25] [trace] [ Client] - Command connect_to_emu_with_snr executed for 186 milliseconds with result -102 [2023-Mar-21 15:58:25] [trace] [ JLink] - - 100.811ms returns 0 [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [debug] [SeggerBackend] - read_debug_port_idr [2023-Mar-21 15:58:25] [debug] [SeggerBackend] - read_debug_port_register [2023-Mar-21 15:58:25] [debug] [SeggerBackend] - ---just_read_debug_port_register [2023-Mar-21 15:58:25] [debug] [SeggerBackend] - ---just_select_debug_port_register [2023-Mar-21 15:58:25] [debug] [SeggerBackend] - Select AP 255, DP Bank 0, AP Bank 255 [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000) [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.843ms returns -1 [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.". [2023-Mar-21 15:58:25] [debug] [SeggerBackend] - ---just_abort_debug_action [2023-Mar-21 15:58:25] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F) [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.600ms returns -1 [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.". [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F) [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.673ms returns -1 [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.". [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F) [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.635ms returns -1 [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.". [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F) [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.647ms returns -1 [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.". [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F) [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.614ms returns -1 [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.". [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000) [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.658ms returns -1 [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.". [2023-Mar-21 15:58:25] [debug] [SeggerBackend] - ---just_abort_debug_action [2023-Mar-21 15:58:25] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F) [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.646ms returns -1 [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.". [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F) [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.586ms returns -1 [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.". [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F) [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.702ms returns -1 [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.". [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F) [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.582ms returns -1 [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.". [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F) [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.606ms returns -1 [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.". [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000) [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.735ms returns -1 [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.". [2023-Mar-21 15:58:25] [debug] [SeggerBackend] - ---just_abort_debug_action [2023-Mar-21 15:58:25] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F) [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.603ms returns -1 [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.". [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F) [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.600ms returns -1 [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.". [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F) [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.572ms returns -1 [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.". [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F) [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.721ms returns -1 [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.". [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F) [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.575ms returns -1 [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.". [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000) [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.720ms returns -1 [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.". [2023-Mar-21 15:58:25] [debug] [SeggerBackend] - ---just_abort_debug_action [2023-Mar-21 15:58:25] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F) [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.821ms returns -1 [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.". [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F) [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.628ms returns -1 [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.". [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F) [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.592ms returns -1 [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.". [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F) [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.609ms returns -1 [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.". [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F) [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.675ms returns -1 [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.". [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000) [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.647ms returns -1 [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.". [2023-Mar-21 15:58:25] [debug] [SeggerBackend] - ---just_abort_debug_action [2023-Mar-21 15:58:25] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F) [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.738ms returns -1 [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.". [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F) [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.678ms returns -1 [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.". [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F) [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.612ms returns -1 [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.". [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F) [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.745ms returns -1 [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.". [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F) [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.727ms returns -1 [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.". [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.026ms [2023-Mar-21 15:58:25] [trace] [ Worker] - Command connect_to_emu_with_snr executed for 185 milliseconds with result -102 [2023-Mar-21 15:58:25] [debug] [ nRFXX] - close [2023-Mar-21 15:58:25] [debug] [SeggerBackend] - is_connected_to_emu [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_IsOpen() [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.011ms returns 0x01 [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_Lock() [2023-Mar-21 15:58:25] [debug] [SeggerBackend] - close [2023-Mar-21 15:58:25] [debug] [SeggerBackend] - disconnect_from_emu [2023-Mar-21 15:58:25] [debug] [SeggerBackend] - ---just_disconnect_from_emu [2023-Mar-21 15:58:25] [debug] [SeggerBackend] - is_connected_to_device [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_IsConnected() [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.008ms returns FALSE [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [debug] [SeggerBackend] - ---just_is_debug_region_powered [2023-Mar-21 15:58:25] [debug] [SeggerBackend] - ---just_read_debug_port_register [2023-Mar-21 15:58:25] [debug] [SeggerBackend] - ---just_select_debug_port_register [2023-Mar-21 15:58:25] [debug] [SeggerBackend] - Select AP 255, DP Bank 0, AP Bank 255 [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000) [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.572ms returns -1 [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.". [2023-Mar-21 15:58:25] [debug] [SeggerBackend] - ---just_abort_debug_action [2023-Mar-21 15:58:25] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F) [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.532ms returns -1 [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.". [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F) [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.583ms returns -1 [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.". [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F) [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.556ms returns -1 [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.". [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F) [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.607ms returns -1 [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.". [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F) [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.563ms returns -1 [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.". [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000) [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.569ms returns -1 [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.". [2023-Mar-21 15:58:25] [debug] [SeggerBackend] - ---just_abort_debug_action [2023-Mar-21 15:58:25] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F) [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.605ms returns -1 [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.". [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F) [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.605ms returns -1 [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.". [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F) [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.610ms returns -1 [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.". [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F) [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.549ms returns -1 [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.". [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F) [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.607ms returns -1 [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.". [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000) [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.634ms returns -1 [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.". [2023-Mar-21 15:58:25] [debug] [SeggerBackend] - ---just_abort_debug_action [2023-Mar-21 15:58:25] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F) [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.685ms returns -1 [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.". [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F) [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.566ms returns -1 [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.". [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F) [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.631ms returns -1 [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.". [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F) [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.568ms returns -1 [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.". [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F) [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.618ms returns -1 [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.". [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000) [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.582ms returns -1 [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.". [2023-Mar-21 15:58:25] [debug] [SeggerBackend] - ---just_abort_debug_action [2023-Mar-21 15:58:25] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F) [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.792ms returns -1 [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.". [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F) [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.709ms returns -1 [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.". [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F) [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.626ms returns -1 [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.". [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F) [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.653ms returns -1 [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.". [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F) [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.574ms returns -1 [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.". [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000) [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.881ms returns -1 [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.". [2023-Mar-21 15:58:25] [debug] [SeggerBackend] - ---just_abort_debug_action [2023-Mar-21 15:58:25] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F) [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.681ms returns -1 [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.". [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F) [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.817ms returns -1 [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.". [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F) [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.695ms returns -1 [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.". [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F) [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.681ms returns -1 [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.". [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F) [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.890ms returns -1 [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_HasError() [2023-Mar-21 15:58:25] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.". [2023-Mar-21 15:58:25] [trace] [ JLink] - - 0.035ms [2023-Mar-21 15:58:25] [trace] [ JLink] - JLINK_Close() [2023-Mar-21 15:58:25] [debug] [SeggerBackend] - Segger Backend closed. [2023-Mar-21 15:58:25] [debug] [ nRFXX] - nRF family DLL closed [2023-Mar-21 15:58:25] [trace] [ Client] - Command close executed for 61 milliseconds with result 0 [2023-Mar-21 15:58:25] [debug] [ Client] - terminate [2023-Mar-21 15:58:25] [trace] [ Client] - Command terminate executed for 0 milliseconds with result 0 [2023-Mar-21 15:58:25] [trace] [ Worker] - Command close executed for 61 milliseconds with result 0 [2023-Mar-21 15:58:25] [trace] [ Worker] - Command terminate executed for 0 milliseconds with result 0 [2023-Mar-21 15:58:25] [trace] [ Worker] - Executed 6 commands for 264 milliseconds [2023-Mar-21 15:58:25] [debug] [ Client] - Worker process exited with code: 0 [2023-Mar-21 15:58:25] [debug] [ Client] - Worker process exited with code: 0 [2023-Mar-21 15:58:25] [debug] [ Client] - Child process terminated with result 0 [2023-Mar-21 15:58:25] [trace] [ Client] - Executed 6 commands for 376 milliseconds [2023-Mar-21 15:58:25] [debug] [ Client] - terminate
With the multimeter, the voltage on pin SELECT/VGT is 0.79V.
Meanwhile, by disconnecting the link (VGT+SWDIO+SWDCLK+GND) between nRF52-DK and the external board, the voltage of pin SELECT/VGT is 0V.
Problem-2: Can not boot on Bootloader mode
Always using the same method that power up the nRF52-DK by pressing the button BOOT/RESET. The DK always boot on JLINK mode, not Bootloader mode.
I tested 2 DK rev.3.0.0 and got the same result. But with DK rev.2.1.0, it booted correctly on Bootloader mode.
Do you have any idea?
Thank you very much
Kind regards
Xiang