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

" JLinkARM DLL reported an error" On NRF52832, J-Link V9 Programmer

Hello,

Our custom board (nrf52832, S132) seem enter to the read back protection, J-Link could not connect to the target in any ways.

We tried the command "nrfjprog --recover" to fix it. However, the " JLinkARM DLL reported an error" still happened.

Here is my information and error log:

[2021-Jan-15 17:02:25] [ info] --------------------------------------------------------------------------------
[2021-Jan-15 17:02:25] [ info] nrfjprog.exe -r --log 
[2021-Jan-15 17:02:25] [ info] nrfjprog version 10.12.1 
[2021-Jan-15 17:02:25] [ info] --------------------------------------------------------------------------------
[2021-Jan-15 17:02:25] [debug] [ nRF0x0] - open_dll
[2021-Jan-15 17:02:25] [ info] [ nRF0x0] - Load library at C:\Program Files\Nordic Semiconductor\nrf-command-line-tools\bin\JLINKARM_UNKNOWN_NRFJPROG.dll.
[2021-Jan-15 17:02:25] [ info] [ nRF0x0] - Library loaded, loading member functions.
[2021-Jan-15 17:02:25] [ info] [ nRF0x0] - Member functions succesfully loaded.
[2021-Jan-15 17:02:25] [ info] [Backend] - Logger callback at 0x7ff76a9f56f0 registered in Segger backend logger.
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] Logger callback at 0x7ff76a9f56f0 registered in JLink logger.
[2021-Jan-15 17:02:25] [debug] [nRFUnknown] - Just_open_dll_tagged_callback
[2021-Jan-15 17:02:25] [debug] [Backend] - open_dll
[2021-Jan-15 17:02:25] [ info] [Backend] - No J-Link DLL path was provided. Attempting to auto detect.
[2021-Jan-15 17:02:25] [ info] [Backend] - Load library at C:\Program Files (x86)\SEGGER\JLink\JLink_x64.dll.
[2021-Jan-15 17:02:25] [ info] [Backend] - Library loaded, loading member functions.
[2021-Jan-15 17:02:25] [ info] [Backend] - Member functions succesfully loaded.
[2021-Jan-15 17:02:25] [debug] [Backend] - dll_version
[2021-Jan-15 17:02:25] [ info] [Backend] - Segger dll version 6.94.  loaded.
[2021-Jan-15 17:02:25] [debug] [Backend] - set_core_data
[2021-Jan-15 17:02:25] [debug] [ nRF0x0] - enum_emu_snr
[2021-Jan-15 17:02:25] [debug] [nRFUnknown] - Just_enum_emu_snr
[2021-Jan-15 17:02:25] [debug] [Backend] - enum_emu_snr
[2021-Jan-15 17:02:25] [debug] [Backend] - ---just_enum_emu_snr
[2021-Jan-15 17:02:25] [debug] [Backend] - ---just_get_num_emus
[2021-Jan-15 17:02:25] [debug] [ nRF0x0] - connect_to_emu_with_snr
[2021-Jan-15 17:02:25] [debug] [nRFUnknown] - Just_connect_to_emu_with_snr
[2021-Jan-15 17:02:25] [debug] [Backend] - connect_to_emu_with_snr
[2021-Jan-15 17:02:25] [debug] [Backend] - is_connected_to_emu
[2021-Jan-15 17:02:25] [debug] [Backend] - ---just_enum_emu_snr
[2021-Jan-15 17:02:25] [debug] [Backend] - ---just_get_num_emus
[2021-Jan-15 17:02:25] [debug] [Backend] - ---just_connect_to_emu_with_snr
[2021-Jan-15 17:02:25] [debug] [Backend] - ---just_connect_to_emu_without_snr
[2021-Jan-15 17:02:25] [ info] [Backend] - Segger logging enabled.
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] Firmware: J-Link V9 compiled Dec 13 2019 11:14:50
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] Decompressing FW timestamp took 122 us
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] Hardware: V9.60
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] S/N: 69619640
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] OEM: SEGGER
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] Feature(s): RDI, GDB, FlashDL, FlashBP, JFlash
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] EMU: Cleaned up zombie connection 0. PID: 0x3168 (12648)
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] TELNET listener socket opened on port 19021
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] WEBSRV Starting webserver
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] WEBSRV Webserver running on local port 19080
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] - 18.876ms returns "O.K."  
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_GetHWStatus(...)  
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] - 0.107ms returns 0  
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_ExecCommand("SetRestartOnClose = 0", ...).   
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] - 0.009ms returns 0x01  
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_ExecCommand("DisableFlashDL", ...).   
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] - 0.005ms returns 0x00  
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_ExecCommand("ExcludeFlashCacheRange 0x0-0xFFFFFFFF", ...).   
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] - 0.004ms returns 0x00  
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_SetHookUnsecureDialog  
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_SetHookUnsecureDialog(...)
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] - 0.020ms returns 0  
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_TIF_Select(JLINKARM_TIF_SWD)  
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] - 0.353ms returns 0x00  
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_SetSpeed(2000)  
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] - 0.047ms  
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_GetSN()  
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] - 0.008ms returns 69619640  
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
[2021-Jan-15 17:02:25] [debug] [Backend] - ---just_load_core_data
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_ExecCommand("CORESIGHT_SetIndexAHBAPToUse = 0", ...).   
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] - 0.004ms returns 0x00  
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_ExecCommand("device = Cortex-M4", ...).   
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] XML file found at: C:\Program Files (x86)\SEGGER\JLink\JLinkDevices.xml 
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] C:\Program Files (x86)\SEGGER\JLink\JLinkDevices.xml evaluated successfully. 
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] Device "CORTEX-M4" selected.
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] Device "CORTEX-M4" selected.
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] - 104.073ms returns 0x00  
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
[2021-Jan-15 17:02:25] [debug] [ nRF0x0] - read_connected_emu_snr
[2021-Jan-15 17:02:25] [debug] [nRFUnknown] - Just_read_connected_emu_snr
[2021-Jan-15 17:02:25] [debug] [Backend] - read_connected_emu_snr
[2021-Jan-15 17:02:25] [debug] [Backend] - is_connected_to_emu
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_IsOpen()  
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] - 0.008ms returns 0x01  
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
[2021-Jan-15 17:02:25] [debug] [ nRF0x0] - read_device_family
[2021-Jan-15 17:02:25] [debug] [nRFUnknown] - Just_read_device_family
[2021-Jan-15 17:02:25] [debug] [Backend] - is_connected_to_emu
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_IsOpen()  
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] - 0.006ms returns 0x01  
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_Lock()  
[2021-Jan-15 17:02:25] [debug] [Backend] - read_debug_port_idr
[2021-Jan-15 17:02:25] [debug] [Backend] - read_debug_port_register
[2021-Jan-15 17:02:25] [debug] [Backend] - ---just_read_debug_port_register
[2021-Jan-15 17:02:25] [debug] [Backend] - coresight_configure
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_CORESIGHT_Configure()  
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] - 100.775ms returns 0  
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
[2021-Jan-15 17:02:25] [debug] [Backend] - ---just_select_debug_port_register
[2021-Jan-15 17:02:25] [debug] [Backend] - Select AP 255, DP Bank 0, AP Bank 255
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] - 0.540ms returns -1  
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
[2021-Jan-15 17:02:25] [ info] [Backend] - JLinkARM.dll reported "-1", an unknown error.
[2021-Jan-15 17:02:25] [debug] [Backend] - ---just_abort_debug_action
[2021-Jan-15 17:02:25] [ info] [Backend] - Attempting to clear any configuration errors in debug port before closing connection. 
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] - 0.463ms returns -1  
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
[2021-Jan-15 17:02:25] [ info] [Backend] - JLinkARM.dll reported "-1", an unknown error.
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] - 0.030ms  
[2021-Jan-15 17:02:25] [debug] [ nRF0x0] - close_dll
[2021-Jan-15 17:02:25] [debug] [nRFUnknown] - Just_close_dll
[2021-Jan-15 17:02:25] [debug] [Backend] - close
[2021-Jan-15 17:02:25] [debug] [Backend] - disconnect_from_emu
[2021-Jan-15 17:02:25] [debug] [Backend] - is_connected_to_emu
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_IsOpen()  
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] - 0.043ms returns 0x01  
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
[2021-Jan-15 17:02:25] [debug] [Backend] - ---just_disconnect_from_emu
[2021-Jan-15 17:02:25] [debug] [Backend] - is_connected_to_device
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_IsConnected()  
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] - 0.020ms returns FALSE  
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
[2021-Jan-15 17:02:25] [debug] [Backend] - ---just_is_debug_region_powered
[2021-Jan-15 17:02:25] [debug] [Backend] - ---just_read_debug_port_register
[2021-Jan-15 17:02:25] [debug] [Backend] - is_connected_to_emu
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_IsOpen()  
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] - 0.006ms returns 0x01  
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_Lock()  
[2021-Jan-15 17:02:25] [debug] [Backend] - ---just_select_debug_port_register
[2021-Jan-15 17:02:25] [debug] [Backend] - Select AP 255, DP Bank 0, AP Bank 255
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] - 0.489ms returns -1  
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
[2021-Jan-15 17:02:25] [ info] [Backend] - JLinkARM.dll reported "-1", an unknown error.
[2021-Jan-15 17:02:25] [debug] [Backend] - ---just_abort_debug_action
[2021-Jan-15 17:02:25] [ info] [Backend] - Attempting to clear any configuration errors in debug port before closing connection. 
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] - 0.523ms returns -1  
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
[2021-Jan-15 17:02:25] [ info] [Backend] - JLinkARM.dll reported "-1", an unknown error.
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] - 0.027ms  
[2021-Jan-15 17:02:25] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_Close()  
[2021-Jan-15 17:02:25] [debug] [Backend] - Segger Backend closed.

Can anybody helo me, please!!!???

  • Execute "JLink.exe", it can return the S/N:69619640.

    And the nrfjprog version is 10.3.0, the JLinkARM.dll version is 6.94

     
  • Is your customer the person in this ticket?

    https://devzone.nordicsemi.com/f/nordic-q-a/70492/how-to-erase-the-data-in-nrf52832

    If not, please try the same suggestion. Let me know if that doesn't work.

    Best regards,

    Edvin

  • Hello, we are not and we tried you suggestion as "nrfjprog --recover -f NRF52 --log". The command line showed that "Recovering device. This operation might take 30s. ERROR: Recover failed. Please make sure that the correct device family is given and try again." And the error log seem to repeat the same contents as:

    [2021-Jan-15 21:00:09] [ info] nrfjprog --recover --family NRF52 --log 
    [2021-Jan-15 21:00:09] [ info] nrfjprog version 10.12.1 
    [2021-Jan-15 21:00:09] [ info] --------------------------------------------------------------------------------
    [2021-Jan-15 21:00:09] [debug] [ nRF0x0] - open_dll
    [2021-Jan-15 21:00:09] [ info] [ nRF0x0] - Load library at C:\Program Files\Nordic Semiconductor\nrf-command-line-tools\bin\JLINKARM_NRF52_NRFJPROG.dll.
    [2021-Jan-15 21:00:09] [ info] [ nRF0x0] - Library loaded, loading member functions.
    [2021-Jan-15 21:00:09] [ info] [ nRF0x0] - Member functions succesfully loaded.
    [2021-Jan-15 21:00:09] [ info] [Backend] - Logger callback at 0x7ff76a9f56f0 registered in Segger backend logger.
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] Logger callback at 0x7ff76a9f56f0 registered in JLink logger.
    [2021-Jan-15 21:00:09] [debug] [nRF520x0] - open
    [2021-Jan-15 21:00:09] [debug] [Backend] - open_dll
    [2021-Jan-15 21:00:09] [ info] [Backend] - No J-Link DLL path was provided. Attempting to auto detect.
    [2021-Jan-15 21:00:09] [ info] [Backend] - Load library at C:\Program Files (x86)\SEGGER\JLink\JLink_x64.dll.
    [2021-Jan-15 21:00:09] [ info] [Backend] - Library loaded, loading member functions.
    [2021-Jan-15 21:00:09] [ info] [Backend] - Member functions succesfully loaded.
    [2021-Jan-15 21:00:09] [debug] [Backend] - dll_version
    [2021-Jan-15 21:00:09] [ info] [Backend] - Segger dll version 6.94.  loaded.
    [2021-Jan-15 21:00:09] [debug] [ nRF0x0] - enum_emu_snr
    [2021-Jan-15 21:00:09] [debug] [nRF520x0] - enum_emu_snr
    [2021-Jan-15 21:00:09] [debug] [Backend] - is_connected_to_emu
    [2021-Jan-15 21:00:09] [debug] [Backend] - enum_emu_snr
    [2021-Jan-15 21:00:09] [debug] [Backend] - ---just_enum_emu_snr
    [2021-Jan-15 21:00:09] [debug] [Backend] - ---just_get_num_emus
    [2021-Jan-15 21:00:09] [debug] [Backend] - is_connected_to_emu
    [2021-Jan-15 21:00:09] [debug] [ nRF0x0] - connect_to_emu_with_snr
    [2021-Jan-15 21:00:09] [debug] [nRF520x0] - connect_to_emu_with_snr
    [2021-Jan-15 21:00:09] [debug] [Backend] - is_connected_to_emu
    [2021-Jan-15 21:00:09] [debug] [Backend] - connect_to_emu_with_snr
    [2021-Jan-15 21:00:09] [debug] [Backend] - is_connected_to_emu
    [2021-Jan-15 21:00:09] [debug] [Backend] - ---just_enum_emu_snr
    [2021-Jan-15 21:00:09] [debug] [Backend] - ---just_get_num_emus
    [2021-Jan-15 21:00:09] [debug] [Backend] - ---just_connect_to_emu_with_snr
    [2021-Jan-15 21:00:09] [debug] [Backend] - ---just_connect_to_emu_without_snr
    [2021-Jan-15 21:00:09] [ info] [Backend] - Segger logging enabled.
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] Firmware: J-Link OB-STM32F072-128KB-CortexM compiled Jan 21 2020 17:32:07
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] Decompressing FW timestamp took 148 us
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] Hardware: V1.00
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] S/N: 760007376
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] OEM: SEGGER
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] Feature(s): None
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] TELNET listener socket opened on port 19021
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] WEBSRV Starting webserver
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] WEBSRV Webserver running on local port 19080
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] - 21.356ms returns "O.K."  
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_Lock()  
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_GetHWStatus(...)  
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] - 0.202ms returns 0  
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_ExecCommand("SetRestartOnClose = 0", ...).   
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] - 0.008ms returns 0x01  
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_ExecCommand("DisableFlashDL", ...).   
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] - 0.004ms returns 0x00  
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_ExecCommand("ExcludeFlashCacheRange 0x0-0xFFFFFFFF", ...).   
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] - 0.003ms returns 0x00  
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_SetHookUnsecureDialog  
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_SetHookUnsecureDialog(...)
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] - 0.015ms returns 0  
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_TIF_Select(JLINKARM_TIF_SWD)  
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] - 0.565ms returns 0x00  
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_SetSpeed(2000)  
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] - 0.079ms  
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_GetSN()  
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] - 0.006ms returns 760007376  
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
    [2021-Jan-15 21:00:09] [debug] [Backend] - ---just_load_core_data
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_ExecCommand("CORESIGHT_SetIndexAHBAPToUse = 0", ...).   
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] - 0.003ms returns 0x00  
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_ExecCommand("device = nRF52", ...).   
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] XML file found at: C:\Program Files (x86)\SEGGER\JLink\JLinkDevices.xml 
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] C:\Program Files (x86)\SEGGER\JLink\JLinkDevices.xml evaluated successfully. 
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] Device "NRF52" selected.
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] Device "NRF52" selected.
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] - 100.406ms returns 0x00  
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
    [2021-Jan-15 21:00:09] [debug] [Backend] - read_debug_port_idr
    [2021-Jan-15 21:00:09] [debug] [Backend] - read_debug_port_register
    [2021-Jan-15 21:00:09] [debug] [Backend] - ---just_read_debug_port_register
    [2021-Jan-15 21:00:09] [debug] [Backend] - coresight_configure
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_CORESIGHT_Configure()  
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] - 0.636ms returns 0  
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
    [2021-Jan-15 21:00:09] [debug] [Backend] - ---just_select_debug_port_register
    [2021-Jan-15 21:00:09] [debug] [Backend] - Select AP 255, DP Bank 0, AP Bank 255
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] - 0.444ms returns 0  
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_CORESIGHT_ReadAPDPReg(DP reg 0x00)  
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] Value=0x2BA01477
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] - 0.412ms returns 0  
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] - 0.007ms  
    [2021-Jan-15 21:00:09] [debug] [ nRF0x0] - recover
    [2021-Jan-15 21:00:09] [debug] [nRF520x0] - recover
    [2021-Jan-15 21:00:09] [debug] [Backend] - is_connected_to_emu
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_IsOpen()  
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] - 0.009ms returns 0x01  
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_Lock()  
    [2021-Jan-15 21:00:09] [debug] [Backend] - is_connected_to_emu
    [2021-Jan-15 21:00:09] [debug] [nRF520x0] - Just_recover
    [2021-Jan-15 21:00:09] [debug] [nRF520x0] - Just_is_ctrl_ap_available
    [2021-Jan-15 21:00:09] [debug] [Backend] - read_access_port_register
    [2021-Jan-15 21:00:09] [debug] [Backend] - ---just_read_access_port_register
    [2021-Jan-15 21:00:09] [debug] [Backend] - ---just_is_debug_region_powered
    [2021-Jan-15 21:00:09] [debug] [Backend] - ---just_read_debug_port_register
    [2021-Jan-15 21:00:09] [debug] [Backend] - ---just_select_debug_port_register
    [2021-Jan-15 21:00:09] [debug] [Backend] - Select AP 255, DP Bank 0, AP Bank 255
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] - 0.299ms returns 0  
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_CORESIGHT_ReadAPDPReg(DP reg 0x01)  
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] Value=0xD0000000
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] - 0.351ms returns 0  
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
    [2021-Jan-15 21:00:09] [debug] [Backend] - power_debug_region
    [2021-Jan-15 21:00:09] [debug] [Backend] - ---just_write_debug_port_register
    [2021-Jan-15 21:00:09] [debug] [Backend] - ---just_select_debug_port_register
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x01, 0x50000000)  
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] - 0.364ms returns 0  
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
    [2021-Jan-15 21:00:09] [debug] [Backend] - ---just_is_debug_region_powered
    [2021-Jan-15 21:00:09] [debug] [Backend] - ---just_read_debug_port_register
    [2021-Jan-15 21:00:09] [debug] [Backend] - ---just_select_debug_port_register
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_CORESIGHT_ReadAPDPReg(DP reg 0x01)  
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] Value=0xD0000000
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] - 0.295ms returns 0  
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
    [2021-Jan-15 21:00:09] [debug] [Backend] - ---just_write_debug_port_register
    [2021-Jan-15 21:00:09] [debug] [Backend] - ---just_select_debug_port_register
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x01, 0x50000000)  
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] - 0.266ms returns 0  
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
    [2021-Jan-15 21:00:09] [debug] [Backend] - ---just_is_debug_region_powered
    [2021-Jan-15 21:00:09] [debug] [Backend] - ---just_read_debug_port_register
    [2021-Jan-15 21:00:09] [debug] [Backend] - ---just_select_debug_port_register
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_CORESIGHT_ReadAPDPReg(DP reg 0x01)  
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] Value=0xD0000000
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] - 0.318ms returns 0  
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
    [2021-Jan-15 21:00:09] [debug] [Backend] - ---just_write_debug_port_register
    [2021-Jan-15 21:00:09] [debug] [Backend] - ---just_select_debug_port_register
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x01, 0x50000000)  
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] - 0.292ms returns 0  
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
    [2021-Jan-15 21:00:09] [debug] [Backend] - ---just_is_debug_region_powered
    [2021-Jan-15 21:00:09] [debug] [Backend] - ---just_read_debug_port_register
    [2021-Jan-15 21:00:09] [debug] [Backend] - ---just_select_debug_port_register
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_CORESIGHT_ReadAPDPReg(DP reg 0x01)  
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] Value=0xD0000000
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] - 0.303ms returns 0  
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
    [2021-Jan-15 21:00:09] [debug] [Backend] - ---just_write_debug_port_register
    [2021-Jan-15 21:00:09] [debug] [Backend] - ---just_select_debug_port_register
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x01, 0x50000000)  
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] - 0.287ms returns 0  
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
    [2021-Jan-15 21:00:09] [debug] [Backend] - ---just_is_debug_region_powered
    [2021-Jan-15 21:00:09] [debug] [Backend] - ---just_read_debug_port_register
    [2021-Jan-15 21:00:09] [debug] [Backend] - ---just_select_debug_port_register
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_CORESIGHT_ReadAPDPReg(DP reg 0x01)  
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] Value=0xD0000000
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] - 0.337ms returns 0  
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
    [2021-Jan-15 21:00:09] [debug] [Backend] - ---just_write_debug_port_register
    [2021-Jan-15 21:00:09] [debug] [Backend] - ---just_select_debug_port_register
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x01, 0x50000000)  
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] - 0.259ms returns 0  
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
    [2021-Jan-15 21:00:09] [debug] [Backend] - ---just_is_debug_region_powered
    [2021-Jan-15 21:00:09] [debug] [Backend] - ---just_read_debug_port_register
    [2021-Jan-15 21:00:09] [debug] [Backend] - ---just_select_debug_port_register
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_CORESIGHT_ReadAPDPReg(DP reg 0x01)  
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] Value=0xD0000000
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] - 0.329ms returns 0  
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
    [2021-Jan-15 21:00:09] [debug] [Backend] - ---just_write_debug_port_register
    [2021-Jan-15 21:00:09] [debug] [Backend] - ---just_select_debug_port_register
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x01, 0x50000000)  
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] - 0.400ms returns 0  
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
    [2021-Jan-15 21:00:09] [debug] [Backend] - ---just_is_debug_region_powered
    [2021-Jan-15 21:00:09] [debug] [Backend] - ---just_read_debug_port_register
    [2021-Jan-15 21:00:09] [debug] [Backend] - ---just_select_debug_port_register
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_CORESIGHT_ReadAPDPReg(DP reg 0x01)  
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] Value=0xD0000000
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] - 0.285ms returns 0  
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
    [2021-Jan-15 21:00:09] [debug] [Backend] - ---just_write_debug_port_register
    [2021-Jan-15 21:00:09] [debug] [Backend] - ---just_select_debug_port_register
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x01, 0x50000000)  
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] - 0.236ms returns 0  
    [2021-Jan-15 21:00:09] [ info] [  JLink] - [Info    ] [JLink     ] JLINK_HasError()  
    [2021-Jan-15 21:00:09] [debug] [Backend] - ---just_is_debug_region_powered
    [2021-Jan-15 21:00:09] [debug] [Backend] - ---just_read_debug_port_register
    [2021-Jan-15 21:00:09] [debug] [Backend] - ---just_select_debug_port_register

  • Also, we change a computer with a lower nrfjprog version of 8.4, and run the same command, the error log changed to:

    --------------------------------------------------------------------------------
    nrfjprog --recover -f NRF52 --log
    nrfjprog verion 8.5.0
    --------------------------------------------------------------------------------
    FUNCTION: open_dll.
    FUNCTION: open_dll.
    FUNCTION: enum_emu_snr.
    FUNCTION: enum_emu_snr.
    FUNCTION: enum_emu_snr.
    FUNCTION: enum_emu_snr.
    FUNCTION: connect_to_emu_with_snr.
    FUNCTION: connect_to_emu_with_snr.
    FUNCTION: connect_to_emu_without_snr.
    FUNCTION: enum_emu_snr.
    Device "NRF52832_XXAA" selected.
    FUNCTION: recover.
    FUNCTION: recover.
    Found SW-DP with ID 0x2BA01477
    Found SW-DP with ID 0x2BA01477
    Could not power-up debug power domain.
    Scanning AP map to find all available APs
    AP[0]: Stopped AP scan as end of AP map has been reached
    Iterating through AP map to find AHB-AP to use
    Found SW-DP with ID 0x2BA01477
    Found SW-DP with ID 0x2BA01477
    Could not power-up debug power domain.
    Scanning AP map to find all available APs
    AP[0]: Stopped AP scan as end of AP map has been reached
    Iterating through AP map to find AHB-AP to use
    Could not find core in Coresight setup
    JLinkARM.dll reported error -1 at line 4076.
    JLinkARM.dll Connect returned error -261.
    Found SW-DP with ID 0x2BA01477
    Found SW-DP with ID 0x2BA01477
    Could not power-up debug power domain.
    Scanning AP map to find all available APs
    AP[0]: Stopped AP scan as end of AP map has been reached
    Iterating through AP map to find AHB-AP to use
    Found SW-DP with ID 0x2BA01477
    Found SW-DP with ID 0x2BA01477
    Could not power-up debug power domain.
    Scanning AP map to find all available APs
    AP[0]: Stopped AP scan as end of AP map has been reached
    Iterating through AP map to find AHB-AP to use
    Could not find core in Coresight setup
    JLinkARM.dll reported error -1 at line 4076.
    JLinkARM.dll Connect returned error -261.
    Found SW-DP with ID 0x2BA01477
    Found SW-DP with ID 0x2BA01477
    Could not power-up debug power domain.
    Scanning AP map to find all available APs
    AP[0]: Stopped AP scan as end of AP map has been reached
    Iterating through AP map to find AHB-AP to use
    Found SW-DP with ID 0x2BA01477
    Found SW-DP with ID 0x2BA01477
    Could not power-up debug power domain.
    Scanning AP map to find all available APs
    AP[0]: Stopped AP scan as end of AP map has been reached
    Iterating through AP map to find AHB-AP to use
    Could not find core in Coresight setup
    JLinkARM.dll reported error -1 at line 4076.
    JLinkARM.dll Connect returned error -261.
    Found SW-DP with ID 0x2BA01477
    Found SW-DP with ID 0x2BA01477
    Could not power-up debug power domain.
    Scanning AP map to find all available APs
    AP[0]: Stopped AP scan as end of AP map has been reached
    Iterating through AP map to find AHB-AP to use
    Found SW-DP with ID 0x2BA01477
    Found SW-DP with ID 0x2BA01477
    Could not power-up debug power domain.
    Scanning AP map to find all available APs
    AP[0]: Stopped AP scan as end of AP map has been reached
    Iterating through AP map to find AHB-AP to use
    Could not find core in Coresight setup
    JLinkARM.dll reported error -1 at line 4076.
    JLinkARM.dll Connect returned error -261.
    Found SW-DP with ID 0x2BA01477
    Found SW-DP with ID 0x2BA01477
    Could not power-up debug power domain.
    Scanning AP map to find all available APs
    AP[0]: Stopped AP scan as end of AP map has been reached
    Iterating through AP map to find AHB-AP to use
    Found SW-DP with ID 0x2BA01477
    Found SW-DP with ID 0x2BA01477
    Could not power-up debug power domain.
    Scanning AP map to find all available APs
    AP[0]: Stopped AP scan as end of AP map has been reached
    Iterating through AP map to find AHB-AP to use
    Could not find core in Coresight setup
    JLinkARM.dll reported error -1 at line 4076.
    JLinkARM.dll Connect returned error -261.
    Found SW-DP with ID 0x2BA01477
    Found SW-DP with ID 0x2BA01477
    Could not power-up debug power domain.
    Scanning AP map to find all available APs
    AP[0]: Stopped AP scan as end of AP map has been reached
    Iterating through AP map to find AHB-AP to use
    Found SW-DP with ID 0x2BA01477
    Found SW-DP with ID 0x2BA01477
    Could not power-up debug power domain.
    Scanning AP map to find all available APs
    AP[0]: Stopped AP scan as end of AP map has been reached
    Iterating through AP map to find AHB-AP to use
    Could not find core in Coresight setup
    JLinkARM.dll reported error -1 at line 4076.
    JLinkARM.dll Connect returned error -261.
    Found SW-DP with ID 0x2BA01477
    Found SW-DP with ID 0x2BA01477
    Could not power-up debug power domain.
    Scanning AP map to find all available APs
    AP[0]: Stopped AP scan as end of AP map has been reached
    Iterating through AP map to find AHB-AP to use
    Found SW-DP with ID 0x2BA01477
    Found SW-DP with ID 0x2BA01477
    Could not power-up debug power domain.
    Scanning AP map to find all available APs
    AP[0]: Stopped AP scan as end of AP map has been reached
    Iterating through AP map to find AHB-AP to use
    Could not find core in Coresight setup
    JLinkARM.dll reported error -1 at line 4076.
    JLinkARM.dll Connect returned error -261.
    Found SW-DP with ID 0x2BA01477
    Found SW-DP with ID 0x2BA01477
    Could not power-up debug power domain.
    Scanning AP map to find all available APs
    AP[0]: Stopped AP scan as end of AP map has been reached
    Iterating through AP map to find AHB-AP to use
    Found SW-DP with ID 0x2BA01477
    Found SW-DP with ID 0x2BA01477
    Could not power-up debug power domain.
    Scanning AP map to find all available APs
    AP[0]: Stopped AP scan as end of AP map has been reached
    Iterating through AP map to find AHB-AP to use
    Could not find core in Coresight setup
    JLinkARM.dll reported error -1 at line 4076.
    JLinkARM.dll Connect returned error -261.
    Found SW-DP with ID 0x2BA01477
    Found SW-DP with ID 0x2BA01477
    Could not power-up debug power domain.
    Scanning AP map to find all available APs
    AP[0]: Stopped AP scan as end of AP map has been reached
    Iterating through AP map to find AHB-AP to use
    Found SW-DP with ID 0x2BA01477
    Found SW-DP with ID 0x2BA01477
    Could not power-up debug power domain.
    Scanning AP map to find all available APs
    AP[0]: Stopped AP scan as end of AP map has been reached
    Iterating through AP map to find AHB-AP to use
    Could not find core in Coresight setup
    JLinkARM.dll reported error -1 at line 4076.
    JLinkARM.dll Connect returned error -261.
    Found SW-DP with ID 0x2BA01477
    Found SW-DP with ID 0x2BA01477
    Could not power-up debug power domain.
    Scanning AP map to find all available APs
    AP[0]: Stopped AP scan as end of AP map has been reached
    Iterating through AP map to find AHB-AP to use
    Found SW-DP with ID 0x2BA01477
    Found SW-DP with ID 0x2BA01477
    Could not power-up debug power domain.
    Scanning AP map to find all available APs
    AP[0]: Stopped AP scan as end of AP map has been reached
    Iterating through AP map to find AHB-AP to use
    Could not find core in Coresight setup
    JLinkARM.dll reported error -1 at line 4076.
    JLinkARM.dll Connect returned error -261.
    Found SW-DP with ID 0x2BA01477
    Found SW-DP with ID 0x2BA01477
    Could not power-up debug power domain.
    Scanning AP map to find all available APs
    AP[0]: Stopped AP scan as end of AP map has been reached
    Iterating through AP map to find AHB-AP to use
    Found SW-DP with ID 0x2BA01477
    Found SW-DP with ID 0x2BA01477
    Could not power-up debug power domain.
    Scanning AP map to find all available APs
    AP[0]: Stopped AP scan as end of AP map has been reached
    Iterating through AP map to find AHB-AP to use
    Could not find core in Coresight setup
    JLinkARM.dll reported error -1 at line 4076.
    JLinkARM.dll Connect returned error -261.
    Found SW-DP with ID 0x2BA01477
    Found SW-DP with ID 0x2BA01477
    Could not power-up debug power domain.
    Scanning AP map to find all available APs
    AP[0]: Stopped AP scan as end of AP map has been reached
    Iterating through AP map to find AHB-AP to use
    Found SW-DP with ID 0x2BA01477
    Found SW-DP with ID 0x2BA01477
    Could not power-up debug power domain.
    Scanning AP map to find all available APs
    AP[0]: Stopped AP scan as end of AP map has been reached
    Iterating through AP map to find AHB-AP to use
    Could not find core in Coresight setup
    JLinkARM.dll reported error -1 at line 4076.
    JLinkARM.dll Connect returned error -261.
    Found SW-DP with ID 0x2BA01477
    Found SW-DP with ID 0x2BA01477
    Could not power-up debug power domain.
    Scanning AP map to find all available APs
    AP[0]: Stopped AP scan as end of AP map has been reached
    Iterating through AP map to find AHB-AP to use
    Found SW-DP with ID 0x2BA01477
    Found SW-DP with ID 0x2BA01477
    Could not power-up debug power domain.
    Scanning AP map to find all available APs
    AP[0]: Stopped AP scan as end of AP map has been reached
    Iterating through AP map to find AHB-AP to use
    Could not find core in Coresight setup
    JLinkARM.dll reported error -1 at line 4076.
    JLinkARM.dll Connect returned error -261.
    Found SW-DP with ID 0x2BA01477
    Found SW-DP with ID 0x2BA01477
    Could not power-up debug power domain.
    Scanning AP map to find all available APs
    AP[0]: Stopped AP scan as end of AP map has been reached
    Iterating through AP map to find AHB-AP to use
    Found SW-DP with ID 0x2BA01477
    Found SW-DP with ID 0x2BA01477
    Could not power-up debug power domain.
    Scanning AP map to find all available APs
    AP[0]: Stopped AP scan as end of AP map has been reached
    Iterating through AP map to find AHB-AP to use
    Could not find core in Coresight setup
    JLinkARM.dll reported error -1 at line 4076.
    JLinkARM.dll Connect returned error -261.
    Found SW-DP with ID 0x2BA01477
    Found SW-DP with ID 0x2BA01477
    Could not power-up debug power domain.
    Scanning AP map to find all available APs
    AP[0]: Stopped AP scan as end of AP map has been reached
    Iterating through AP map to find AHB-AP to use
    Found SW-DP with ID 0x2BA01477
    Found SW-DP with ID 0x2BA01477
    Could not power-up debug power domain.
    Scanning AP map to find all available APs
    AP[0]: Stopped AP scan as end of AP map has been reached
    Iterating through AP map to find AHB-AP to use
    Could not find core in Coresight setup
    JLinkARM.dll reported error -1 at line 4076.
    JLinkARM.dll Connect returned error -261.
    Found SW-DP with ID 0x2BA01477
    Found SW-DP with ID 0x2BA01477
    Could not power-up debug power domain.
    Scanning AP map to find all available APs
    AP[0]: Stopped AP scan as end of AP map has been reached
    Iterating through AP map to find AHB-AP to use
    Found SW-DP with ID 0x2BA01477
    Found SW-DP with ID 0x2BA01477
    Could not power-up debug power domain.
    Scanning AP map to find all available APs
    AP[0]: Stopped AP scan as end of AP map has been reached
    Iterating through AP map to find AHB-AP to use
    Could not find core in Coresight setup
    JLinkARM.dll reported error -1 at line 4076.
    JLinkARM.dll Connect returned error -261.
    Found SW-DP with ID 0x2BA01477
    Found SW-DP with ID 0x2BA01477
    Could not power-up debug power domain.
    Scanning AP map to find all available APs
    AP[0]: Stopped AP scan as end of AP map has been reached
    Iterating through AP map to find AHB-AP to use
    Found SW-DP with ID 0x2BA01477
    Found SW-DP with ID 0x2BA01477
    Could not power-up debug power domain.
    Scanning AP map to find all available APs
    AP[0]: Stopped AP scan as end of AP map has been reached
    Iterating through AP map to find AHB-AP to use
    Could not find core in Coresight setup
    JLinkARM.dll reported error -1 at line 4076.
    JLinkARM.dll Connect returned error -261.
    Found SW-DP with ID 0x2BA01477
    Found SW-DP with ID 0x2BA01477
    Could not power-up debug power domain.
    Scanning AP map to find all available APs
    AP[0]: Stopped AP scan as end of AP map has been reached
    Iterating through AP map to find AHB-AP to use
    Found SW-DP with ID 0x2BA01477
    Found SW-DP with ID 0x2BA01477
    Could not power-up debug power domain.
    Scanning AP map to find all available APs
    AP[0]: Stopped AP scan as end of AP map has been reached
    Iterating through AP map to find AHB-AP to use
    Could not find core in Coresight setup
    JLinkARM.dll reported error -1 at line 4076.
    JLinkARM.dll Connect returned error -261.
    Found SW-DP with ID 0x2BA01477
    Found SW-DP with ID 0x2BA01477
    Could not power-up debug power domain.
    Scanning AP map to find all available APs
    AP[0]: Stopped AP scan as end of AP map has been reached
    Iterating through AP map to find AHB-AP to use
    Found SW-DP with ID 0x2BA01477
    Found SW-DP with ID 0x2BA01477
    Could not power-up debug power domain.
    Scanning AP map to find all available APs
    AP[0]: Stopped AP scan as end of AP map has been reached
    Iterating through AP map to find AHB-AP to use
    Could not find core in Coresight setup
    JLinkARM.dll reported error -1 at line 4076.
    JLinkARM.dll Connect returned error -261.
    Found SW-DP with ID 0x2BA01477
    Found SW-DP with ID 0x2BA01477
    Could not power-up debug power domain.
    Scanning AP map to find all available APs
    AP[0]: Stopped AP scan as end of AP map has been reached
    Iterating through AP map to find AHB-AP to use
    Found SW-DP with ID 0x2BA01477
    Found SW-DP with ID 0x2BA01477
    Could not power-up debug power domain.
    Scanning AP map to find all available APs
    AP[0]: Stopped AP scan as end of AP map has been reached
    Iterating through AP map to find AHB-AP to use
    Could not find core in Coresight setup
    JLinkARM.dll reported error -1 at line 4076.
    JLinkARM.dll Connect returned error -261.
    Found SW-DP with ID 0x2BA01477
    Found SW-DP with ID 0x2BA01477
    Could not power-up debug power domain.
    Scanning AP map to find all available APs
    AP[0]: Stopped AP scan as end of AP map has been reached
    Iterating through AP map to find AHB-AP to use
    Found SW-DP with ID 0x2BA01477
    Found SW-DP with ID 0x2BA01477
    Could not power-up debug power domain.
    Scanning AP map to find all available APs
    AP[0]: Stopped AP scan as end of AP map has been reached
    Iterating through AP map to find AHB-AP to use
    Could not find core in Coresight setup
    JLinkARM.dll reported error -1 at line 4134.
    JLinkARM.dll IsHalted returned error -1.
    FUNCTION: close_dll.
    FUNCTION: close_dll.
    

    Waitting your reply, thank you

  • Did you try to add the nrfjprog --recover command to the loop .bat scripts as I suggested. In fact, let me write it for you, so you can run it from your command line. Download and run the attached file:

    :loop 
    nrfjprog --recover -f nrf52 
    goto loop 
    

    Use the key combination "ctrl + C" to exit the script if it worked.

    Important: When the script is running, power cycle the DK a few times until the scripts manages to hook onto the nRF.

    Best regards,

    Edvin

Related