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

Unable to connect to nrf52840 dongle after "erase all" in Programmer

The set up which are used are a nRF52840 dongle programmed through nRF52832DK's debugger. After executing "erase all" in Programmer app, which erased the bootloader, it's not possible connect to the dongle. It should be right to assume that the nRF52840's flash was erased and not the DevKit's since the programmer identified correct hardware as 1Mb flash memory in Programmer app.

According to my understanding, I need to flash the bootloader again as stated in here: https://devzone.nordicsemi.com/f/nordic-q-a/37796/nrf52-dongle-can-t-program-with-segger-no-idcode-error-after-jlink-erase-all/147290#147290
Though I cannot make it work.

When trying to reinstall the bootloader in SES from path \nRF5_SDK_15.2.0\examples\dfu\open_bootloader\pca10059_usb\ses\Output\Release\Exe\bootloader.hex, following error message is received:



I have also tried to install the bootloader hex with nrfjprog by executing command "nrfjprog -f nrf52 --program \nRF5_SDK_15.2.0\examples\dfu\open_bootloader\pca10059_usb\ses\Output\Release\Exe\open_bootloader_usb_mbr_pca10059.hex --chiperase". This gives following error message:



How would you advice me to proceed?

  • Sorry for the delayed response. Did you remember to update the public key before building the open bootloader example? If not, you can run these two commands (found in this blog post):

    nrfutil.exe keys generate private.key
    nrfutil.exe keys display --key pk --format code private.key --out_file public_key.c

    Then, you can exclude the dfu_public_key.c from the build by Right clicking on it -> Exclude from Build. Next, build the open bootloader. I used the Release version in SES. Then, if the dongle is already erased, connect the swd cable to the dongle (the other end should be connected to a J-Link, such as on the 52 dev kit). The dongle needs to be connected to USB (it will not receive power from the SWD cable)

    Flash the softdevice to the dongle first via nrfjprog located here: nRF5_SDK_15.2.0_9412b96\components\softdevice\s140\hex\

    Then, flash the bootloader hex file. That should work without any issues. To test, I opened up nRF Connect Programmer app & read the flash. I could see this:

    which indicates that everything worked fine.

    Hope that helps! Kind Regards.

    Bjørn

  • hi, how do you manage to resolve the problem since the nRF52840 Dongle cannot be detected using Segger J-Link after it is erased fully because the nrfjprog.exe kept returning error as mentioned by you ?

  • hi Bjorn, the nrfjprog.exe totally failed reporting something like below:

    C:\Program Files\SEGGER\JLink>nrfjprog -v
    nrfjprog version: 10.13.0
    JLinkARM.dll version: 7.50a

    C:\Program Files\SEGGER\JLink>nrfjprog.exe -f NRF52 --program c:\scratch\graviton_bootloader_mbr_v1.0.1.hex --chiperase --log


    ERROR: [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    ERROR: [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    ERROR: [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    ERROR: [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    ERROR: [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    ERROR: [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    ERROR: [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    ERROR: [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    ERROR: [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    ERROR: [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    ERROR: [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    ERROR: [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    ERROR: [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    ERROR: [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    ERROR: [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    ERROR: [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    ERROR: [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    ERROR: [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    ERROR: [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    ERROR: [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    ERROR: [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    ERROR: [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    ERROR: [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    ERROR: [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    ERROR: [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    ERROR: [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    ERROR: [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    ERROR: [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    ERROR: [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    ERROR: [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    ERROR: [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    ERROR: [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    ERROR: [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    ERROR: [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    ERROR: [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    ERROR: [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    ERROR: [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    ERROR: [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    ERROR: [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    ERROR: [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    ERROR: [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    ERROR: [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    ERROR: [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    ERROR: [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    ERROR: [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    ERROR: [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    ERROR: [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    ERROR: [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    ERROR: [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    ERROR: [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    ERROR: [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    ERROR: [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    ERROR: [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    ERROR: [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    ERROR: [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    ERROR: [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    ERROR: [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    ERROR: [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    ERROR: [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    ERROR: [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    ERROR: JLinkARM DLL reported an error. Try again. If error condition
    ERROR: persists, run the same command again with argument --log, contact Nordic
    ERROR: Semiconductor and provide the generated log.log file to them.

    ------------------------------------------------------------------------------------------------------------------------------------------------

    THE .LOG FILE LOOK LIKE BELOW:

    [2021-Jul-19 19:56:35] [ info] --------------------------------------------------------------------------------
    [2021-Jul-19 19:56:35] [ info] nrfjprog.exe -f NRF52 --program c:\scratch\graviton_bootloader_mbr_v1.0.1.hex --chiperase --log
    [2021-Jul-19 19:56:35] [ info] nrfjprog version 10.13.0
    [2021-Jul-19 19:56:35] [ info] --------------------------------------------------------------------------------
    [2021-Jul-19 19:56:35] [ info] Load library at C:\Program Files (x86)\Nordic Semiconductor\nrf-command-line-tools\bin\nrfjprog.dll.
    [2021-Jul-19 19:56:35] [ info] Library loaded, loading member functions.
    [2021-Jul-19 19:56:35] [ info] Member functions succesfully loaded.
    [2021-Jul-19 19:56:35] [debug] [ Client] - open
    [2021-Jul-19 19:56:35] [debug] [ Client] - start
    [2021-Jul-19 19:56:35] [ info] [ Client] - stdout: Jlinkarm nRF Worker ready. Handling sequence 60627e97-c7f0-4def-a767-b34e021156f9.

    [2021-Jul-19 19:56:35] [trace] [ Client] - Command open executed for 36 milliseconds with result 0
    [2021-Jul-19 19:56:35] [debug] [ Client] - enum_emu_snr
    [2021-Jul-19 19:56:35] [trace] [ Client] - Command enum_emu_snr executed for 15 milliseconds with result 0
    [2021-Jul-19 19:56:35] [debug] [SeggerBackend] - Logger sink registered in Segger backend logger
    [2021-Jul-19 19:56:35] [debug] [  JLink] - Logger sink registered in JLink logger
    [2021-Jul-19 19:56:35] [debug] [  nRF52] - open
    [2021-Jul-19 19:56:35] [debug] [ Client] - connect_to_emu_with_snr
    [2021-Jul-19 19:56:35] [debug] [SeggerBackend] - open_dll
    [2021-Jul-19 19:56:35] [debug] [SeggerBackend] - No J-Link DLL path was provided. Attempting to auto detect.
    [2021-Jul-19 19:56:35] [ info] [SeggerBackend] - Load library at C:\Program Files\SEGGER\JLink\JLinkARM.dll.
    [2021-Jul-19 19:56:35] [ info] [SeggerBackend] - Library loaded, loading member functions.
    [2021-Jul-19 19:56:35] [ info] [SeggerBackend] - Member functions succesfully loaded.
    [2021-Jul-19 19:56:35] [debug] [SeggerBackend] - dll_version
    [2021-Jul-19 19:56:35] [ info] [SeggerBackend] - Segger dll version 7.50.a loaded.
    [2021-Jul-19 19:56:35] [trace] [ Worker] - Command open executed for 7 milliseconds with result 0
    [2021-Jul-19 19:56:35] [debug] [  nRF52] - enum_emu_snr
    [2021-Jul-19 19:56:35] [debug] [SeggerBackend] - is_connected_to_emu
    [2021-Jul-19 19:56:35] [debug] [SeggerBackend] - enum_emu_snr
    [2021-Jul-19 19:56:35] [debug] [SeggerBackend] - ---just_enum_emu_snr
    [2021-Jul-19 19:56:35] [debug] [SeggerBackend] - ---just_get_num_emus
    [2021-Jul-19 19:56:35] [debug] [SeggerBackend] - is_connected_to_emu
    [2021-Jul-19 19:56:35] [trace] [ Worker] - Command enum_emu_snr executed for 4 milliseconds with result 0
    [2021-Jul-19 19:56:35] [debug] [  nRF52] - connect_to_emu_with_snr
    [2021-Jul-19 19:56:35] [debug] [SeggerBackend] - is_connected_to_emu
    [2021-Jul-19 19:56:35] [debug] [SeggerBackend] - connect_to_emu_with_snr
    [2021-Jul-19 19:56:35] [debug] [SeggerBackend] - is_connected_to_emu
    [2021-Jul-19 19:56:35] [debug] [SeggerBackend] - ---just_enum_emu_snr
    [2021-Jul-19 19:56:35] [debug] [SeggerBackend] - ---just_get_num_emus
    [2021-Jul-19 19:56:35] [debug] [SeggerBackend] - ---just_connect_to_emu_with_snr
    [2021-Jul-19 19:56:35] [debug] [SeggerBackend] - ---just_connect_to_emu_without_snr
    [2021-Jul-19 19:56:35] [debug] [SeggerBackend] - Segger logging enabled.
    [2021-Jul-19 19:56:35] [trace] [  JLink] - Firmware: J-Link V11 compiled Jun 29 2021 16:12:24
    [2021-Jul-19 19:56:35] [trace] [  JLink] - Firmware: J-Link V11 compiled Jun 29 2021 16:12:24
    [2021-Jul-19 19:56:35] [trace] [  JLink] - Decompressing FW timestamp took 165 us
    [2021-Jul-19 19:56:35] [trace] [  JLink] - Hardware: V11.00
    [2021-Jul-19 19:56:35] [trace] [  JLink] - S/N: 261011558
    [2021-Jul-19 19:56:35] [trace] [  JLink] - OEM: SEGGER-EDU
    [2021-Jul-19 19:56:35] [trace] [  JLink] - Feature(s): FlashBP, GDB
    [2021-Jul-19 19:56:35] [trace] [  JLink] - TELNET listener socket opened on port 19021
    [2021-Jul-19 19:56:35] [trace] [  JLink] - WEBSRV Starting webserver
    [2021-Jul-19 19:56:35] [trace] [  JLink] - WEBSRV Webserver running on local port 19080
    [2021-Jul-19 19:56:35] [trace] [  JLink] - - 20.828ms returns "O.K."  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_HasError()  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_Lock()  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_GetHWStatus(...)  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - - 0.335ms returns 0  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_HasError()  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_ExecCommand("SetRestartOnClose = 0", ...).   
    [2021-Jul-19 19:56:35] [trace] [  JLink] - - 0.004ms returns 0x01  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_HasError()  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_ExecCommand("DisableFlashDL", ...).   
    [2021-Jul-19 19:56:35] [trace] [  JLink] - - 0.008ms returns 0x00  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_HasError()  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_ExecCommand("ExcludeFlashCacheRange 0x0-0xFFFFFFFF", ...).   
    [2021-Jul-19 19:56:35] [trace] [  JLink] - - 0.005ms returns 0x00  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_HasError()  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_SetHookUnsecureDialog  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_SetHookUnsecureDialog(...)
    [2021-Jul-19 19:56:35] [trace] [  JLink] - - 0.021ms returns 0  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_HasError()  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_TIF_Select(JLINKARM_TIF_SWD)  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - - 1.329ms returns 0x00  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_HasError()  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_SetSpeed(2000)  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - - 0.325ms  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_HasError()  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_GetSN()  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - - 0.008ms returns 261011558  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_HasError()  
    [2021-Jul-19 19:56:35] [debug] [SeggerBackend] - read_debug_port_idr
    [2021-Jul-19 19:56:35] [debug] [SeggerBackend] - read_debug_port_register
    [2021-Jul-19 19:56:35] [debug] [SeggerBackend] - ---just_read_debug_port_register
    [2021-Jul-19 19:56:35] [debug] [SeggerBackend] - coresight_configure
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_CORESIGHT_Configure()  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - - 100.380ms returns 0  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_HasError()  
    [2021-Jul-19 19:56:35] [debug] [SeggerBackend] - ---just_select_debug_port_register
    [2021-Jul-19 19:56:35] [debug] [SeggerBackend] - Select AP 255, DP Bank 0, AP Bank 255
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - - 0.805ms returns -1  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_HasError()  
    [2021-Jul-19 19:56:35] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Jul-19 19:56:35] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2021-Jul-19 19:56:35] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection.
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - - 0.816ms returns -1  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_HasError()  
    [2021-Jul-19 19:56:35] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - - 0.711ms returns -1  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_HasError()  
    [2021-Jul-19 19:56:35] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - - 0.872ms returns -1  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_HasError()  
    [2021-Jul-19 19:56:35] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - - 0.679ms returns -1  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_HasError()  
    [2021-Jul-19 19:56:35] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - - 0.812ms returns -1  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_HasError()  
    [2021-Jul-19 19:56:35] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - - 0.840ms returns -1  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_HasError()  
    [2021-Jul-19 19:56:35] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Jul-19 19:56:35] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2021-Jul-19 19:56:35] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection.
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - - 0.808ms returns -1  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_HasError()  
    [2021-Jul-19 19:56:35] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - - 0.682ms returns -1  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_HasError()  
    [2021-Jul-19 19:56:35] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - - 0.689ms returns -1  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_HasError()  
    [2021-Jul-19 19:56:35] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - - 0.681ms returns -1  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_HasError()  
    [2021-Jul-19 19:56:35] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - - 0.686ms returns -1  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_HasError()  
    [2021-Jul-19 19:56:35] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - - 0.661ms returns -1  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_HasError()  
    [2021-Jul-19 19:56:35] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Jul-19 19:56:35] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2021-Jul-19 19:56:35] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection.
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - - 0.675ms returns -1  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_HasError()  
    [2021-Jul-19 19:56:35] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - - 0.639ms returns -1  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_HasError()  
    [2021-Jul-19 19:56:35] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Jul-19 19:56:35] [trace] [ Client] - Command connect_to_emu_with_snr executed for 202 milliseconds with result -102
    [2021-Jul-19 19:56:35] [trace] [  JLink] - - 0.636ms returns -1  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_HasError()  
    [2021-Jul-19 19:56:35] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - - 0.652ms returns -1  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_HasError()  
    [2021-Jul-19 19:56:35] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - - 0.635ms returns -1  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_HasError()  
    [2021-Jul-19 19:56:35] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - - 0.648ms returns -1  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_HasError()  
    [2021-Jul-19 19:56:35] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Jul-19 19:56:35] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2021-Jul-19 19:56:35] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection.
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - - 0.665ms returns -1  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_HasError()  
    [2021-Jul-19 19:56:35] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - - 0.730ms returns -1  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_HasError()  
    [2021-Jul-19 19:56:35] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - - 0.747ms returns -1  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_HasError()  
    [2021-Jul-19 19:56:35] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - - 0.657ms returns -1  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_HasError()  
    [2021-Jul-19 19:56:35] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - - 0.650ms returns -1  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_HasError()  
    [2021-Jul-19 19:56:35] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - - 0.700ms returns -1  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_HasError()  
    [2021-Jul-19 19:56:35] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Jul-19 19:56:35] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2021-Jul-19 19:56:35] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection.
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - - 0.697ms returns -1  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_HasError()  
    [2021-Jul-19 19:56:35] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - - 0.681ms returns -1  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_HasError()  
    [2021-Jul-19 19:56:35] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - - 0.683ms returns -1  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_HasError()  
    [2021-Jul-19 19:56:35] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - - 0.614ms returns -1  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_HasError()  
    [2021-Jul-19 19:56:35] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - - 0.694ms returns -1  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_HasError()  
    [2021-Jul-19 19:56:35] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Jul-19 19:56:35] [trace] [  JLink] - - 0.020ms  
    [2021-Jul-19 19:56:35] [trace] [ Worker] - Command connect_to_emu_with_snr executed for 195 milliseconds with result -102
    [2021-Jul-19 19:56:35] [debug] [  nRF52] - close
    [2021-Jul-19 19:56:35] [debug] [SeggerBackend] - is_connected_to_emu
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_IsOpen()  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - - 0.015ms returns 0x01  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_HasError()  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_Lock()  
    [2021-Jul-19 19:56:35] [debug] [SeggerBackend] - close
    [2021-Jul-19 19:56:35] [debug] [SeggerBackend] - disconnect_from_emu
    [2021-Jul-19 19:56:35] [debug] [SeggerBackend] - ---just_disconnect_from_emu
    [2021-Jul-19 19:56:35] [debug] [SeggerBackend] - is_connected_to_device
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_IsConnected()  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - - 0.008ms returns FALSE  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_HasError()  
    [2021-Jul-19 19:56:35] [debug] [SeggerBackend] - ---just_is_debug_region_powered
    [2021-Jul-19 19:56:35] [debug] [SeggerBackend] - ---just_read_debug_port_register
    [2021-Jul-19 19:56:35] [debug] [SeggerBackend] - ---just_select_debug_port_register
    [2021-Jul-19 19:56:35] [debug] [SeggerBackend] - Select AP 255, DP Bank 0, AP Bank 255
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - - 0.683ms returns -1  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_HasError()  
    [2021-Jul-19 19:56:35] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Jul-19 19:56:35] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2021-Jul-19 19:56:35] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection.
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - - 0.684ms returns -1  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_HasError()  
    [2021-Jul-19 19:56:35] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - - 0.696ms returns -1  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_HasError()  
    [2021-Jul-19 19:56:35] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - - 0.734ms returns -1  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_HasError()  
    [2021-Jul-19 19:56:35] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - - 0.647ms returns -1  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_HasError()  
    [2021-Jul-19 19:56:35] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - - 0.653ms returns -1  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_HasError()  
    [2021-Jul-19 19:56:35] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - - 0.734ms returns -1  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_HasError()  
    [2021-Jul-19 19:56:35] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Jul-19 19:56:35] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2021-Jul-19 19:56:35] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection.
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - - 0.663ms returns -1  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_HasError()  
    [2021-Jul-19 19:56:35] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - - 0.792ms returns -1  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_HasError()  
    [2021-Jul-19 19:56:35] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - - 0.658ms returns -1  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_HasError()  
    [2021-Jul-19 19:56:35] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - - 0.676ms returns -1  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_HasError()  
    [2021-Jul-19 19:56:35] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - - 0.625ms returns -1  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_HasError()  
    [2021-Jul-19 19:56:35] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - - 0.621ms returns -1  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_HasError()  
    [2021-Jul-19 19:56:35] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Jul-19 19:56:35] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2021-Jul-19 19:56:35] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection.
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - - 0.693ms returns -1  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_HasError()  
    [2021-Jul-19 19:56:35] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - - 0.588ms returns -1  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_HasError()  
    [2021-Jul-19 19:56:35] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - - 0.742ms returns -1  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_HasError()  
    [2021-Jul-19 19:56:35] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - - 0.622ms returns -1  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_HasError()  
    [2021-Jul-19 19:56:35] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - - 0.605ms returns -1  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_HasError()  
    [2021-Jul-19 19:56:35] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - - 0.603ms returns -1  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_HasError()  
    [2021-Jul-19 19:56:35] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Jul-19 19:56:35] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2021-Jul-19 19:56:35] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection.
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - - 0.707ms returns -1  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_HasError()  
    [2021-Jul-19 19:56:35] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - - 0.640ms returns -1  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_HasError()  
    [2021-Jul-19 19:56:35] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - - 0.600ms returns -1  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_HasError()  
    [2021-Jul-19 19:56:35] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - - 0.650ms returns -1  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_HasError()  
    [2021-Jul-19 19:56:35] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - - 0.701ms returns -1  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_HasError()  
    [2021-Jul-19 19:56:35] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - - 0.660ms returns -1  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_HasError()  
    [2021-Jul-19 19:56:35] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Jul-19 19:56:35] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2021-Jul-19 19:56:35] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection.
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - - 0.678ms returns -1  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_HasError()  
    [2021-Jul-19 19:56:35] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - - 0.721ms returns -1  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_HasError()  
    [2021-Jul-19 19:56:35] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - - 0.642ms returns -1  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_HasError()  
    [2021-Jul-19 19:56:35] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - - 0.676ms returns -1  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_HasError()  
    [2021-Jul-19 19:56:35] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - - 0.650ms returns -1  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_HasError()  
    [2021-Jul-19 19:56:35] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Jul-19 19:56:35] [trace] [  JLink] - - 0.035ms  
    [2021-Jul-19 19:56:35] [trace] [  JLink] - JLINK_Close()  
    [2021-Jul-19 19:56:35] [debug] [SeggerBackend] - Segger Backend closed.
    [2021-Jul-19 19:56:35] [debug] [  nRF52] - nRF family DLL closed
    [2021-Jul-19 19:56:35] [trace] [ Client] - Command close executed for 141 milliseconds with result 0
    [2021-Jul-19 19:56:35] [debug] [ Client] - terminate
    [2021-Jul-19 19:56:35] [trace] [ Client] - Command terminate executed for 0 milliseconds with result 0
    [2021-Jul-19 19:56:35] [trace] [ Worker] - Command close executed for 139 milliseconds with result 0
    [2021-Jul-19 19:56:35] [trace] [ Worker] - Command terminate executed for 0 milliseconds with result 0
    [2021-Jul-19 19:56:35] [trace] [ Worker] - Executed 5 commands for 345 milliseconds
    [2021-Jul-19 19:56:35] [debug] [ Client] - Worker process exited with code: 0
    [2021-Jul-19 19:56:35] [debug] [ Client] - Worker process exited with code: 0
    [2021-Jul-19 19:56:35] [debug] [ Client] - Child process terminated with result 0
    [2021-Jul-19 19:56:35] [trace] [ Client] - Executed 5 commands for 394 milliseconds
    [2021-Jul-19 19:56:35] [debug] [ Client] - terminate

    I am using genuine Segger J-Link Home to connect the SWDIO and SWCLK pins of the nRF52840 Dongle, either user USB power or soldered SB1 ( with SB2 broken ) with 3.3V supply to VDD, J-LINK VREF to 3.3V


    Please advise.

Related