This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF52840 custom board - CouldNotOpenDevice (0x4) Lowlevel error: JLINKARM_DLL_ERROR (ffffff9a)

Hi. I am currently having a nrf52840 custom board and tried to program the sniffer hex file. nRF programmer gave me couldNotOpenDevice (0x4) Lowlevel error: JLINKARM_DLL_ERROR (ffffff9a). I tried to use nrfjprog by entering the command "nrfjprog -f NRF52 --recover --log". But, i get this:

[2021-Feb-08 17:21:02] [ info] --------------------------------------------------------------------------------
[2021-Feb-08 17:21:02] [ info] nrfjprog -f NRF52 --recover --log
[2021-Feb-08 17:21:02] [ info] nrfjprog version 10.10.0
[2021-Feb-08 17:21:02] [ info] --------------------------------------------------------------------------------
[2021-Feb-08 17:21:02] [debug] [ nRF0x0] - open_dll
[2021-Feb-08 17:21:02] [debug] [ nRF0x0] - Load library at C:\Program Files\Nordic Semiconductor\nrf-command-line-tools\bin\JLINKARM_NRF52_NRFJPROG.dll.
[2021-Feb-08 17:21:02] [debug] [ nRF0x0] - Library loaded, loading member functions.
[2021-Feb-08 17:21:02] [debug] [ nRF0x0] - Member functions succesfully loaded.
[2021-Feb-08 17:21:02] [debug] [Backend] - Logger callback at 0x7ff79cd360d0 registered in Segger backend logger.
[2021-Feb-08 17:21:02] [debug] [ JLink] - [Debug ] [JLink ] Logger callback at 0x7ff79cd360d0 registered in JLink logger.
[2021-Feb-08 17:21:02] [debug] [nRF520x0] - open
[2021-Feb-08 17:21:02] [debug] [Backend] - open_dll
[2021-Feb-08 17:21:02] [debug] [Backend] - No J-Link DLL path was provided. Attempting to auto detect.
[2021-Feb-08 17:21:02] [debug] [Backend] - Load library at C:\Program Files (x86)\SEGGER\JLink\JLink_x64.dll.
[2021-Feb-08 17:21:02] [debug] [Backend] - Library loaded, loading member functions.
[2021-Feb-08 17:21:02] [debug] [Backend] - Member functions succesfully loaded.
[2021-Feb-08 17:21:02] [debug] [Backend] - dll_version
[2021-Feb-08 17:21:02] [debug] [Backend] - Segger dll version 6.88.a loaded.
[2021-Feb-08 17:21:02] [debug] [ nRF0x0] - enum_emu_snr
[2021-Feb-08 17:21:02] [debug] [nRF520x0] - enum_emu_snr
[2021-Feb-08 17:21:02] [debug] [Backend] - is_connected_to_emu
[2021-Feb-08 17:21:02] [debug] [Backend] - enum_emu_snr
[2021-Feb-08 17:21:02] [debug] [Backend] - ---just_enum_emu_snr
[2021-Feb-08 17:21:02] [debug] [Backend] - ---just_get_num_emus
[2021-Feb-08 17:21:02] [debug] [Backend] - is_connected_to_emu
[2021-Feb-08 17:21:02] [debug] [ nRF0x0] - connect_to_emu_with_snr
[2021-Feb-08 17:21:02] [debug] [nRF520x0] - connect_to_emu_with_snr
[2021-Feb-08 17:21:02] [debug] [Backend] - is_connected_to_emu
[2021-Feb-08 17:21:02] [debug] [Backend] - connect_to_emu_with_snr
[2021-Feb-08 17:21:02] [debug] [Backend] - is_connected_to_emu
[2021-Feb-08 17:21:02] [debug] [Backend] - ---just_enum_emu_snr
[2021-Feb-08 17:21:02] [debug] [Backend] - ---just_get_num_emus
[2021-Feb-08 17:21:02] [debug] [Backend] - ---just_connect_to_emu_with_snr
[2021-Feb-08 17:21:02] [debug] [Backend] - ---just_connect_to_emu_without_snr
[2021-Feb-08 17:21:02] [debug] [Backend] - Segger logging enabled.
[2021-Feb-08 17:21:02] [debug] [ JLink] - [Debug ] [JLink ] Firmware: J-Link OB-K22-NordicSemi compiled Jan 21 2020 17:33:01
[2021-Feb-08 17:21:02] [debug] [ JLink] - [Debug ] [JLink ] Decompressing FW timestamp took 249 us
[2021-Feb-08 17:21:02] [debug] [ JLink] - [Debug ] [JLink ] Hardware: V1.00
[2021-Feb-08 17:21:02] [debug] [ JLink] - [Debug ] [JLink ] S/N: 960161431
[2021-Feb-08 17:21:02] [debug] [ JLink] - [Debug ] [JLink ] OEM: SEGGER
[2021-Feb-08 17:21:02] [debug] [ JLink] - [Debug ] [JLink ] Feature(s): RDI, FlashBP, FlashDL, JFlash, GDB
[2021-Feb-08 17:21:02] [debug] [ JLink] - [Debug ] [JLink ] TELNET listener socket opened on port 19021
[2021-Feb-08 17:21:02] [debug] [ JLink] - [Debug ] [JLink ] WEBSRV Starting webserver
[2021-Feb-08 17:21:02] [debug] [ JLink] - [Debug ] [JLink ] WEBSRV Webserver running on local port 19080
[2021-Feb-08 17:21:02] [debug] [ JLink] - [Debug ] [JLink ] - 26.779ms returns "O.K."
[2021-Feb-08 17:21:02] [debug] [ JLink] - [Debug ] [JLink ] JLINK_HasError()
[2021-Feb-08 17:21:02] [debug] [ JLink] - [Debug ] [JLink ] JLINK_Lock()
[2021-Feb-08 17:21:02] [debug] [ JLink] - [Debug ] [JLink ] JLINK_GetHWStatus(...)
[2021-Feb-08 17:21:02] [debug] [ JLink] - [Debug ] [JLink ] - 0.267ms returns 0
[2021-Feb-08 17:21:02] [debug] [ JLink] - [Debug ] [JLink ] JLINK_HasError()
[2021-Feb-08 17:21:02] [debug] [ JLink] - [Debug ] [JLink ] JLINK_ExecCommand("SetRestartOnClose = 0", ...).
[2021-Feb-08 17:21:02] [debug] [ JLink] - [Debug ] [JLink ] - 0.004ms returns 0x01
[2021-Feb-08 17:21:02] [debug] [ JLink] - [Debug ] [JLink ] JLINK_HasError()
[2021-Feb-08 17:21:02] [debug] [ JLink] - [Debug ] [JLink ] JLINK_ExecCommand("DisableFlashDL", ...).
[2021-Feb-08 17:21:02] [debug] [ JLink] - [Debug ] [JLink ] - 0.004ms returns 0x00
[2021-Feb-08 17:21:02] [debug] [ JLink] - [Debug ] [JLink ] JLINK_HasError()
[2021-Feb-08 17:21:02] [debug] [ JLink] - [Debug ] [JLink ] JLINK_ExecCommand("ExcludeFlashCacheRange 0x0-0xFFFFFFFF", ...).
[2021-Feb-08 17:21:02] [debug] [ JLink] - [Debug ] [JLink ] - 0.004ms returns 0x00
[2021-Feb-08 17:21:02] [debug] [ JLink] - [Debug ] [JLink ] JLINK_HasError()
[2021-Feb-08 17:21:02] [debug] [ JLink] - [Debug ] [JLink ] JLINK_SetHookUnsecureDialog
[2021-Feb-08 17:21:02] [debug] [ JLink] - [Debug ] [JLink ] JLINK_SetHookUnsecureDialog(...)
[2021-Feb-08 17:21:02] [debug] [ JLink] - [Debug ] [JLink ] - 0.015ms returns 0
[2021-Feb-08 17:21:02] [debug] [ JLink] - [Debug ] [JLink ] JLINK_HasError()
[2021-Feb-08 17:21:02] [debug] [ JLink] - [Debug ] [JLink ] JLINK_TIF_Select(JLINKARM_TIF_SWD)
[2021-Feb-08 17:21:02] [debug] [ JLink] - [Debug ] [JLink ] - 0.668ms returns 0x00
[2021-Feb-08 17:21:02] [debug] [ JLink] - [Debug ] [JLink ] JLINK_HasError()
[2021-Feb-08 17:21:02] [debug] [ JLink] - [Debug ] [JLink ] JLINK_SetSpeed(2000)
[2021-Feb-08 17:21:02] [debug] [ JLink] - [Debug ] [JLink ] - 0.106ms
[2021-Feb-08 17:21:02] [debug] [ JLink] - [Debug ] [JLink ] JLINK_HasError()
[2021-Feb-08 17:21:02] [debug] [ JLink] - [Debug ] [JLink ] JLINK_GetSN()
[2021-Feb-08 17:21:02] [debug] [ JLink] - [Debug ] [JLink ] - 0.006ms returns 960161431
[2021-Feb-08 17:21:02] [debug] [ JLink] - [Debug ] [JLink ] JLINK_HasError()
[2021-Feb-08 17:21:02] [debug] [Backend] - ---just_load_core_data
[2021-Feb-08 17:21:02] [debug] [ JLink] - [Debug ] [JLink ] JLINK_ExecCommand("CORESIGHT_SetIndexAHBAPToUse = 0", ...).
[2021-Feb-08 17:21:02] [debug] [ JLink] - [Debug ] [JLink ] - 0.004ms returns 0x00
[2021-Feb-08 17:21:02] [debug] [ JLink] - [Debug ] [JLink ] JLINK_HasError()
[2021-Feb-08 17:21:02] [debug] [ JLink] - [Debug ] [JLink ] JLINK_ExecCommand("device = nRF52", ...).
[2021-Feb-08 17:21:02] [debug] [ JLink] - [Debug ] [JLink ] XML file found at: C:\Program Files (x86)\SEGGER\JLink\JLinkDevices.xml
[2021-Feb-08 17:21:02] [debug] [ JLink] - [Debug ] [JLink ] C:\Program Files (x86)\SEGGER\JLink\JLinkDevices.xml evaluated successfully.
[2021-Feb-08 17:21:02] [debug] [ JLink] - [Debug ] [JLink ] Device "NRF52" selected.
[2021-Feb-08 17:21:02] [debug] [ JLink] - [Debug ] [JLink ] - 34.771ms returns 0x00
[2021-Feb-08 17:21:02] [debug] [ JLink] - [Debug ] [JLink ] JLINK_HasError()
[2021-Feb-08 17:21:02] [debug] [Backend] - read_debug_port_idr
[2021-Feb-08 17:21:02] [debug] [Backend] - read_debug_port_register
[2021-Feb-08 17:21:02] [debug] [Backend] - ---just_read_debug_port_register
[2021-Feb-08 17:21:02] [debug] [Backend] - coresight_configure
[2021-Feb-08 17:21:02] [debug] [ JLink] - [Debug ] [JLink ] JLINK_CORESIGHT_Configure()
[2021-Feb-08 17:21:02] [debug] [ JLink] - [Debug ] [JLink ] - 102.508ms returns 0
[2021-Feb-08 17:21:02] [debug] [ JLink] - [Debug ] [JLink ] JLINK_HasError()
[2021-Feb-08 17:21:02] [debug] [ JLink] - [Debug ] [JLink ] JLINK_CORESIGHT_ReadAPDPReg(DP reg 0x00)
[2021-Feb-08 17:21:02] [debug] [ JLink] - [Debug ] [JLink ] failed
[2021-Feb-08 17:21:02] [debug] [ JLink] - [Debug ] [JLink ] - 1.494ms returns -1
[2021-Feb-08 17:21:02] [debug] [ JLink] - [Debug ] [JLink ] JLINK_HasError()
[2021-Feb-08 17:21:02] [debug] [Backend] - JLinkARM.dll reported "-1", an unknown error.
[2021-Feb-08 17:21:02] [debug] [Backend] - ---just_abort_debug_action
[2021-Feb-08 17:21:02] [debug] [Backend] - Attempting to clear any configuration errors in debug port before closing connection.
[2021-Feb-08 17:21:02] [debug] [ JLink] - [Debug ] [JLink ] JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2021-Feb-08 17:21:02] [debug] [ JLink] - [Debug ] [JLink ] - 1.302ms returns -1
[2021-Feb-08 17:21:02] [debug] [ JLink] - [Debug ] [JLink ] JLINK_HasError()
[2021-Feb-08 17:21:02] [debug] [Backend] - JLinkARM.dll reported "-1", an unknown error.
[2021-Feb-08 17:21:02] [debug] [ JLink] - [Debug ] [JLink ] - 0.081ms
[2021-Feb-08 17:21:02] [debug] [ nRF0x0] - close_dll
[2021-Feb-08 17:21:02] [debug] [nRF520x0] - close
[2021-Feb-08 17:21:02] [debug] [Backend] - is_connected_to_emu
[2021-Feb-08 17:21:02] [debug] [ JLink] - [Debug ] [JLink ] JLINK_IsOpen()
[2021-Feb-08 17:21:02] [debug] [ JLink] - [Debug ] [JLink ] - 0.043ms returns 0x01
[2021-Feb-08 17:21:02] [debug] [ JLink] - [Debug ] [JLink ] JLINK_HasError()
[2021-Feb-08 17:21:02] [debug] [ JLink] - [Debug ] [JLink ] JLINK_Lock()
[2021-Feb-08 17:21:02] [debug] [Backend] - close
[2021-Feb-08 17:21:02] [debug] [Backend] - disconnect_from_emu
[2021-Feb-08 17:21:02] [debug] [Backend] - ---just_disconnect_from_emu
[2021-Feb-08 17:21:02] [debug] [Backend] - is_connected_to_device
[2021-Feb-08 17:21:02] [debug] [ JLink] - [Debug ] [JLink ] JLINK_IsConnected()
[2021-Feb-08 17:21:02] [debug] [ JLink] - [Debug ] [JLink ] - 0.029ms returns FALSE
[2021-Feb-08 17:21:02] [debug] [ JLink] - [Debug ] [JLink ] JLINK_HasError()
[2021-Feb-08 17:21:02] [debug] [Backend] - ---just_is_debug_region_powered
[2021-Feb-08 17:21:02] [debug] [Backend] - ---just_read_debug_port_register
[2021-Feb-08 17:21:02] [debug] [Backend] - ---just_write_debug_port_register
[2021-Feb-08 17:21:02] [debug] [ JLink] - [Debug ] [JLink ] JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)
[2021-Feb-08 17:21:02] [debug] [ JLink] - [Debug ] [JLink ] - 1.159ms returns -1
[2021-Feb-08 17:21:02] [debug] [ JLink] - [Debug ] [JLink ] JLINK_HasError()
[2021-Feb-08 17:21:02] [debug] [Backend] - JLinkARM.dll reported "-1", an unknown error.
[2021-Feb-08 17:21:02] [debug] [Backend] - ---just_abort_debug_action
[2021-Feb-08 17:21:02] [debug] [Backend] - Attempting to clear any configuration errors in debug port before closing connection.
[2021-Feb-08 17:21:02] [debug] [ JLink] - [Debug ] [JLink ] JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2021-Feb-08 17:21:02] [debug] [ JLink] - [Debug ] [JLink ] - 1.813ms returns -1
[2021-Feb-08 17:21:02] [debug] [ JLink] - [Debug ] [JLink ] JLINK_HasError()
[2021-Feb-08 17:21:02] [debug] [Backend] - JLinkARM.dll reported "-1", an unknown error.
[2021-Feb-08 17:21:02] [debug] [ JLink] - [Debug ] [JLink ] - 0.086ms
[2021-Feb-08 17:21:03] [debug] [ JLink] - [Debug ] [JLink ] JLINK_Close()
[2021-Feb-08 17:21:03] [debug] [Backend] - Segger Backend closed.
[2021-Feb-08 17:21:03] [debug] [nRF520x0] - nRF family DLL closed
[2021-Feb-08 17:41:03] [ info] --------------------------------------------------------------------------------
[2021-Feb-08 17:41:03] [ info] nrfjprog --recover --log
[2021-Feb-08 17:41:03] [ info] nrfjprog version 10.12.1
[2021-Feb-08 17:41:03] [ info] --------------------------------------------------------------------------------
[2021-Feb-08 17:41:03] [debug] [ nRF0x0] - open_dll
[2021-Feb-08 17:41:03] [ info] [ nRF0x0] - Load library at C:\Program Files (x86)\Nordic Semiconductor\nrf-command-line-tools\bin\JLINKARM_UNKNOWN_NRFJPROG.dll.
[2021-Feb-08 17:41:03] [ info] [ nRF0x0] - Library loaded, loading member functions.
[2021-Feb-08 17:41:03] [ info] [ nRF0x0] - Member functions succesfully loaded.
[2021-Feb-08 17:41:03] [ info] [Backend] - Logger callback at 0x862020 registered in Segger backend logger.
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] Logger callback at 0x862020 registered in JLink logger.
[2021-Feb-08 17:41:03] [debug] [nRFUnknown] - Just_open_dll_tagged_callback
[2021-Feb-08 17:41:03] [debug] [Backend] - open_dll
[2021-Feb-08 17:41:03] [ info] [Backend] - No J-Link DLL path was provided. Attempting to auto detect.
[2021-Feb-08 17:41:03] [ info] [Backend] - Load library at C:\Program Files (x86)\SEGGER\JLink\JLinkARM.dll.
[2021-Feb-08 17:41:03] [ info] [Backend] - Library loaded, loading member functions.
[2021-Feb-08 17:41:03] [ info] [Backend] - Member functions succesfully loaded.
[2021-Feb-08 17:41:03] [debug] [Backend] - dll_version
[2021-Feb-08 17:41:03] [ info] [Backend] - Segger dll version 6.88.a loaded.
[2021-Feb-08 17:41:03] [debug] [Backend] - set_core_data
[2021-Feb-08 17:41:03] [debug] [ nRF0x0] - enum_emu_snr
[2021-Feb-08 17:41:03] [debug] [nRFUnknown] - Just_enum_emu_snr
[2021-Feb-08 17:41:03] [debug] [Backend] - enum_emu_snr
[2021-Feb-08 17:41:03] [debug] [Backend] - ---just_enum_emu_snr
[2021-Feb-08 17:41:03] [debug] [Backend] - ---just_get_num_emus
[2021-Feb-08 17:41:03] [debug] [ nRF0x0] - connect_to_emu_with_snr
[2021-Feb-08 17:41:03] [debug] [nRFUnknown] - Just_connect_to_emu_with_snr
[2021-Feb-08 17:41:03] [debug] [Backend] - connect_to_emu_with_snr
[2021-Feb-08 17:41:03] [debug] [Backend] - is_connected_to_emu
[2021-Feb-08 17:41:03] [debug] [Backend] - ---just_enum_emu_snr
[2021-Feb-08 17:41:03] [debug] [Backend] - ---just_get_num_emus
[2021-Feb-08 17:41:03] [debug] [Backend] - ---just_connect_to_emu_with_snr
[2021-Feb-08 17:41:03] [debug] [Backend] - ---just_connect_to_emu_without_snr
[2021-Feb-08 17:41:03] [ info] [Backend] - Segger logging enabled.
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] Firmware: J-Link OB-K22-NordicSemi compiled Jan 21 2020 17:33:01
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] Decompressing FW timestamp took 134 us
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] Hardware: V1.00
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] S/N: 960161431
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] OEM: SEGGER
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] Feature(s): RDI, FlashBP, FlashDL, JFlash, GDB
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] TELNET listener socket opened on port 19021
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] WEBSRV Starting webserver
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] WEBSRV Webserver running on local port 19080
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] - 20.908ms returns "O.K."
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] JLINK_GetHWStatus(...)
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] - 0.214ms returns 0
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] JLINK_ExecCommand("SetRestartOnClose = 0", ...).
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] - 0.010ms returns 0x01
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] JLINK_ExecCommand("DisableFlashDL", ...).
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] - 0.005ms returns 0x00
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] JLINK_ExecCommand("ExcludeFlashCacheRange 0x0-0xFFFFFFFF", ...).
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] - 0.005ms returns 0x00
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] JLINK_SetHookUnsecureDialog
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] JLINK_SetHookUnsecureDialog(...)
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] - 0.026ms returns 0
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] JLINK_TIF_Select(JLINKARM_TIF_SWD)
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] - 0.741ms returns 0x00
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] JLINK_SetSpeed(2000)
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] - 0.129ms
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] JLINK_GetSN()
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] - 0.010ms returns 960161431
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 17:41:03] [debug] [Backend] - ---just_load_core_data
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] JLINK_ExecCommand("CORESIGHT_SetIndexAHBAPToUse = 0", ...).
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] - 0.008ms returns 0x00
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] JLINK_ExecCommand("device = Cortex-M4", ...).
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] XML file found at: C:\Program Files (x86)\SEGGER\JLink\JLinkDevices.xml
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] C:\Program Files (x86)\SEGGER\JLink\JLinkDevices.xml evaluated successfully.
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] Device "CORTEX-M4" selected.
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] Device "CORTEX-M4" selected.
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] - 34.123ms returns 0x00
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 17:41:03] [debug] [ nRF0x0] - read_connected_emu_snr
[2021-Feb-08 17:41:03] [debug] [nRFUnknown] - Just_read_connected_emu_snr
[2021-Feb-08 17:41:03] [debug] [Backend] - read_connected_emu_snr
[2021-Feb-08 17:41:03] [debug] [Backend] - is_connected_to_emu
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] JLINK_IsOpen()
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] - 0.010ms returns 0x01
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 17:41:03] [debug] [ nRF0x0] - read_device_family
[2021-Feb-08 17:41:03] [debug] [nRFUnknown] - Just_read_device_family
[2021-Feb-08 17:41:03] [debug] [Backend] - is_connected_to_emu
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] JLINK_IsOpen()
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] - 0.009ms returns 0x01
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] JLINK_Lock()
[2021-Feb-08 17:41:03] [debug] [Backend] - read_debug_port_idr
[2021-Feb-08 17:41:03] [debug] [Backend] - read_debug_port_register
[2021-Feb-08 17:41:03] [debug] [Backend] - ---just_read_debug_port_register
[2021-Feb-08 17:41:03] [debug] [Backend] - coresight_configure
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] JLINK_CORESIGHT_Configure()
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] - 101.022ms returns 0
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 17:41:03] [debug] [Backend] - ---just_select_debug_port_register
[2021-Feb-08 17:41:03] [debug] [Backend] - Select AP 255, DP Bank 0, AP Bank 255
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] - 1.095ms returns -1
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 17:41:03] [ info] [Backend] - JLinkARM.dll reported "-1", an unknown error.
[2021-Feb-08 17:41:03] [debug] [Backend] - ---just_abort_debug_action
[2021-Feb-08 17:41:03] [ info] [Backend] - Attempting to clear any configuration errors in debug port before closing connection.
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] - 1.193ms returns -1
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 17:41:03] [ info] [Backend] - JLinkARM.dll reported "-1", an unknown error.
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] - 0.088ms
[2021-Feb-08 17:41:03] [debug] [ nRF0x0] - close_dll
[2021-Feb-08 17:41:03] [debug] [nRFUnknown] - Just_close_dll
[2021-Feb-08 17:41:03] [debug] [Backend] - close
[2021-Feb-08 17:41:03] [debug] [Backend] - disconnect_from_emu
[2021-Feb-08 17:41:03] [debug] [Backend] - is_connected_to_emu
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] JLINK_IsOpen()
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] - 0.037ms returns 0x01
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 17:41:03] [debug] [Backend] - ---just_disconnect_from_emu
[2021-Feb-08 17:41:03] [debug] [Backend] - is_connected_to_device
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] JLINK_IsConnected()
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] - 0.038ms returns FALSE
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 17:41:03] [debug] [Backend] - ---just_is_debug_region_powered
[2021-Feb-08 17:41:03] [debug] [Backend] - ---just_read_debug_port_register
[2021-Feb-08 17:41:03] [debug] [Backend] - is_connected_to_emu
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] JLINK_IsOpen()
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] - 0.033ms returns 0x01
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] JLINK_Lock()
[2021-Feb-08 17:41:03] [debug] [Backend] - ---just_select_debug_port_register
[2021-Feb-08 17:41:03] [debug] [Backend] - Select AP 255, DP Bank 0, AP Bank 255
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] - 1.108ms returns -1
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 17:41:03] [ info] [Backend] - JLinkARM.dll reported "-1", an unknown error.
[2021-Feb-08 17:41:03] [debug] [Backend] - ---just_abort_debug_action
[2021-Feb-08 17:41:03] [ info] [Backend] - Attempting to clear any configuration errors in debug port before closing connection.
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] - 1.045ms returns -1
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 17:41:03] [ info] [Backend] - JLinkARM.dll reported "-1", an unknown error.
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] - 0.077ms
[2021-Feb-08 17:41:03] [ info] [ JLink] - [Info ] [JLink ] JLINK_Close()
[2021-Feb-08 17:41:03] [debug] [Backend] - Segger Backend closed.
[2021-Feb-08 17:55:21] [ info] --------------------------------------------------------------------------------
[2021-Feb-08 17:55:21] [ info] nrfjprog --recover --log
[2021-Feb-08 17:55:21] [ info] nrfjprog version 10.12.1
[2021-Feb-08 17:55:21] [ info] --------------------------------------------------------------------------------
[2021-Feb-08 17:55:21] [debug] [ nRF0x0] - open_dll
[2021-Feb-08 17:55:21] [ info] [ nRF0x0] - Load library at C:\Program Files (x86)\Nordic Semiconductor\nrf-command-line-tools\bin\JLINKARM_UNKNOWN_NRFJPROG.dll.
[2021-Feb-08 17:55:21] [ info] [ nRF0x0] - Library loaded, loading member functions.
[2021-Feb-08 17:55:21] [ info] [ nRF0x0] - Member functions succesfully loaded.
[2021-Feb-08 17:55:21] [ info] [Backend] - Logger callback at 0x862020 registered in Segger backend logger.
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] Logger callback at 0x862020 registered in JLink logger.
[2021-Feb-08 17:55:21] [debug] [nRFUnknown] - Just_open_dll_tagged_callback
[2021-Feb-08 17:55:21] [debug] [Backend] - open_dll
[2021-Feb-08 17:55:21] [ info] [Backend] - No J-Link DLL path was provided. Attempting to auto detect.
[2021-Feb-08 17:55:21] [ info] [Backend] - Load library at C:\Program Files (x86)\SEGGER\JLink\JLinkARM.dll.
[2021-Feb-08 17:55:21] [ info] [Backend] - Library loaded, loading member functions.
[2021-Feb-08 17:55:21] [ info] [Backend] - Member functions succesfully loaded.
[2021-Feb-08 17:55:21] [debug] [Backend] - dll_version
[2021-Feb-08 17:55:21] [ info] [Backend] - Segger dll version 6.88.a loaded.
[2021-Feb-08 17:55:21] [debug] [Backend] - set_core_data
[2021-Feb-08 17:55:21] [debug] [ nRF0x0] - enum_emu_snr
[2021-Feb-08 17:55:21] [debug] [nRFUnknown] - Just_enum_emu_snr
[2021-Feb-08 17:55:21] [debug] [Backend] - enum_emu_snr
[2021-Feb-08 17:55:21] [debug] [Backend] - ---just_enum_emu_snr
[2021-Feb-08 17:55:21] [debug] [Backend] - ---just_get_num_emus
[2021-Feb-08 17:55:21] [debug] [ nRF0x0] - connect_to_emu_with_snr
[2021-Feb-08 17:55:21] [debug] [nRFUnknown] - Just_connect_to_emu_with_snr
[2021-Feb-08 17:55:21] [debug] [Backend] - connect_to_emu_with_snr
[2021-Feb-08 17:55:21] [debug] [Backend] - is_connected_to_emu
[2021-Feb-08 17:55:21] [debug] [Backend] - ---just_enum_emu_snr
[2021-Feb-08 17:55:21] [debug] [Backend] - ---just_get_num_emus
[2021-Feb-08 17:55:21] [debug] [Backend] - ---just_connect_to_emu_with_snr
[2021-Feb-08 17:55:21] [debug] [Backend] - ---just_connect_to_emu_without_snr
[2021-Feb-08 17:55:21] [ info] [Backend] - Segger logging enabled.
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] Firmware: J-Link OB-K22-NordicSemi compiled Jan 21 2020 17:33:01
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] Decompressing FW timestamp took 192 us
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] Hardware: V1.00
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] S/N: 960161431
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] OEM: SEGGER
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] Feature(s): RDI, FlashBP, FlashDL, JFlash, GDB
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] TELNET listener socket opened on port 19021
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] WEBSRV Starting webserver
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] WEBSRV Webserver running on local port 19080
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] - 21.025ms returns "O.K."
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] JLINK_GetHWStatus(...)
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] - 0.139ms returns 0
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] JLINK_ExecCommand("SetRestartOnClose = 0", ...).
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] - 0.009ms returns 0x01
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] JLINK_ExecCommand("DisableFlashDL", ...).
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] - 0.009ms returns 0x00
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] JLINK_ExecCommand("ExcludeFlashCacheRange 0x0-0xFFFFFFFF", ...).
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] - 0.008ms returns 0x00
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] JLINK_SetHookUnsecureDialog
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] JLINK_SetHookUnsecureDialog(...)
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] - 0.041ms returns 0
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] JLINK_TIF_Select(JLINKARM_TIF_SWD)
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] - 0.607ms returns 0x00
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] JLINK_SetSpeed(2000)
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] - 0.065ms
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] JLINK_GetSN()
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] - 0.009ms returns 960161431
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 17:55:21] [debug] [Backend] - ---just_load_core_data
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] JLINK_ExecCommand("CORESIGHT_SetIndexAHBAPToUse = 0", ...).
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] - 0.005ms returns 0x00
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] JLINK_ExecCommand("device = Cortex-M4", ...).
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] XML file found at: C:\Program Files (x86)\SEGGER\JLink\JLinkDevices.xml
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] C:\Program Files (x86)\SEGGER\JLink\JLinkDevices.xml evaluated successfully.
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] Device "CORTEX-M4" selected.
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] Device "CORTEX-M4" selected.
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] - 39.928ms returns 0x00
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 17:55:21] [debug] [ nRF0x0] - read_connected_emu_snr
[2021-Feb-08 17:55:21] [debug] [nRFUnknown] - Just_read_connected_emu_snr
[2021-Feb-08 17:55:21] [debug] [Backend] - read_connected_emu_snr
[2021-Feb-08 17:55:21] [debug] [Backend] - is_connected_to_emu
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] JLINK_IsOpen()
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] - 0.010ms returns 0x01
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 17:55:21] [debug] [ nRF0x0] - read_device_family
[2021-Feb-08 17:55:21] [debug] [nRFUnknown] - Just_read_device_family
[2021-Feb-08 17:55:21] [debug] [Backend] - is_connected_to_emu
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] JLINK_IsOpen()
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] - 0.010ms returns 0x01
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] JLINK_Lock()
[2021-Feb-08 17:55:21] [debug] [Backend] - read_debug_port_idr
[2021-Feb-08 17:55:21] [debug] [Backend] - read_debug_port_register
[2021-Feb-08 17:55:21] [debug] [Backend] - ---just_read_debug_port_register
[2021-Feb-08 17:55:21] [debug] [Backend] - coresight_configure
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] JLINK_CORESIGHT_Configure()
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] - 101.477ms returns 0
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 17:55:21] [debug] [Backend] - ---just_select_debug_port_register
[2021-Feb-08 17:55:21] [debug] [Backend] - Select AP 255, DP Bank 0, AP Bank 255
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] - 0.796ms returns -1
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 17:55:21] [ info] [Backend] - JLinkARM.dll reported "-1", an unknown error.
[2021-Feb-08 17:55:21] [debug] [Backend] - ---just_abort_debug_action
[2021-Feb-08 17:55:21] [ info] [Backend] - Attempting to clear any configuration errors in debug port before closing connection.
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] - 0.793ms returns -1
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 17:55:21] [ info] [Backend] - JLinkARM.dll reported "-1", an unknown error.
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] - 0.077ms
[2021-Feb-08 17:55:21] [debug] [ nRF0x0] - close_dll
[2021-Feb-08 17:55:21] [debug] [nRFUnknown] - Just_close_dll
[2021-Feb-08 17:55:21] [debug] [Backend] - close
[2021-Feb-08 17:55:21] [debug] [Backend] - disconnect_from_emu
[2021-Feb-08 17:55:21] [debug] [Backend] - is_connected_to_emu
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] JLINK_IsOpen()
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] - 0.030ms returns 0x01
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 17:55:21] [debug] [Backend] - ---just_disconnect_from_emu
[2021-Feb-08 17:55:21] [debug] [Backend] - is_connected_to_device
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] JLINK_IsConnected()
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] - 0.067ms returns FALSE
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 17:55:21] [debug] [Backend] - ---just_is_debug_region_powered
[2021-Feb-08 17:55:21] [debug] [Backend] - ---just_read_debug_port_register
[2021-Feb-08 17:55:21] [debug] [Backend] - is_connected_to_emu
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] JLINK_IsOpen()
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] - 0.051ms returns 0x01
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] JLINK_Lock()
[2021-Feb-08 17:55:21] [debug] [Backend] - ---just_select_debug_port_register
[2021-Feb-08 17:55:21] [debug] [Backend] - Select AP 255, DP Bank 0, AP Bank 255
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] - 0.768ms returns -1
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 17:55:21] [ info] [Backend] - JLinkARM.dll reported "-1", an unknown error.
[2021-Feb-08 17:55:21] [debug] [Backend] - ---just_abort_debug_action
[2021-Feb-08 17:55:21] [ info] [Backend] - Attempting to clear any configuration errors in debug port before closing connection.
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] - 1.046ms returns -1
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 17:55:21] [ info] [Backend] - JLinkARM.dll reported "-1", an unknown error.
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] - 0.085ms
[2021-Feb-08 17:55:21] [ info] [ JLink] - [Info ] [JLink ] JLINK_Close()
[2021-Feb-08 17:55:21] [debug] [Backend] - Segger Backend closed.
[2021-Feb-08 17:59:05] [ info] --------------------------------------------------------------------------------
[2021-Feb-08 17:59:05] [ info] nrfjprog nrf52 --recover --log
[2021-Feb-08 17:59:05] [ info] nrfjprog version 10.12.1
[2021-Feb-08 17:59:05] [ info] --------------------------------------------------------------------------------
[2021-Feb-08 18:03:41] [ info] --------------------------------------------------------------------------------
[2021-Feb-08 18:03:41] [ info] nrfjprog nrf52 --recover --log
[2021-Feb-08 18:03:41] [ info] nrfjprog version 10.12.1
[2021-Feb-08 18:03:41] [ info] --------------------------------------------------------------------------------
[2021-Feb-08 18:03:53] [ info] --------------------------------------------------------------------------------
[2021-Feb-08 18:03:53] [ info] nrfjprog -f nrf52 --recover --log
[2021-Feb-08 18:03:53] [ info] nrfjprog version 10.12.1
[2021-Feb-08 18:03:53] [ info] --------------------------------------------------------------------------------
[2021-Feb-08 18:03:53] [debug] [ nRF0x0] - open_dll
[2021-Feb-08 18:03:53] [ info] [ nRF0x0] - Load library at C:\Program Files (x86)\Nordic Semiconductor\nrf-command-line-tools\bin\JLINKARM_NRF52_NRFJPROG.dll.
[2021-Feb-08 18:03:53] [ info] [ nRF0x0] - Library loaded, loading member functions.
[2021-Feb-08 18:03:53] [ info] [ nRF0x0] - Member functions succesfully loaded.
[2021-Feb-08 18:03:53] [ info] [Backend] - Logger callback at 0x862020 registered in Segger backend logger.
[2021-Feb-08 18:03:53] [ info] [ JLink] - [Info ] [JLink ] Logger callback at 0x862020 registered in JLink logger.
[2021-Feb-08 18:03:53] [debug] [nRF520x0] - open
[2021-Feb-08 18:03:53] [debug] [Backend] - open_dll
[2021-Feb-08 18:03:53] [ info] [Backend] - No J-Link DLL path was provided. Attempting to auto detect.
[2021-Feb-08 18:03:53] [ info] [Backend] - Load library at C:\Program Files (x86)\SEGGER\JLink\JLinkARM.dll.
[2021-Feb-08 18:03:53] [ info] [Backend] - Library loaded, loading member functions.
[2021-Feb-08 18:03:53] [ info] [Backend] - Member functions succesfully loaded.
[2021-Feb-08 18:03:53] [debug] [Backend] - dll_version
[2021-Feb-08 18:03:53] [ info] [Backend] - Segger dll version 6.88.a loaded.
[2021-Feb-08 18:03:53] [debug] [ nRF0x0] - enum_emu_snr
[2021-Feb-08 18:03:53] [debug] [nRF520x0] - enum_emu_snr
[2021-Feb-08 18:03:53] [debug] [Backend] - is_connected_to_emu
[2021-Feb-08 18:03:53] [debug] [Backend] - enum_emu_snr
[2021-Feb-08 18:03:53] [debug] [Backend] - ---just_enum_emu_snr
[2021-Feb-08 18:03:53] [debug] [Backend] - ---just_get_num_emus
[2021-Feb-08 18:03:53] [debug] [Backend] - is_connected_to_emu
[2021-Feb-08 18:03:53] [debug] [ nRF0x0] - connect_to_emu_with_snr
[2021-Feb-08 18:03:53] [debug] [nRF520x0] - connect_to_emu_with_snr
[2021-Feb-08 18:03:53] [debug] [Backend] - is_connected_to_emu
[2021-Feb-08 18:03:53] [debug] [Backend] - connect_to_emu_with_snr
[2021-Feb-08 18:03:53] [debug] [Backend] - is_connected_to_emu
[2021-Feb-08 18:03:53] [debug] [Backend] - ---just_enum_emu_snr
[2021-Feb-08 18:03:53] [debug] [Backend] - ---just_get_num_emus
[2021-Feb-08 18:03:53] [debug] [Backend] - ---just_connect_to_emu_with_snr
[2021-Feb-08 18:03:53] [debug] [Backend] - ---just_connect_to_emu_without_snr
[2021-Feb-08 18:03:53] [ info] [Backend] - Segger logging enabled.
[2021-Feb-08 18:03:53] [ info] [ JLink] - [Info ] [JLink ] Firmware: J-Link OB-K22-NordicSemi compiled Jan 21 2020 17:33:01
[2021-Feb-08 18:03:53] [ info] [ JLink] - [Info ] [JLink ] Decompressing FW timestamp took 168 us
[2021-Feb-08 18:03:53] [ info] [ JLink] - [Info ] [JLink ] Hardware: V1.00
[2021-Feb-08 18:03:53] [ info] [ JLink] - [Info ] [JLink ] S/N: 960161431
[2021-Feb-08 18:03:53] [ info] [ JLink] - [Info ] [JLink ] OEM: SEGGER
[2021-Feb-08 18:03:53] [ info] [ JLink] - [Info ] [JLink ] Feature(s): RDI, FlashBP, FlashDL, JFlash, GDB
[2021-Feb-08 18:03:53] [ info] [ JLink] - [Info ] [JLink ] TELNET listener socket opened on port 19021
[2021-Feb-08 18:03:53] [ info] [ JLink] - [Info ] [JLink ] WEBSRV Starting webserver
[2021-Feb-08 18:03:53] [ info] [ JLink] - [Info ] [JLink ] WEBSRV Webserver running on local port 19080
[2021-Feb-08 18:03:53] [ info] [ JLink] - [Info ] [JLink ] - 21.082ms returns "O.K."
[2021-Feb-08 18:03:53] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 18:03:53] [ info] [ JLink] - [Info ] [JLink ] JLINK_Lock()
[2021-Feb-08 18:03:53] [ info] [ JLink] - [Info ] [JLink ] JLINK_GetHWStatus(...)
[2021-Feb-08 18:03:53] [ info] [ JLink] - [Info ] [JLink ] - 0.255ms returns 0
[2021-Feb-08 18:03:53] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 18:03:53] [ info] [ JLink] - [Info ] [JLink ] JLINK_ExecCommand("SetRestartOnClose = 0", ...).
[2021-Feb-08 18:03:53] [ info] [ JLink] - [Info ] [JLink ] - 0.012ms returns 0x01
[2021-Feb-08 18:03:53] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 18:03:53] [ info] [ JLink] - [Info ] [JLink ] JLINK_ExecCommand("DisableFlashDL", ...).
[2021-Feb-08 18:03:53] [ info] [ JLink] - [Info ] [JLink ] - 0.005ms returns 0x00
[2021-Feb-08 18:03:53] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 18:03:53] [ info] [ JLink] - [Info ] [JLink ] JLINK_ExecCommand("ExcludeFlashCacheRange 0x0-0xFFFFFFFF", ...).
[2021-Feb-08 18:03:53] [ info] [ JLink] - [Info ] [JLink ] - 0.004ms returns 0x00
[2021-Feb-08 18:03:53] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 18:03:53] [ info] [ JLink] - [Info ] [JLink ] JLINK_SetHookUnsecureDialog
[2021-Feb-08 18:03:53] [ info] [ JLink] - [Info ] [JLink ] JLINK_SetHookUnsecureDialog(...)
[2021-Feb-08 18:03:53] [ info] [ JLink] - [Info ] [JLink ] - 0.027ms returns 0
[2021-Feb-08 18:03:53] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 18:03:53] [ info] [ JLink] - [Info ] [JLink ] JLINK_TIF_Select(JLINKARM_TIF_SWD)
[2021-Feb-08 18:03:53] [ info] [ JLink] - [Info ] [JLink ] - 0.935ms returns 0x00
[2021-Feb-08 18:03:53] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 18:03:53] [ info] [ JLink] - [Info ] [JLink ] JLINK_SetSpeed(2000)
[2021-Feb-08 18:03:53] [ info] [ JLink] - [Info ] [JLink ] - 0.125ms
[2021-Feb-08 18:03:53] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 18:03:53] [ info] [ JLink] - [Info ] [JLink ] JLINK_GetSN()
[2021-Feb-08 18:03:53] [ info] [ JLink] - [Info ] [JLink ] - 0.010ms returns 960161431
[2021-Feb-08 18:03:53] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 18:03:53] [debug] [Backend] - ---just_load_core_data
[2021-Feb-08 18:03:53] [ info] [ JLink] - [Info ] [JLink ] JLINK_ExecCommand("CORESIGHT_SetIndexAHBAPToUse = 0", ...).
[2021-Feb-08 18:03:53] [ info] [ JLink] - [Info ] [JLink ] - 0.005ms returns 0x00
[2021-Feb-08 18:03:53] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 18:03:53] [ info] [ JLink] - [Info ] [JLink ] JLINK_ExecCommand("device = nRF52", ...).
[2021-Feb-08 18:03:53] [ info] [ JLink] - [Info ] [JLink ] XML file found at: C:\Program Files (x86)\SEGGER\JLink\JLinkDevices.xml
[2021-Feb-08 18:03:53] [ info] [ JLink] - [Info ] [JLink ] C:\Program Files (x86)\SEGGER\JLink\JLinkDevices.xml evaluated successfully.
[2021-Feb-08 18:03:53] [ info] [ JLink] - [Info ] [JLink ] Device "NRF52" selected.
[2021-Feb-08 18:03:53] [ info] [ JLink] - [Info ] [JLink ] Device "NRF52" selected.
[2021-Feb-08 18:03:53] [ info] [ JLink] - [Info ] [JLink ] - 45.087ms returns 0x00
[2021-Feb-08 18:03:53] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 18:03:53] [debug] [Backend] - read_debug_port_idr
[2021-Feb-08 18:03:53] [debug] [Backend] - read_debug_port_register
[2021-Feb-08 18:03:53] [debug] [Backend] - ---just_read_debug_port_register
[2021-Feb-08 18:03:53] [debug] [Backend] - coresight_configure
[2021-Feb-08 18:03:53] [ info] [ JLink] - [Info ] [JLink ] JLINK_CORESIGHT_Configure()
[2021-Feb-08 18:03:53] [ info] [ JLink] - [Info ] [JLink ] - 100.953ms returns 0
[2021-Feb-08 18:03:53] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 18:03:53] [debug] [Backend] - ---just_select_debug_port_register
[2021-Feb-08 18:03:53] [debug] [Backend] - Select AP 255, DP Bank 0, AP Bank 255
[2021-Feb-08 18:03:53] [ info] [ JLink] - [Info ] [JLink ] JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)
[2021-Feb-08 18:03:53] [ info] [ JLink] - [Info ] [JLink ] - 1.073ms returns -1
[2021-Feb-08 18:03:53] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 18:03:53] [ info] [Backend] - JLinkARM.dll reported "-1", an unknown error.
[2021-Feb-08 18:03:53] [debug] [Backend] - ---just_abort_debug_action
[2021-Feb-08 18:03:53] [ info] [Backend] - Attempting to clear any configuration errors in debug port before closing connection.
[2021-Feb-08 18:03:53] [ info] [ JLink] - [Info ] [JLink ] JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2021-Feb-08 18:03:53] [ info] [ JLink] - [Info ] [JLink ] - 0.826ms returns -1
[2021-Feb-08 18:03:53] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 18:03:53] [ info] [Backend] - JLinkARM.dll reported "-1", an unknown error.
[2021-Feb-08 18:03:53] [ info] [ JLink] - [Info ] [JLink ] - 0.078ms
[2021-Feb-08 18:03:53] [debug] [ nRF0x0] - close_dll
[2021-Feb-08 18:03:53] [debug] [nRF520x0] - close
[2021-Feb-08 18:03:53] [debug] [Backend] - is_connected_to_emu
[2021-Feb-08 18:03:53] [ info] [ JLink] - [Info ] [JLink ] JLINK_IsOpen()
[2021-Feb-08 18:03:53] [ info] [ JLink] - [Info ] [JLink ] - 0.036ms returns 0x01
[2021-Feb-08 18:03:53] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 18:03:53] [ info] [ JLink] - [Info ] [JLink ] JLINK_Lock()
[2021-Feb-08 18:03:53] [debug] [Backend] - close
[2021-Feb-08 18:03:53] [debug] [Backend] - disconnect_from_emu
[2021-Feb-08 18:03:53] [debug] [Backend] - ---just_disconnect_from_emu
[2021-Feb-08 18:03:53] [debug] [Backend] - is_connected_to_device
[2021-Feb-08 18:03:53] [ info] [ JLink] - [Info ] [JLink ] JLINK_IsConnected()
[2021-Feb-08 18:03:53] [ info] [ JLink] - [Info ] [JLink ] - 0.038ms returns FALSE
[2021-Feb-08 18:03:53] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 18:03:53] [debug] [Backend] - ---just_is_debug_region_powered
[2021-Feb-08 18:03:53] [debug] [Backend] - ---just_read_debug_port_register
[2021-Feb-08 18:03:53] [debug] [Backend] - ---just_select_debug_port_register
[2021-Feb-08 18:03:53] [debug] [Backend] - Select AP 255, DP Bank 0, AP Bank 255
[2021-Feb-08 18:03:53] [ info] [ JLink] - [Info ] [JLink ] JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)
[2021-Feb-08 18:03:53] [ info] [ JLink] - [Info ] [JLink ] - 0.864ms returns -1
[2021-Feb-08 18:03:53] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 18:03:53] [ info] [Backend] - JLinkARM.dll reported "-1", an unknown error.
[2021-Feb-08 18:03:53] [debug] [Backend] - ---just_abort_debug_action
[2021-Feb-08 18:03:53] [ info] [Backend] - Attempting to clear any configuration errors in debug port before closing connection.
[2021-Feb-08 18:03:53] [ info] [ JLink] - [Info ] [JLink ] JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2021-Feb-08 18:03:53] [ info] [ JLink] - [Info ] [JLink ] - 0.857ms returns -1
[2021-Feb-08 18:03:53] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 18:03:53] [ info] [Backend] - JLinkARM.dll reported "-1", an unknown error.
[2021-Feb-08 18:03:53] [ info] [ JLink] - [Info ] [JLink ] - 0.080ms
[2021-Feb-08 18:03:53] [ info] [ JLink] - [Info ] [JLink ] JLINK_Close()
[2021-Feb-08 18:03:53] [debug] [Backend] - Segger Backend closed.
[2021-Feb-08 18:03:53] [debug] [nRF520x0] - nRF family DLL closed
[2021-Feb-08 18:03:58] [ info] --------------------------------------------------------------------------------
[2021-Feb-08 18:03:58] [ info] nrfjprog -f nrf52 --recover --log
[2021-Feb-08 18:03:58] [ info] nrfjprog version 10.12.1
[2021-Feb-08 18:03:58] [ info] --------------------------------------------------------------------------------
[2021-Feb-08 18:03:58] [debug] [ nRF0x0] - open_dll
[2021-Feb-08 18:03:58] [ info] [ nRF0x0] - Load library at C:\Program Files (x86)\Nordic Semiconductor\nrf-command-line-tools\bin\JLINKARM_NRF52_NRFJPROG.dll.
[2021-Feb-08 18:03:58] [ info] [ nRF0x0] - Library loaded, loading member functions.
[2021-Feb-08 18:03:58] [ info] [ nRF0x0] - Member functions succesfully loaded.
[2021-Feb-08 18:03:58] [ info] [Backend] - Logger callback at 0x862020 registered in Segger backend logger.
[2021-Feb-08 18:03:58] [ info] [ JLink] - [Info ] [JLink ] Logger callback at 0x862020 registered in JLink logger.
[2021-Feb-08 18:03:58] [debug] [nRF520x0] - open
[2021-Feb-08 18:03:58] [debug] [Backend] - open_dll
[2021-Feb-08 18:03:58] [ info] [Backend] - No J-Link DLL path was provided. Attempting to auto detect.
[2021-Feb-08 18:03:58] [ info] [Backend] - Load library at C:\Program Files (x86)\SEGGER\JLink\JLinkARM.dll.
[2021-Feb-08 18:03:58] [ info] [Backend] - Library loaded, loading member functions.
[2021-Feb-08 18:03:58] [ info] [Backend] - Member functions succesfully loaded.
[2021-Feb-08 18:03:58] [debug] [Backend] - dll_version
[2021-Feb-08 18:03:58] [ info] [Backend] - Segger dll version 6.88.a loaded.
[2021-Feb-08 18:03:58] [debug] [ nRF0x0] - enum_emu_snr
[2021-Feb-08 18:03:58] [debug] [nRF520x0] - enum_emu_snr
[2021-Feb-08 18:03:58] [debug] [Backend] - is_connected_to_emu
[2021-Feb-08 18:03:58] [debug] [Backend] - enum_emu_snr
[2021-Feb-08 18:03:58] [debug] [Backend] - ---just_enum_emu_snr
[2021-Feb-08 18:03:58] [debug] [Backend] - ---just_get_num_emus
[2021-Feb-08 18:03:58] [debug] [Backend] - is_connected_to_emu
[2021-Feb-08 18:03:58] [debug] [ nRF0x0] - connect_to_emu_with_snr
[2021-Feb-08 18:03:58] [debug] [nRF520x0] - connect_to_emu_with_snr
[2021-Feb-08 18:03:58] [debug] [Backend] - is_connected_to_emu
[2021-Feb-08 18:03:58] [debug] [Backend] - connect_to_emu_with_snr
[2021-Feb-08 18:03:58] [debug] [Backend] - is_connected_to_emu
[2021-Feb-08 18:03:58] [debug] [Backend] - ---just_enum_emu_snr
[2021-Feb-08 18:03:58] [debug] [Backend] - ---just_get_num_emus
[2021-Feb-08 18:03:58] [debug] [Backend] - ---just_connect_to_emu_with_snr
[2021-Feb-08 18:03:58] [debug] [Backend] - ---just_connect_to_emu_without_snr
[2021-Feb-08 18:03:58] [ info] [Backend] - Segger logging enabled.
[2021-Feb-08 18:03:58] [ info] [ JLink] - [Info ] [JLink ] Firmware: J-Link OB-K22-NordicSemi compiled Jan 21 2020 17:33:01
[2021-Feb-08 18:03:58] [ info] [ JLink] - [Info ] [JLink ] Decompressing FW timestamp took 169 us
[2021-Feb-08 18:03:58] [ info] [ JLink] - [Info ] [JLink ] Hardware: V1.00
[2021-Feb-08 18:03:58] [ info] [ JLink] - [Info ] [JLink ] S/N: 960161431
[2021-Feb-08 18:03:58] [ info] [ JLink] - [Info ] [JLink ] OEM: SEGGER
[2021-Feb-08 18:03:58] [ info] [ JLink] - [Info ] [JLink ] Feature(s): RDI, FlashBP, FlashDL, JFlash, GDB
[2021-Feb-08 18:03:58] [ info] [ JLink] - [Info ] [JLink ] TELNET listener socket opened on port 19021
[2021-Feb-08 18:03:58] [ info] [ JLink] - [Info ] [JLink ] WEBSRV Starting webserver
[2021-Feb-08 18:03:58] [ info] [ JLink] - [Info ] [JLink ] WEBSRV Webserver running on local port 19080
[2021-Feb-08 18:03:58] [ info] [ JLink] - [Info ] [JLink ] - 20.992ms returns "O.K."
[2021-Feb-08 18:03:58] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 18:03:58] [ info] [ JLink] - [Info ] [JLink ] JLINK_Lock()
[2021-Feb-08 18:03:58] [ info] [ JLink] - [Info ] [JLink ] JLINK_GetHWStatus(...)
[2021-Feb-08 18:03:58] [ info] [ JLink] - [Info ] [JLink ] - 0.348ms returns 0
[2021-Feb-08 18:03:58] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 18:03:58] [ info] [ JLink] - [Info ] [JLink ] JLINK_ExecCommand("SetRestartOnClose = 0", ...).
[2021-Feb-08 18:03:58] [ info] [ JLink] - [Info ] [JLink ] - 0.011ms returns 0x01
[2021-Feb-08 18:03:58] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 18:03:58] [ info] [ JLink] - [Info ] [JLink ] JLINK_ExecCommand("DisableFlashDL", ...).
[2021-Feb-08 18:03:58] [ info] [ JLink] - [Info ] [JLink ] - 0.005ms returns 0x00
[2021-Feb-08 18:03:58] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 18:03:58] [ info] [ JLink] - [Info ] [JLink ] JLINK_ExecCommand("ExcludeFlashCacheRange 0x0-0xFFFFFFFF", ...).
[2021-Feb-08 18:03:58] [ info] [ JLink] - [Info ] [JLink ] - 0.005ms returns 0x00
[2021-Feb-08 18:03:58] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 18:03:58] [ info] [ JLink] - [Info ] [JLink ] JLINK_SetHookUnsecureDialog
[2021-Feb-08 18:03:58] [ info] [ JLink] - [Info ] [JLink ] JLINK_SetHookUnsecureDialog(...)
[2021-Feb-08 18:03:58] [ info] [ JLink] - [Info ] [JLink ] - 0.027ms returns 0
[2021-Feb-08 18:03:58] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 18:03:58] [ info] [ JLink] - [Info ] [JLink ] JLINK_TIF_Select(JLINKARM_TIF_SWD)
[2021-Feb-08 18:03:58] [ info] [ JLink] - [Info ] [JLink ] - 0.811ms returns 0x00
[2021-Feb-08 18:03:58] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 18:03:58] [ info] [ JLink] - [Info ] [JLink ] JLINK_SetSpeed(2000)
[2021-Feb-08 18:03:58] [ info] [ JLink] - [Info ] [JLink ] - 0.127ms
[2021-Feb-08 18:03:58] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 18:03:58] [ info] [ JLink] - [Info ] [JLink ] JLINK_GetSN()
[2021-Feb-08 18:03:58] [ info] [ JLink] - [Info ] [JLink ] - 0.009ms returns 960161431
[2021-Feb-08 18:03:58] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 18:03:58] [debug] [Backend] - ---just_load_core_data
[2021-Feb-08 18:03:58] [ info] [ JLink] - [Info ] [JLink ] JLINK_ExecCommand("CORESIGHT_SetIndexAHBAPToUse = 0", ...).
[2021-Feb-08 18:03:58] [ info] [ JLink] - [Info ] [JLink ] - 0.005ms returns 0x00
[2021-Feb-08 18:03:58] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 18:03:58] [ info] [ JLink] - [Info ] [JLink ] JLINK_ExecCommand("device = nRF52", ...).
[2021-Feb-08 18:03:58] [ info] [ JLink] - [Info ] [JLink ] XML file found at: C:\Program Files (x86)\SEGGER\JLink\JLinkDevices.xml
[2021-Feb-08 18:03:58] [ info] [ JLink] - [Info ] [JLink ] C:\Program Files (x86)\SEGGER\JLink\JLinkDevices.xml evaluated successfully.
[2021-Feb-08 18:03:58] [ info] [ JLink] - [Info ] [JLink ] Device "NRF52" selected.
[2021-Feb-08 18:03:58] [ info] [ JLink] - [Info ] [JLink ] Device "NRF52" selected.
[2021-Feb-08 18:03:58] [ info] [ JLink] - [Info ] [JLink ] - 37.758ms returns 0x00
[2021-Feb-08 18:03:58] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 18:03:58] [debug] [Backend] - read_debug_port_idr
[2021-Feb-08 18:03:58] [debug] [Backend] - read_debug_port_register
[2021-Feb-08 18:03:58] [debug] [Backend] - ---just_read_debug_port_register
[2021-Feb-08 18:03:58] [debug] [Backend] - coresight_configure
[2021-Feb-08 18:03:58] [ info] [ JLink] - [Info ] [JLink ] JLINK_CORESIGHT_Configure()
[2021-Feb-08 18:03:58] [ info] [ JLink] - [Info ] [JLink ] - 100.797ms returns 0
[2021-Feb-08 18:03:58] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 18:03:58] [debug] [Backend] - ---just_select_debug_port_register
[2021-Feb-08 18:03:58] [debug] [Backend] - Select AP 255, DP Bank 0, AP Bank 255
[2021-Feb-08 18:03:58] [ info] [ JLink] - [Info ] [JLink ] JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)
[2021-Feb-08 18:03:58] [ info] [ JLink] - [Info ] [JLink ] - 1.023ms returns -1
[2021-Feb-08 18:03:58] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 18:03:58] [ info] [Backend] - JLinkARM.dll reported "-1", an unknown error.
[2021-Feb-08 18:03:58] [debug] [Backend] - ---just_abort_debug_action
[2021-Feb-08 18:03:58] [ info] [Backend] - Attempting to clear any configuration errors in debug port before closing connection.
[2021-Feb-08 18:03:58] [ info] [ JLink] - [Info ] [JLink ] JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2021-Feb-08 18:03:58] [ info] [ JLink] - [Info ] [JLink ] - 0.764ms returns -1
[2021-Feb-08 18:03:58] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 18:03:58] [ info] [Backend] - JLinkARM.dll reported "-1", an unknown error.
[2021-Feb-08 18:03:58] [ info] [ JLink] - [Info ] [JLink ] - 0.070ms
[2021-Feb-08 18:03:58] [debug] [ nRF0x0] - close_dll
[2021-Feb-08 18:03:58] [debug] [nRF520x0] - close
[2021-Feb-08 18:03:58] [debug] [Backend] - is_connected_to_emu
[2021-Feb-08 18:03:58] [ info] [ JLink] - [Info ] [JLink ] JLINK_IsOpen()
[2021-Feb-08 18:03:58] [ info] [ JLink] - [Info ] [JLink ] - 0.041ms returns 0x01
[2021-Feb-08 18:03:58] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 18:03:58] [ info] [ JLink] - [Info ] [JLink ] JLINK_Lock()
[2021-Feb-08 18:03:58] [debug] [Backend] - close
[2021-Feb-08 18:03:58] [debug] [Backend] - disconnect_from_emu
[2021-Feb-08 18:03:58] [debug] [Backend] - ---just_disconnect_from_emu
[2021-Feb-08 18:03:58] [debug] [Backend] - is_connected_to_device
[2021-Feb-08 18:03:58] [ info] [ JLink] - [Info ] [JLink ] JLINK_IsConnected()
[2021-Feb-08 18:03:58] [ info] [ JLink] - [Info ] [JLink ] - 0.031ms returns FALSE
[2021-Feb-08 18:03:58] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 18:03:58] [debug] [Backend] - ---just_is_debug_region_powered
[2021-Feb-08 18:03:58] [debug] [Backend] - ---just_read_debug_port_register
[2021-Feb-08 18:03:58] [debug] [Backend] - ---just_select_debug_port_register
[2021-Feb-08 18:03:58] [debug] [Backend] - Select AP 255, DP Bank 0, AP Bank 255
[2021-Feb-08 18:03:58] [ info] [ JLink] - [Info ] [JLink ] JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)
[2021-Feb-08 18:03:58] [ info] [ JLink] - [Info ] [JLink ] - 0.789ms returns -1
[2021-Feb-08 18:03:58] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 18:03:58] [ info] [Backend] - JLinkARM.dll reported "-1", an unknown error.
[2021-Feb-08 18:03:58] [debug] [Backend] - ---just_abort_debug_action
[2021-Feb-08 18:03:58] [ info] [Backend] - Attempting to clear any configuration errors in debug port before closing connection.
[2021-Feb-08 18:03:58] [ info] [ JLink] - [Info ] [JLink ] JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
[2021-Feb-08 18:03:58] [ info] [ JLink] - [Info ] [JLink ] - 0.777ms returns -1
[2021-Feb-08 18:03:58] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
[2021-Feb-08 18:03:58] [ info] [Backend] - JLinkARM.dll reported "-1", an unknown error.
[2021-Feb-08 18:03:58] [ info] [ JLink] - [Info ] [JLink ] - 0.060ms
[2021-Feb-08 18:03:58] [ info] [ JLink] - [Info ] [JLink ] JLINK_Close()
[2021-Feb-08 18:03:58] [debug] [Backend] - Segger Backend closed.
[2021-Feb-08 18:03:58] [debug] [nRF520x0] - nRF family DLL closed

Please help. I will appreciate the help.

Thank you.

Parents
  • Thanks for the reply. The issue still persists and This is what I got:

    SEGGER J-Link Commander V6.88a (Compiled Nov 18 2020 15:10:56)
    DLL version V6.88a, compiled Nov 18 2020 15:09:23

    Connecting to J-Link via USB...O.K.
    Firmware: J-Link OB-K22-NordicSemi compiled Jan 21 2020 17:33:01
    Hardware version: V1.00
    S/N: 960161431
    License(s): RDI, FlashBP, FlashDL, JFlash, GDB
    VTref=3.300V


    Type "connect" to establish a target connection, '?' for help
    J-Link>connect
    Please specify device / core. <Default>: NRF52
    Type '?' for selection dialog
    Device>NRF52
    Please specify target interface:
    J) JTAG (Default)
    S) SWD
    T) cJTAG
    TIF>S
    Specify target interface speed [kHz]. <Default>: 4000 kHz
    Speed>4000
    Device "NRF52" selected.


    Connecting to target via SWD
    InitTarget() start
    InitTarget() end
    InitTarget() start
    InitTarget() end
    InitTarget() start
    InitTarget() end
    InitTarget() start
    InitTarget() end
    Cannot connect to target.

  • Can you just double check that the voltage on the custom board is still 3.3V? 

    Have you tried to do a power cycle of the PC, and only used the command line tools after restart? 

    In general the PDK is no longer recommended for development due to using early engineering samples of the nRF5340, the final DK is now available for order. Though I don't see how that should affect what you are seeing. Do you have any nRF52-DK that you can try for comparison?

  • I have switched to nRF52-DK.

    Hi. I am using 3v for the board. I also tried with 3.3v. But still having the same issue.

    I tried to power cycle the PC and use only command line tools still have the same issue.

    SEGGER J-Link Commander V6.88a (Compiled Nov 18 2020 15:10:56)
    DLL version V6.88a, compiled Nov 18 2020 15:09:23

    Connecting to J-Link via USB...O.K.
    Firmware: J-Link OB-SAM3U128-V2-NordicSemi compiled Mar 17 2020 14:43:00
    Hardware version: V1.00
    S/N: 683878904
    License(s): RDI, FlashBP, FlashDL, JFlash, GDB
    VTref=3.300V


    Type "connect" to establish a target connection, '?' for help
    J-Link>connect
    Please specify device / core. <Default>: NRF52
    Type '?' for selection dialog
    Device>nrf52
    Please specify target interface:
    J) JTAG (Default)
    S) SWD
    T) cJTAG
    TIF>S
    Specify target interface speed [kHz]. <Default>: 4000 kHz
    Speed>4000
    Device "NRF52" selected.


    Connecting to target via SWD
    InitTarget() start
    InitTarget() end
    InitTarget() start
    InitTarget() end
    InitTarget() start
    InitTarget() end
    InitTarget() start
    InitTarget() end
    Cannot connect to target.
    J-Link>

  • I think it's a electrical problem of the target board, are you sure you have followed the reference schematic and layout?

    Kenneth

  • Yes. Previously, I was able to program but after the sniffer hex file was programmed only on the softdevice address location. This problem occur.

  • I don't have any good suggestion here than to double check the pins and voltages on the board. If you are still not able to make it work I guess you can send us a board and we can try on our end also.

    Kenneth

Reply Children
No Data
Related