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

No Cortex-M SW Device Found after program softdevice

Hello, the chip I use is nrf52810 QCAA, when I use j-flash lite to earse the whole chip, it success, then I program the flash_s112_nrf52_7.2.0_softdevice into the chip by keil5, it also success, but when I program my code into chip, it failed and shows No Cortex-M SW Device Found. After that, I can't earse the whole chip by j-flash lite which shows "could not connect  to target" and I even can't program the flash_s112_nrf52_7.2.0_softdevice which shows No Cortex-M SW Device Found. what should I do, the example I use is nRF5_SDK_17.0.2_d674dde\examples\ble_peripheral\ble_app_hids_keyboard. Thank you!

  • [2021-Apr-13 21:02:25] [ info] --------------------------------------------------------------------------------
    [2021-Apr-13 21:02:25] [ info] nrfjprog --recover --log
    [2021-Apr-13 21:02:25] [ info] nrfjprog version 10.12.1
    [2021-Apr-13 21:02:25] [ info] --------------------------------------------------------------------------------
    [2021-Apr-13 21:02:25] [debug] [ nRF0x0] - open_dll
    [2021-Apr-13 21:02:25] [ info] [ nRF0x0] - Load library at C:\Program Files\Nordic Semiconductor\nrf-command-line-tools\bin\JLINKARM_UNKNOWN_NRFJPROG.dll.
    [2021-Apr-13 21:02:25] [ info] [ nRF0x0] - Library loaded, loading member functions.
    [2021-Apr-13 21:02:25] [ info] [ nRF0x0] - Member functions succesfully loaded.
    [2021-Apr-13 21:02:25] [ info] [Backend] - Logger callback at 0x7ff6e17956f0 registered in Segger backend logger.
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] Logger callback at 0x7ff6e17956f0 registered in JLink logger.
    [2021-Apr-13 21:02:25] [debug] [nRFUnknown] - Just_open_dll_tagged_callback
    [2021-Apr-13 21:02:25] [debug] [Backend] - open_dll
    [2021-Apr-13 21:02:25] [ info] [Backend] - No J-Link DLL path was provided. Attempting to auto detect.
    [2021-Apr-13 21:02:25] [ info] [Backend] - Load library at C:\Program Files (x86)\SEGGER\JLink\JLink_x64.dll.
    [2021-Apr-13 21:02:25] [ info] [Backend] - Library loaded, loading member functions.
    [2021-Apr-13 21:02:25] [ info] [Backend] - Member functions succesfully loaded.
    [2021-Apr-13 21:02:25] [debug] [Backend] - dll_version
    [2021-Apr-13 21:02:25] [ info] [Backend] - Segger dll version 6.88.a loaded.
    [2021-Apr-13 21:02:25] [debug] [Backend] - set_core_data
    [2021-Apr-13 21:02:25] [debug] [ nRF0x0] - enum_emu_snr
    [2021-Apr-13 21:02:25] [debug] [nRFUnknown] - Just_enum_emu_snr
    [2021-Apr-13 21:02:25] [debug] [Backend] - enum_emu_snr
    [2021-Apr-13 21:02:25] [debug] [Backend] - ---just_enum_emu_snr
    [2021-Apr-13 21:02:25] [debug] [Backend] - ---just_get_num_emus
    [2021-Apr-13 21:02:25] [debug] [ nRF0x0] - connect_to_emu_with_snr
    [2021-Apr-13 21:02:25] [debug] [nRFUnknown] - Just_connect_to_emu_with_snr
    [2021-Apr-13 21:02:25] [debug] [Backend] - connect_to_emu_with_snr
    [2021-Apr-13 21:02:25] [debug] [Backend] - is_connected_to_emu
    [2021-Apr-13 21:02:25] [debug] [Backend] - ---just_enum_emu_snr
    [2021-Apr-13 21:02:25] [debug] [Backend] - ---just_get_num_emus
    [2021-Apr-13 21:02:25] [debug] [Backend] - ---just_connect_to_emu_with_snr
    [2021-Apr-13 21:02:25] [debug] [Backend] - ---just_connect_to_emu_without_snr
    [2021-Apr-13 21:02:25] [ info] [Backend] - Segger logging enabled.
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] Firmware: J-Link ARM-OB STM32 compiled Aug 22 2012 19:52:04
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] Hardware: V7.00
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] S/N: 20090930
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] OEM: SEGGER
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] Feature(s): RDI,FlashDL,FlashBP,JFlash,GDBFull
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] TELNET listener socket opened on port 19021
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] WEBSRV Starting webserver
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] WEBSRV Webserver running on local port 19080
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] - 6.558ms returns "O.K."
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] JLINK_GetHWStatus(...)
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] - 0.222ms returns 0
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] JLINK_ExecCommand("SetRestartOnClose = 0", ...).
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] - 0.003ms returns 0x01
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] JLINK_ExecCommand("DisableFlashDL", ...).
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] - 0.004ms returns 0x00
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] JLINK_ExecCommand("ExcludeFlashCacheRange 0x0-0xFFFFFFFF", ...).
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] - 0.003ms returns 0x00
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] JLINK_SetHookUnsecureDialog
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] JLINK_SetHookUnsecureDialog(...)
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] - 0.013ms returns 0
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] JLINK_TIF_Select(JLINKARM_TIF_SWD)
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] - 0.672ms returns 0x00
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] JLINK_SetSpeed(2000)
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] - 0.122ms
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] JLINK_GetSN()
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] - 0.005ms returns 20090930
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
    [2021-Apr-13 21:02:25] [debug] [Backend] - ---just_load_core_data
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] JLINK_ExecCommand("CORESIGHT_SetIndexAHBAPToUse = 0", ...).
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] - 0.004ms returns 0x00
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] JLINK_ExecCommand("device = Cortex-M4", ...).
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] XML file found at: C:\Program Files (x86)\SEGGER\JLink\JLinkDevices.xml
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] C:\Program Files (x86)\SEGGER\JLink\JLinkDevices.xml evaluated successfully.
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] Device "CORTEX-M4" selected.
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] Device "CORTEX-M4" selected.
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] - 33.389ms returns 0x00
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
    [2021-Apr-13 21:02:25] [debug] [ nRF0x0] - read_connected_emu_snr
    [2021-Apr-13 21:02:25] [debug] [nRFUnknown] - Just_read_connected_emu_snr
    [2021-Apr-13 21:02:25] [debug] [Backend] - read_connected_emu_snr
    [2021-Apr-13 21:02:25] [debug] [Backend] - is_connected_to_emu
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] JLINK_IsOpen()
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] - 0.007ms returns 0x01
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
    [2021-Apr-13 21:02:25] [debug] [ nRF0x0] - read_device_family
    [2021-Apr-13 21:02:25] [debug] [nRFUnknown] - Just_read_device_family
    [2021-Apr-13 21:02:25] [debug] [Backend] - is_connected_to_emu
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] JLINK_IsOpen()
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] - 0.006ms returns 0x01
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] JLINK_Lock()
    [2021-Apr-13 21:02:25] [debug] [Backend] - read_debug_port_idr
    [2021-Apr-13 21:02:25] [debug] [Backend] - read_debug_port_register
    [2021-Apr-13 21:02:25] [debug] [Backend] - ---just_read_debug_port_register
    [2021-Apr-13 21:02:25] [debug] [Backend] - coresight_configure
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] JLINK_CORESIGHT_Configure()
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] - 1.693ms returns 0
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
    [2021-Apr-13 21:02:25] [debug] [Backend] - ---just_select_debug_port_register
    [2021-Apr-13 21:02:25] [debug] [Backend] - Select AP 255, DP Bank 0, AP Bank 255
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] - 0.224ms returns -1
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
    [2021-Apr-13 21:02:25] [ info] [Backend] - JLinkARM.dll reported "-1", an unknown error.
    [2021-Apr-13 21:02:25] [debug] [Backend] - ---just_abort_debug_action
    [2021-Apr-13 21:02:25] [ info] [Backend] - Attempting to clear any configuration errors in debug port before closing connection.
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] - 0.240ms returns -1
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
    [2021-Apr-13 21:02:25] [ info] [Backend] - JLinkARM.dll reported "-1", an unknown error.
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] - 0.012ms
    [2021-Apr-13 21:02:25] [debug] [ nRF0x0] - close_dll
    [2021-Apr-13 21:02:25] [debug] [nRFUnknown] - Just_close_dll
    [2021-Apr-13 21:02:25] [debug] [Backend] - close
    [2021-Apr-13 21:02:25] [debug] [Backend] - disconnect_from_emu
    [2021-Apr-13 21:02:25] [debug] [Backend] - is_connected_to_emu
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] JLINK_IsOpen()
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] - 0.005ms returns 0x01
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
    [2021-Apr-13 21:02:25] [debug] [Backend] - ---just_disconnect_from_emu
    [2021-Apr-13 21:02:25] [debug] [Backend] - is_connected_to_device
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] JLINK_IsConnected()
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] - 0.005ms returns FALSE
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
    [2021-Apr-13 21:02:25] [debug] [Backend] - ---just_is_debug_region_powered
    [2021-Apr-13 21:02:25] [debug] [Backend] - ---just_read_debug_port_register
    [2021-Apr-13 21:02:25] [debug] [Backend] - is_connected_to_emu
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] JLINK_IsOpen()
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] - 0.005ms returns 0x01
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] JLINK_Lock()
    [2021-Apr-13 21:02:25] [debug] [Backend] - ---just_select_debug_port_register
    [2021-Apr-13 21:02:25] [debug] [Backend] - Select AP 255, DP Bank 0, AP Bank 255
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] - 0.226ms returns -1
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
    [2021-Apr-13 21:02:25] [ info] [Backend] - JLinkARM.dll reported "-1", an unknown error.
    [2021-Apr-13 21:02:25] [debug] [Backend] - ---just_abort_debug_action
    [2021-Apr-13 21:02:25] [ info] [Backend] - Attempting to clear any configuration errors in debug port before closing connection.
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] - 0.254ms returns -1
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
    [2021-Apr-13 21:02:25] [ info] [Backend] - JLinkARM.dll reported "-1", an unknown error.
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] - 0.012ms
    [2021-Apr-13 21:02:25] [ info] [ JLink] - [Info ] [JLink ] JLINK_Close()
    [2021-Apr-13 21:02:25] [debug] [Backend] - Segger Backend closed.
    [2021-Apr-13 21:03:43] [ info] --------------------------------------------------------------------------------
    [2021-Apr-13 21:03:43] [ info] nrfjprog --recover --log
    [2021-Apr-13 21:03:43] [ info] nrfjprog version 10.12.1
    [2021-Apr-13 21:03:43] [ info] --------------------------------------------------------------------------------
    [2021-Apr-13 21:03:43] [debug] [ nRF0x0] - open_dll
    [2021-Apr-13 21:03:43] [ info] [ nRF0x0] - Load library at C:\Program Files\Nordic Semiconductor\nrf-command-line-tools\bin\JLINKARM_UNKNOWN_NRFJPROG.dll.
    [2021-Apr-13 21:03:43] [ info] [ nRF0x0] - Library loaded, loading member functions.
    [2021-Apr-13 21:03:43] [ info] [ nRF0x0] - Member functions succesfully loaded.
    [2021-Apr-13 21:03:43] [ info] [Backend] - Logger callback at 0x7ff6e17956f0 registered in Segger backend logger.
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] Logger callback at 0x7ff6e17956f0 registered in JLink logger.
    [2021-Apr-13 21:03:43] [debug] [nRFUnknown] - Just_open_dll_tagged_callback
    [2021-Apr-13 21:03:43] [debug] [Backend] - open_dll
    [2021-Apr-13 21:03:43] [ info] [Backend] - No J-Link DLL path was provided. Attempting to auto detect.
    [2021-Apr-13 21:03:43] [ info] [Backend] - Load library at C:\Program Files (x86)\SEGGER\JLink\JLink_x64.dll.
    [2021-Apr-13 21:03:43] [ info] [Backend] - Library loaded, loading member functions.
    [2021-Apr-13 21:03:43] [ info] [Backend] - Member functions succesfully loaded.
    [2021-Apr-13 21:03:43] [debug] [Backend] - dll_version
    [2021-Apr-13 21:03:43] [ info] [Backend] - Segger dll version 6.88.a loaded.
    [2021-Apr-13 21:03:43] [debug] [Backend] - set_core_data
    [2021-Apr-13 21:03:43] [debug] [ nRF0x0] - enum_emu_snr
    [2021-Apr-13 21:03:43] [debug] [nRFUnknown] - Just_enum_emu_snr
    [2021-Apr-13 21:03:43] [debug] [Backend] - enum_emu_snr
    [2021-Apr-13 21:03:43] [debug] [Backend] - ---just_enum_emu_snr
    [2021-Apr-13 21:03:43] [debug] [Backend] - ---just_get_num_emus
    [2021-Apr-13 21:03:43] [debug] [ nRF0x0] - connect_to_emu_with_snr
    [2021-Apr-13 21:03:43] [debug] [nRFUnknown] - Just_connect_to_emu_with_snr
    [2021-Apr-13 21:03:43] [debug] [Backend] - connect_to_emu_with_snr
    [2021-Apr-13 21:03:43] [debug] [Backend] - is_connected_to_emu
    [2021-Apr-13 21:03:43] [debug] [Backend] - ---just_enum_emu_snr
    [2021-Apr-13 21:03:43] [debug] [Backend] - ---just_get_num_emus
    [2021-Apr-13 21:03:43] [debug] [Backend] - ---just_connect_to_emu_with_snr
    [2021-Apr-13 21:03:43] [debug] [Backend] - ---just_connect_to_emu_without_snr
    [2021-Apr-13 21:03:43] [ info] [Backend] - Segger logging enabled.
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] Firmware: J-Link ARM-OB STM32 compiled Aug 22 2012 19:52:04
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] Hardware: V7.00
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] S/N: 20090930
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] OEM: SEGGER
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] Feature(s): RDI,FlashDL,FlashBP,JFlash,GDBFull
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] TELNET listener socket opened on port 19021
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] WEBSRV Starting webserver
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] WEBSRV Webserver running on local port 19080
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] - 12.178ms returns "O.K."
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] JLINK_GetHWStatus(...)
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] - 0.354ms returns 0
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] JLINK_ExecCommand("SetRestartOnClose = 0", ...).
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] - 0.008ms returns 0x01
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] JLINK_ExecCommand("DisableFlashDL", ...).
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] - 0.003ms returns 0x00
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] JLINK_ExecCommand("ExcludeFlashCacheRange 0x0-0xFFFFFFFF", ...).
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] - 0.003ms returns 0x00
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] JLINK_SetHookUnsecureDialog
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] JLINK_SetHookUnsecureDialog(...)
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] - 0.038ms returns 0
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] JLINK_TIF_Select(JLINKARM_TIF_SWD)
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] - 0.602ms returns 0x00
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] JLINK_SetSpeed(2000)
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] - 0.121ms
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] JLINK_GetSN()
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] - 0.017ms returns 20090930
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
    [2021-Apr-13 21:03:43] [debug] [Backend] - ---just_load_core_data
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] JLINK_ExecCommand("CORESIGHT_SetIndexAHBAPToUse = 0", ...).
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] - 0.005ms returns 0x00
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] JLINK_ExecCommand("device = Cortex-M4", ...).
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] XML file found at: C:\Program Files (x86)\SEGGER\JLink\JLinkDevices.xml
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] C:\Program Files (x86)\SEGGER\JLink\JLinkDevices.xml evaluated successfully.
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] Device "CORTEX-M4" selected.
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] Device "CORTEX-M4" selected.
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] - 30.676ms returns 0x00
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
    [2021-Apr-13 21:03:43] [debug] [ nRF0x0] - read_connected_emu_snr
    [2021-Apr-13 21:03:43] [debug] [nRFUnknown] - Just_read_connected_emu_snr
    [2021-Apr-13 21:03:43] [debug] [Backend] - read_connected_emu_snr
    [2021-Apr-13 21:03:43] [debug] [Backend] - is_connected_to_emu
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] JLINK_IsOpen()
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] - 0.006ms returns 0x01
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
    [2021-Apr-13 21:03:43] [debug] [ nRF0x0] - read_device_family
    [2021-Apr-13 21:03:43] [debug] [nRFUnknown] - Just_read_device_family
    [2021-Apr-13 21:03:43] [debug] [Backend] - is_connected_to_emu
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] JLINK_IsOpen()
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] - 0.005ms returns 0x01
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] JLINK_Lock()
    [2021-Apr-13 21:03:43] [debug] [Backend] - read_debug_port_idr
    [2021-Apr-13 21:03:43] [debug] [Backend] - read_debug_port_register
    [2021-Apr-13 21:03:43] [debug] [Backend] - ---just_read_debug_port_register
    [2021-Apr-13 21:03:43] [debug] [Backend] - coresight_configure
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] JLINK_CORESIGHT_Configure()
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] - 1.758ms returns 0
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
    [2021-Apr-13 21:03:43] [debug] [Backend] - ---just_select_debug_port_register
    [2021-Apr-13 21:03:43] [debug] [Backend] - Select AP 255, DP Bank 0, AP Bank 255
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] - 0.249ms returns -1
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
    [2021-Apr-13 21:03:43] [ info] [Backend] - JLinkARM.dll reported "-1", an unknown error.
    [2021-Apr-13 21:03:43] [debug] [Backend] - ---just_abort_debug_action
    [2021-Apr-13 21:03:43] [ info] [Backend] - Attempting to clear any configuration errors in debug port before closing connection.
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] - 0.218ms returns -1
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
    [2021-Apr-13 21:03:43] [ info] [Backend] - JLinkARM.dll reported "-1", an unknown error.
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] - 0.014ms
    [2021-Apr-13 21:03:43] [debug] [ nRF0x0] - close_dll
    [2021-Apr-13 21:03:43] [debug] [nRFUnknown] - Just_close_dll
    [2021-Apr-13 21:03:43] [debug] [Backend] - close
    [2021-Apr-13 21:03:43] [debug] [Backend] - disconnect_from_emu
    [2021-Apr-13 21:03:43] [debug] [Backend] - is_connected_to_emu
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] JLINK_IsOpen()
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] - 0.005ms returns 0x01
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
    [2021-Apr-13 21:03:43] [debug] [Backend] - ---just_disconnect_from_emu
    [2021-Apr-13 21:03:43] [debug] [Backend] - is_connected_to_device
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] JLINK_IsConnected()
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] - 0.005ms returns FALSE
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
    [2021-Apr-13 21:03:43] [debug] [Backend] - ---just_is_debug_region_powered
    [2021-Apr-13 21:03:43] [debug] [Backend] - ---just_read_debug_port_register
    [2021-Apr-13 21:03:43] [debug] [Backend] - is_connected_to_emu
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] JLINK_IsOpen()
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] - 0.005ms returns 0x01
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] JLINK_Lock()
    [2021-Apr-13 21:03:43] [debug] [Backend] - ---just_select_debug_port_register
    [2021-Apr-13 21:03:43] [debug] [Backend] - Select AP 255, DP Bank 0, AP Bank 255
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] - 0.269ms returns -1
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
    [2021-Apr-13 21:03:43] [ info] [Backend] - JLinkARM.dll reported "-1", an unknown error.
    [2021-Apr-13 21:03:43] [debug] [Backend] - ---just_abort_debug_action
    [2021-Apr-13 21:03:43] [ info] [Backend] - Attempting to clear any configuration errors in debug port before closing connection.
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] - 0.312ms returns -1
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
    [2021-Apr-13 21:03:43] [ info] [Backend] - JLinkARM.dll reported "-1", an unknown error.
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] - 0.013ms
    [2021-Apr-13 21:03:43] [ info] [ JLink] - [Info ] [JLink ] JLINK_Close()
    [2021-Apr-13 21:03:44] [debug] [Backend] - Segger Backend closed.
    [2021-Apr-13 21:09:31] [ info] --------------------------------------------------------------------------------
    [2021-Apr-13 21:09:31] [ info] nrfjprog --recover --log
    [2021-Apr-13 21:09:31] [ info] nrfjprog version 10.12.1
    [2021-Apr-13 21:09:31] [ info] --------------------------------------------------------------------------------
    [2021-Apr-13 21:09:31] [debug] [ nRF0x0] - open_dll
    [2021-Apr-13 21:09:31] [ info] [ nRF0x0] - Load library at C:\Program Files\Nordic Semiconductor\nrf-command-line-tools\bin\JLINKARM_UNKNOWN_NRFJPROG.dll.
    [2021-Apr-13 21:09:31] [ info] [ nRF0x0] - Library loaded, loading member functions.
    [2021-Apr-13 21:09:31] [ info] [ nRF0x0] - Member functions succesfully loaded.
    [2021-Apr-13 21:09:31] [ info] [Backend] - Logger callback at 0x7ff6e17956f0 registered in Segger backend logger.
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] Logger callback at 0x7ff6e17956f0 registered in JLink logger.
    [2021-Apr-13 21:09:31] [debug] [nRFUnknown] - Just_open_dll_tagged_callback
    [2021-Apr-13 21:09:31] [debug] [Backend] - open_dll
    [2021-Apr-13 21:09:31] [ info] [Backend] - No J-Link DLL path was provided. Attempting to auto detect.
    [2021-Apr-13 21:09:31] [ info] [Backend] - Load library at C:\Program Files (x86)\SEGGER\JLink\JLink_x64.dll.
    [2021-Apr-13 21:09:31] [ info] [Backend] - Library loaded, loading member functions.
    [2021-Apr-13 21:09:31] [ info] [Backend] - Member functions succesfully loaded.
    [2021-Apr-13 21:09:31] [debug] [Backend] - dll_version
    [2021-Apr-13 21:09:31] [ info] [Backend] - Segger dll version 6.88.a loaded.
    [2021-Apr-13 21:09:31] [debug] [Backend] - set_core_data
    [2021-Apr-13 21:09:31] [debug] [ nRF0x0] - enum_emu_snr
    [2021-Apr-13 21:09:31] [debug] [nRFUnknown] - Just_enum_emu_snr
    [2021-Apr-13 21:09:31] [debug] [Backend] - enum_emu_snr
    [2021-Apr-13 21:09:31] [debug] [Backend] - ---just_enum_emu_snr
    [2021-Apr-13 21:09:31] [debug] [Backend] - ---just_get_num_emus
    [2021-Apr-13 21:09:31] [debug] [ nRF0x0] - connect_to_emu_with_snr
    [2021-Apr-13 21:09:31] [debug] [nRFUnknown] - Just_connect_to_emu_with_snr
    [2021-Apr-13 21:09:31] [debug] [Backend] - connect_to_emu_with_snr
    [2021-Apr-13 21:09:31] [debug] [Backend] - is_connected_to_emu
    [2021-Apr-13 21:09:31] [debug] [Backend] - ---just_enum_emu_snr
    [2021-Apr-13 21:09:31] [debug] [Backend] - ---just_get_num_emus
    [2021-Apr-13 21:09:31] [debug] [Backend] - ---just_connect_to_emu_with_snr
    [2021-Apr-13 21:09:31] [debug] [Backend] - ---just_connect_to_emu_without_snr
    [2021-Apr-13 21:09:31] [ info] [Backend] - Segger logging enabled.
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] Firmware: J-Link ARM-OB STM32 compiled Aug 22 2012 19:52:04
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] Hardware: V7.00
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] S/N: 20090930
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] OEM: SEGGER
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] Feature(s): RDI,FlashDL,FlashBP,JFlash,GDBFull
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] TELNET listener socket opened on port 19021
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] WEBSRV Starting webserver
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] WEBSRV Webserver running on local port 19080
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] - 6.698ms returns "O.K."
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] JLINK_GetHWStatus(...)
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] - 0.221ms returns 0
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] JLINK_ExecCommand("SetRestartOnClose = 0", ...).
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] - 0.003ms returns 0x01
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] JLINK_ExecCommand("DisableFlashDL", ...).
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] - 0.003ms returns 0x00
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] JLINK_ExecCommand("ExcludeFlashCacheRange 0x0-0xFFFFFFFF", ...).
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] - 0.003ms returns 0x00
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] JLINK_SetHookUnsecureDialog
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] JLINK_SetHookUnsecureDialog(...)
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] - 0.013ms returns 0
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] JLINK_TIF_Select(JLINKARM_TIF_SWD)
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] - 0.635ms returns 0x00
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] JLINK_SetSpeed(2000)
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] - 0.108ms
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] JLINK_GetSN()
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] - 0.005ms returns 20090930
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
    [2021-Apr-13 21:09:31] [debug] [Backend] - ---just_load_core_data
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] JLINK_ExecCommand("CORESIGHT_SetIndexAHBAPToUse = 0", ...).
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] - 0.004ms returns 0x00
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] JLINK_ExecCommand("device = Cortex-M4", ...).
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] XML file found at: C:\Program Files (x86)\SEGGER\JLink\JLinkDevices.xml
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] C:\Program Files (x86)\SEGGER\JLink\JLinkDevices.xml evaluated successfully.
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] Device "CORTEX-M4" selected.
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] Device "CORTEX-M4" selected.
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] - 40.386ms returns 0x00
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
    [2021-Apr-13 21:09:31] [debug] [ nRF0x0] - read_connected_emu_snr
    [2021-Apr-13 21:09:31] [debug] [nRFUnknown] - Just_read_connected_emu_snr
    [2021-Apr-13 21:09:31] [debug] [Backend] - read_connected_emu_snr
    [2021-Apr-13 21:09:31] [debug] [Backend] - is_connected_to_emu
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] JLINK_IsOpen()
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] - 0.009ms returns 0x01
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
    [2021-Apr-13 21:09:31] [debug] [ nRF0x0] - read_device_family
    [2021-Apr-13 21:09:31] [debug] [nRFUnknown] - Just_read_device_family
    [2021-Apr-13 21:09:31] [debug] [Backend] - is_connected_to_emu
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] JLINK_IsOpen()
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] - 0.005ms returns 0x01
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] JLINK_Lock()
    [2021-Apr-13 21:09:31] [debug] [Backend] - read_debug_port_idr
    [2021-Apr-13 21:09:31] [debug] [Backend] - read_debug_port_register
    [2021-Apr-13 21:09:31] [debug] [Backend] - ---just_read_debug_port_register
    [2021-Apr-13 21:09:31] [debug] [Backend] - coresight_configure
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] JLINK_CORESIGHT_Configure()
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] - 2.411ms returns 0
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
    [2021-Apr-13 21:09:31] [debug] [Backend] - ---just_select_debug_port_register
    [2021-Apr-13 21:09:31] [debug] [Backend] - Select AP 255, DP Bank 0, AP Bank 255
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] - 0.263ms returns -1
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
    [2021-Apr-13 21:09:31] [ info] [Backend] - JLinkARM.dll reported "-1", an unknown error.
    [2021-Apr-13 21:09:31] [debug] [Backend] - ---just_abort_debug_action
    [2021-Apr-13 21:09:31] [ info] [Backend] - Attempting to clear any configuration errors in debug port before closing connection.
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] - 0.283ms returns -1
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
    [2021-Apr-13 21:09:31] [ info] [Backend] - JLinkARM.dll reported "-1", an unknown error.
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] - 0.016ms
    [2021-Apr-13 21:09:31] [debug] [ nRF0x0] - close_dll
    [2021-Apr-13 21:09:31] [debug] [nRFUnknown] - Just_close_dll
    [2021-Apr-13 21:09:31] [debug] [Backend] - close
    [2021-Apr-13 21:09:31] [debug] [Backend] - disconnect_from_emu
    [2021-Apr-13 21:09:31] [debug] [Backend] - is_connected_to_emu
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] JLINK_IsOpen()
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] - 0.005ms returns 0x01
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
    [2021-Apr-13 21:09:31] [debug] [Backend] - ---just_disconnect_from_emu
    [2021-Apr-13 21:09:31] [debug] [Backend] - is_connected_to_device
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] JLINK_IsConnected()
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] - 0.006ms returns FALSE
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
    [2021-Apr-13 21:09:31] [debug] [Backend] - ---just_is_debug_region_powered
    [2021-Apr-13 21:09:31] [debug] [Backend] - ---just_read_debug_port_register
    [2021-Apr-13 21:09:31] [debug] [Backend] - is_connected_to_emu
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] JLINK_IsOpen()
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] - 0.005ms returns 0x01
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] JLINK_Lock()
    [2021-Apr-13 21:09:31] [debug] [Backend] - ---just_select_debug_port_register
    [2021-Apr-13 21:09:31] [debug] [Backend] - Select AP 255, DP Bank 0, AP Bank 255
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] - 0.259ms returns -1
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
    [2021-Apr-13 21:09:31] [ info] [Backend] - JLinkARM.dll reported "-1", an unknown error.
    [2021-Apr-13 21:09:31] [debug] [Backend] - ---just_abort_debug_action
    [2021-Apr-13 21:09:31] [ info] [Backend] - Attempting to clear any configuration errors in debug port before closing connection.
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] - 0.264ms returns -1
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] JLINK_HasError()
    [2021-Apr-13 21:09:31] [ info] [Backend] - JLinkARM.dll reported "-1", an unknown error.
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] - 0.013ms
    [2021-Apr-13 21:09:31] [ info] [ JLink] - [Info ] [JLink ] JLINK_Close()
    [2021-Apr-13 21:09:31] [debug] [Backend] - Segger Backend closed.

  • Hi again

    The defines I mentioned (DEVELOP_IN_NRF52832 and NRFX_COREDEP_DELAY_US_LOOP_CYCLES) should be removed for any nRF52810 project to ensure proper operation. It might still work, but there are no guarantees that it will.

    As for your schematic, this looks good, as long as you have edited the sdk_config.h to use the internal LFRC oscillator instead of the LFCLK used by default in our SDK examples. Please make sure that the following defines have these values in your sdk_config.h file.

    // <h> Clock - SoftDevice clock configuration
    
    //==========================================================
    // <o> NRF_SDH_CLOCK_LF_SRC  - SoftDevice clock source.
     
    // <0=> NRF_CLOCK_LF_SRC_RC 
    // <1=> NRF_CLOCK_LF_SRC_XTAL 
    // <2=> NRF_CLOCK_LF_SRC_SYNTH 
    
    #ifndef NRF_SDH_CLOCK_LF_SRC
    #define NRF_SDH_CLOCK_LF_SRC 0
    #endif
    
    // <o> NRF_SDH_CLOCK_LF_RC_CTIV - SoftDevice calibration timer interval. 
    #ifndef NRF_SDH_CLOCK_LF_RC_CTIV
    #define NRF_SDH_CLOCK_LF_RC_CTIV 16
    #endif
    
    // <o> NRF_SDH_CLOCK_LF_RC_TEMP_CTIV - SoftDevice calibration timer interval under constant temperature. 
    // <i> How often (in number of calibration intervals) the RC oscillator shall be calibrated
    // <i>  if the temperature has not changed.
    
    #ifndef NRF_SDH_CLOCK_LF_RC_TEMP_CTIV
    #define NRF_SDH_CLOCK_LF_RC_TEMP_CTIV 2
    #endif
    
    // <o> NRF_SDH_CLOCK_LF_ACCURACY  - External clock accuracy used in the LL to compute timing.
     
    // <0=> NRF_CLOCK_LF_ACCURACY_250_PPM 
    // <1=> NRF_CLOCK_LF_ACCURACY_500_PPM 
    // <2=> NRF_CLOCK_LF_ACCURACY_150_PPM 
    // <3=> NRF_CLOCK_LF_ACCURACY_100_PPM 
    // <4=> NRF_CLOCK_LF_ACCURACY_75_PPM 
    // <5=> NRF_CLOCK_LF_ACCURACY_50_PPM 
    // <6=> NRF_CLOCK_LF_ACCURACY_30_PPM 
    // <7=> NRF_CLOCK_LF_ACCURACY_20_PPM 
    // <8=> NRF_CLOCK_LF_ACCURACY_10_PPM 
    // <9=> NRF_CLOCK_LF_ACCURACY_5_PPM 
    // <10=> NRF_CLOCK_LF_ACCURACY_2_PPM 
    // <11=> NRF_CLOCK_LF_ACCURACY_1_PPM 
    
    #ifndef NRF_SDH_CLOCK_LF_ACCURACY
    #define NRF_SDH_CLOCK_LF_ACCURACY 1
    #endif

    Seems like the power supplied to the nRF is okay.

    Best regards,

    Simon

  • Thanks for your answer, I have already used the internal LFRC oscillator in my code, but I can't program or recover my custom board, what should I do?

  • Hi

    After a look at your log file, it seems like the application you flash onto the device throws the chip into a reset-loop/assertion loop in the beginning of your firmware, thus the debugger isn't able to successfully attach before the CPU core resets again. This is very hard to recover from, and the only thing we can recommend is to try running nrfjprog --recover while power cycling your board. You can for instance use a batch file on Windows:

    :loop
    nrfjprog --recover -f nrf52
    goto loop

    During development it's recommended to add blocking assertions by adding the preprocessor define "DEBUG" to avoid this issue. More details on that here.

    Best regards,

    Simon

Related