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!!!???

Parents
  • 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

  • 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

Reply
  • 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

Children
  • 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

  • Hello,

    Of course! We tried your suggestion first time, and the .bat continuing in looping almost 60 times! The cmd always showed the same result as "Recovering device. This operation might take 30s.
    ERROR: Recover failed. Please make sure that the correct device family is given
    ERROR: and try again."

  • It shouldn't take 30 seconds when you power off the device. Can you please disconnect all other nRF devices connected to that computer? When no devices are connected, the script should run through several times per second, giving an error:

    ERROR: There is no debugger connected to the PC.

    The idea is that you then power on the DK, and then maybe the debugger can catch on to it before it locks down. If it doesn't work, it will start the 30 seconds. Don't wait for this to finish, just power it off again immediately, and try again. Basically, leave the  script running, and spam the power switch quickly on and off.

    BR,
    Edvin

  • Hello,

    A new day! We tried your suggestion: keep no nRF devices connection to the computer, and yes the ERROR "There is no debugger connected to the PC" appeared, and then we connect the locked board and JLink to the computer. The script keeping running, and we powered off and on the board immediately when the "30s" started. However, the probleam still exist.

  • We compared a normal board with the locked board excuting the recover command, here is the log comparison:

    It looks like the normal board could access the AP reg after DP reg, however the locked board always hooked by the DP reg accessing.

Related