board nrf52832 does not connect anymore

I am following the BLE accademy course and flashing an exercise, the exercise did not perform as requested.

I could not flash anymore.

I clear the board from the switch button and then could not connect the board anymore even I coud see it by the JLINK or nrfConnect or Teraterm.

I tried several version of JLINK without success.

I then made a power ON with the IfBoot pressed and the board now act strangely.

The board led flash every second for a while and is visible on the USB but then flash rapidly and disapear from the USB.

Reading manuals I do not understand what to upload here, what file, how...

Some manual indicate the use of nrfGo which is obsolete... I am completly lost.

Thank you for some hints to start again.

JLINK 780c

nRF Connect 4.2.0

Parents
  • Hi,

     

    The board led flash every second for a while and is visible on the USB but then flash rapidly and disapear from the USB.

    Holding down this button and powering up will place the nRF52-DK in bootloader mode.

    In this mode, where the X:\BOOTLOADER drive is enumerated, you shall not flash anything other than the jlink binary file, or the cmsis daplink binary.

    Here's a direct link to the jlink recovery binary: https://nsscprodmedia.blob.core.windows.net/prod/software-and-other-downloads/dev-kits/nrf5x-dk-files/j-link-ob-sam3u128-v2-nordicsemi-170724.bin

     

    Found on this site: https://www.nordicsemi.com/Products/Development-hardware/nRF52-DK/Download?lang=en#infotabs

     

    If you flashed another file than the jlink/cmsis dap fw while the device is in bootloader state, you can brick the board.

     

    Does your board enumerate as a usb device at all now?

     

    Kind regards,

    Håkon

  • Great you fixed my bootloader problem. Thanks a lot  

    Now I am back to the original problem :-(

    With nRFConnect I get such messages: "Note: no pre-compiled firmware is available for the selected device."

    or also this message "Unsupported device. The detected device could not be recognized as neither JLink device nor Nordic USB device."

    I can connect thru TeraTerm.

    I can see my board with nRFConnect, but cannot select it.

    With VSCode I cannot see anymore my board connected, which was working before with VSCode

  • Hi,

     

    jean-marc said:
    Great you fixed my bootloader problem.

    Great to hear that the board is one step closer to working!

     

    jean-marc said:

    I can connect thru TeraTerm.

    I can see my board with nRFConnect, but cannot select it.

    It is good that you can connect to the COM port, that means that the board itself works as intended.

     

    jean-marc said:
    With nRFConnect I get such messages: "Note: no pre-compiled firmware is available for the selected device."

    Which application within nrf connect for desktop is reporting this?

     

    What we can try is to use nrfjprog, the command line tool, directly.

    * Open up a cmd prompt

    * write "nrfjprog --recover -f nrf52 --log"

     

    If it fails, please attach the "log.log" file generated.

     

    Kind regards,

    Håkon

  •  thank you for your precious help.

    --recover failed, here are the error on the vscode terminal:

    [error] [ Worker] - An unknown error.
    [error] [ Client] - Encountered error -21: Command recover executed for 152 milliseconds with result -21
    ERROR: Recover failed. Please make sure that the correct device family is given
    ERROR: and try again.

    Sorry, no idea on how to attach a file :-(

  • Hi,

     

    The log file should be created in the folder where you ran the command from.

    To insert the file here, you can drag-and-drop it into the reply box.

     

    Or you can go to:

    Insert -> Image/Video/file

    Then press the "upload" button - which will effectively work as "browse" button, and you can navigate to the file you want to upload.

    jean-marc said:
    ERROR: Recover failed. Please make sure that the correct device family is given

    Did you call it with the "nrfjprog --recover -f nrf52" option?

     

    Kind regards,

    Håkon

  • Oh! I though it was only for URL upload, sorry

    [2023-Sept-13 16:48:39] [debug] --------------------------------------------------------------------------------
    [2023-Sept-13 16:48:39] [debug] C:\Program Files\Nordic Semiconductor\nrf-command-line-tools\bin\nrfjprog.exe --recover -f nrf52 --log 
    [2023-Sept-13 16:48:39] [debug] nrfjprog version 10.23.0 external
    [2023-Sept-13 16:48:39] [debug] --------------------------------------------------------------------------------
    [2023-Sept-13 16:48:39] [ info] Load library at C:\Program Files\Nordic Semiconductor\nrf-command-line-tools\bin\nrfjprog.dll.
    [2023-Sept-13 16:48:39] [ info] Library loaded, loading member functions.
    [2023-Sept-13 16:48:39] [ info] Member functions succesfully loaded.
    [2023-Sept-13 16:48:39] [debug] [ Client] - open
    [2023-Sept-13 16:48:39] [debug] [ Client] - start
    [2023-Sept-13 16:48:39] [ info] [ Client] - stdout: Jlinkarm nRF Worker ready. Handling sequence 4fa841c6-c310-45f6-8085-f96d91b9652c.
    
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - Logger sink registered in Segger backend logger
    [2023-Sept-13 16:48:39] [debug] [  JLink] - Logger sink registered in JLink logger
    [2023-Sept-13 16:48:39] [debug] [  nRF52] - open
    [2023-Sept-13 16:48:39] [debug] [  nRF52] - just_check_family
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - open_dll
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - No J-Link DLL path was provided. Attempting to auto detect.
    [2023-Sept-13 16:48:39] [trace] [ Client] - Command open executed for 57 milliseconds with result 0
    [2023-Sept-13 16:48:39] [debug] [ Client] - config
    [2023-Sept-13 16:48:39] [ info] [SeggerBackend] - Load library at C:\Program Files\SEGGER\JLink\JLink_x64.dll.
    [2023-Sept-13 16:48:39] [ info] [SeggerBackend] - Library loaded, loading member functions.
    [2023-Sept-13 16:48:39] [ info] [SeggerBackend] - Member functions succesfully loaded.
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - Set batch mode
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - dll_version
    [2023-Sept-13 16:48:39] [ info] [SeggerBackend] - Segger dll version 7.80.c loaded.
    [2023-Sept-13 16:48:39] [trace] [ Worker] - Command open executed for 8 milliseconds with result 0
    [2023-Sept-13 16:48:39] [trace] [ Client] - Command config executed for 14 milliseconds with result 0
    [2023-Sept-13 16:48:39] [debug] [ Client] - enum_emu_snr
    [2023-Sept-13 16:48:39] [debug] [  nRF52] - config
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - enum_emu_snr
    [2023-Sept-13 16:48:39] [trace] [ Worker] - Command config executed for 4 milliseconds with result 0
    [2023-Sept-13 16:48:39] [trace] [ Client] - Command enum_emu_con_info executed for 14 milliseconds with result 0
    [2023-Sept-13 16:48:39] [debug] [ Client] - connect_to_emu_with_snr
    [2023-Sept-13 16:48:39] [debug] [  nRF52] - enum_emu_con_info
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - is_connected_to_emu
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - enum_emu_con_info
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - is_connected_to_emu
    [2023-Sept-13 16:48:39] [trace] [ Worker] - Command enum_emu_con_info executed for 4 milliseconds with result 0
    [2023-Sept-13 16:48:39] [debug] [  nRF52] - connect_to_emu_with_snr
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - is_connected_to_emu
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - connect_to_emu_with_snr
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - is_connected_to_emu
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - ---just_enum_emu_snr
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - ---just_get_num_emus
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - ---just_connect_to_emu_with_snr
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - ---just_connect_to_emu_without_snr
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - Segger logging enabled.
    [2023-Sept-13 16:48:39] [trace] [  JLink] - Firmware: J-Link OB-SAM3U128-V2-NordicSemi compiled Sep 21 2022 09:57:39
    [2023-Sept-13 16:48:39] [trace] [  JLink] - Firmware: J-Link OB-SAM3U128-V2-NordicSemi compiled Sep 21 2022 09:57:39
    [2023-Sept-13 16:48:39] [trace] [  JLink] - Hardware: V1.00
    [2023-Sept-13 16:48:39] [trace] [  JLink] - S/N: 682571569
    [2023-Sept-13 16:48:39] [trace] [  JLink] - OEM: SEGGER
    [2023-Sept-13 16:48:39] [trace] [  JLink] - Feature(s): RDI, FlashBP, FlashDL, JFlash, GDB
    [2023-Sept-13 16:48:39] [trace] [  JLink] - USB speed mode: High speed (480 MBit/s)
    [2023-Sept-13 16:48:39] [trace] [  JLink] - TELNET listener socket opened on port 19021
    [2023-Sept-13 16:48:39] [trace] [  JLink] - WEBSRV WEBSRV_Init(): Starting webserver thread(s)
    [2023-Sept-13 16:48:39] [trace] [  JLink] - WEBSRV Webserver running on local port 19080
    [2023-Sept-13 16:48:39] [trace] [ Client] - Command connect_to_emu_with_snr executed for 59 milliseconds with result 0
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 22.656ms returns "O.K."  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_Lock()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_ExecCommand("SetRestartOnClose = 0", ...).   
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.003ms returns 0x01  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_ExecCommand("DisableFlashDL", ...).   
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.004ms returns 0x00  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_ExecCommand("ExcludeFlashCacheRange 0x0-0xFFFFFFFF", ...).   
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.004ms returns 0x00  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_SetHookUnsecureDialog  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_SetHookUnsecureDialog(...)
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.014ms returns 0  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_TIF_Select(JLINKARM_TIF_SWD)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.483ms returns 0x00  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_GetSpeedInfo()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - 10000000 Hz / n, n >= 10
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.014ms  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - Connected emulator supports SWD speeds up to 1000kHz
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - Requested speed 2000kHz is higher than the emulator max speed of 1000kHz
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_SetSpeed(2000)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.068ms  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_GetSpeed()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.006ms returns 1000  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - SWD speed was reported as 1000kHz after requesting 2000kHz. Check the capabilities of the selected emulator.
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_GetSN()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.005ms returns 682571569  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.007ms  
    [2023-Sept-13 16:48:39] [debug] [  nRF52] - read_device_family
    [2023-Sept-13 16:48:39] [trace] [ Worker] - Command connect_to_emu_with_snr executed for 51 milliseconds with result 0
    [2023-Sept-13 16:48:39] [debug] [ Client] - read_connected_emu_snr
    [2023-Sept-13 16:48:39] [trace] [ Client] - Command read_connected_emu_snr executed for 14 milliseconds with result 0
    [2023-Sept-13 16:48:39] [debug] [ Client] - recover
    [2023-Sept-13 16:48:39] [debug] [  nRF52] - read_connected_emu_snr
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - is_connected_to_emu
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_IsOpen()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.015ms returns 0x01  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_Lock()  
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - read_connected_emu_snr
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.018ms  
    [2023-Sept-13 16:48:39] [trace] [ Worker] - Command read_connected_emu_snr executed for 0 milliseconds with result 0
    [2023-Sept-13 16:48:39] [debug] [  nRF52] - recover
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - is_connected_to_emu
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_IsOpen()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.024ms returns 0x01  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_Lock()  
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - is_connected_to_emu
    [2023-Sept-13 16:48:39] [debug] [  nRF52] - Just_recover
    [2023-Sept-13 16:48:39] [debug] [  nRF52] - Just_is_ctrl_ap_available
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - read_access_port_register
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - ---just_read_access_port_register
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - coresight_configure
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_GetHWStatus(...)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.155ms returns 0  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_Configure()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 101.071ms returns 0  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - read_debug_port_idr
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - read_debug_port_register
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - ---just_read_debug_port_register
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - ---just_select_debug_port_register
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - Select AP 255, DP Bank 0, AP Bank 255
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.757ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.793ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.775ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.770ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.767ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.750ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.739ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.802ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.751ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.765ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.734ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.743ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.779ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.776ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.745ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.743ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.791ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.905ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.796ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.770ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.747ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.756ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.732ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.749ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.779ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.745ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.736ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.767ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.734ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.797ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.734ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.741ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.760ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.752ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.740ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.742ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.838ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.859ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.774ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.754ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.799ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.758ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 1.995ms  
    [2023-Sept-13 16:48:39] [error] [ Worker] - An unknown error.
    [2023-Sept-13 16:48:39] [trace] [ Worker] - Command recover executed for 143 milliseconds with result -21
    [2023-Sept-13 16:48:39] [error] [ Client] - Encountered error -21: Command recover executed for 152 milliseconds with result -21
    [2023-Sept-13 16:48:39] [debug] [  nRF52] - close
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - is_connected_to_emu
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_IsOpen()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.013ms returns 0x01  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_Lock()  
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - close
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - disconnect_from_emu
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - ---just_disconnect_from_emu
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - is_connected_to_device
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_IsConnected()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.006ms returns FALSE  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - ---just_is_debug_region_powered
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - ---just_read_debug_port_register
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - ---just_select_debug_port_register
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - Select AP 255, DP Bank 0, AP Bank 255
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.778ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.829ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.776ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.767ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.744ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.733ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.743ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.735ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.740ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.792ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.770ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.764ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.762ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.755ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.745ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.812ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.906ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.799ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.756ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.772ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.809ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.781ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.782ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.829ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.758ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.738ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 1.333ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.850ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.787ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.859ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.778ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.820ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.752ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.900ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.759ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.786ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.806ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.835ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 1.157ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 1.088ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 1.070ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 1.069ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - Ignore exception An unknown error.
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.456ms  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_Close()  
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - Segger Backend closed.
    [2023-Sept-13 16:48:39] [debug] [  nRF52] - nRF family DLL closed
    [2023-Sept-13 16:48:39] [trace] [ Client] - Command close executed for 94 milliseconds with result 0
    [2023-Sept-13 16:48:39] [debug] [ Client] - terminate
    [2023-Sept-13 16:48:39] [trace] [ Worker] - Command close executed for 76 milliseconds with result 0
    [2023-Sept-13 16:48:39] [trace] [ Client] - Command terminate executed for 36 milliseconds with result 0
    [2023-Sept-13 16:48:39] [trace] [ Worker] - Command terminate executed for 0 milliseconds with result 0
    [2023-Sept-13 16:48:39] [trace] [ Worker] - Executed 8 commands for 286 milliseconds
    [2023-Sept-13 16:48:39] [debug] [ Client] - Worker process exited with code: 0
    [2023-Sept-13 16:48:39] [debug] [ Client] - Worker process exited with code: 0
    [2023-Sept-13 16:48:39] [debug] [ Client] - Child process terminated with result 0
    [2023-Sept-13 16:48:39] [trace] [ Client] - Executed 8 commands for 440 milliseconds
    [2023-Sept-13 16:48:39] [debug] [ Client] - terminate
    

    And yes I call "nrfjprog --recover -f nrf52"

    Thanks again

Reply
  • Oh! I though it was only for URL upload, sorry

    [2023-Sept-13 16:48:39] [debug] --------------------------------------------------------------------------------
    [2023-Sept-13 16:48:39] [debug] C:\Program Files\Nordic Semiconductor\nrf-command-line-tools\bin\nrfjprog.exe --recover -f nrf52 --log 
    [2023-Sept-13 16:48:39] [debug] nrfjprog version 10.23.0 external
    [2023-Sept-13 16:48:39] [debug] --------------------------------------------------------------------------------
    [2023-Sept-13 16:48:39] [ info] Load library at C:\Program Files\Nordic Semiconductor\nrf-command-line-tools\bin\nrfjprog.dll.
    [2023-Sept-13 16:48:39] [ info] Library loaded, loading member functions.
    [2023-Sept-13 16:48:39] [ info] Member functions succesfully loaded.
    [2023-Sept-13 16:48:39] [debug] [ Client] - open
    [2023-Sept-13 16:48:39] [debug] [ Client] - start
    [2023-Sept-13 16:48:39] [ info] [ Client] - stdout: Jlinkarm nRF Worker ready. Handling sequence 4fa841c6-c310-45f6-8085-f96d91b9652c.
    
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - Logger sink registered in Segger backend logger
    [2023-Sept-13 16:48:39] [debug] [  JLink] - Logger sink registered in JLink logger
    [2023-Sept-13 16:48:39] [debug] [  nRF52] - open
    [2023-Sept-13 16:48:39] [debug] [  nRF52] - just_check_family
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - open_dll
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - No J-Link DLL path was provided. Attempting to auto detect.
    [2023-Sept-13 16:48:39] [trace] [ Client] - Command open executed for 57 milliseconds with result 0
    [2023-Sept-13 16:48:39] [debug] [ Client] - config
    [2023-Sept-13 16:48:39] [ info] [SeggerBackend] - Load library at C:\Program Files\SEGGER\JLink\JLink_x64.dll.
    [2023-Sept-13 16:48:39] [ info] [SeggerBackend] - Library loaded, loading member functions.
    [2023-Sept-13 16:48:39] [ info] [SeggerBackend] - Member functions succesfully loaded.
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - Set batch mode
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - dll_version
    [2023-Sept-13 16:48:39] [ info] [SeggerBackend] - Segger dll version 7.80.c loaded.
    [2023-Sept-13 16:48:39] [trace] [ Worker] - Command open executed for 8 milliseconds with result 0
    [2023-Sept-13 16:48:39] [trace] [ Client] - Command config executed for 14 milliseconds with result 0
    [2023-Sept-13 16:48:39] [debug] [ Client] - enum_emu_snr
    [2023-Sept-13 16:48:39] [debug] [  nRF52] - config
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - enum_emu_snr
    [2023-Sept-13 16:48:39] [trace] [ Worker] - Command config executed for 4 milliseconds with result 0
    [2023-Sept-13 16:48:39] [trace] [ Client] - Command enum_emu_con_info executed for 14 milliseconds with result 0
    [2023-Sept-13 16:48:39] [debug] [ Client] - connect_to_emu_with_snr
    [2023-Sept-13 16:48:39] [debug] [  nRF52] - enum_emu_con_info
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - is_connected_to_emu
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - enum_emu_con_info
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - is_connected_to_emu
    [2023-Sept-13 16:48:39] [trace] [ Worker] - Command enum_emu_con_info executed for 4 milliseconds with result 0
    [2023-Sept-13 16:48:39] [debug] [  nRF52] - connect_to_emu_with_snr
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - is_connected_to_emu
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - connect_to_emu_with_snr
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - is_connected_to_emu
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - ---just_enum_emu_snr
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - ---just_get_num_emus
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - ---just_connect_to_emu_with_snr
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - ---just_connect_to_emu_without_snr
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - Segger logging enabled.
    [2023-Sept-13 16:48:39] [trace] [  JLink] - Firmware: J-Link OB-SAM3U128-V2-NordicSemi compiled Sep 21 2022 09:57:39
    [2023-Sept-13 16:48:39] [trace] [  JLink] - Firmware: J-Link OB-SAM3U128-V2-NordicSemi compiled Sep 21 2022 09:57:39
    [2023-Sept-13 16:48:39] [trace] [  JLink] - Hardware: V1.00
    [2023-Sept-13 16:48:39] [trace] [  JLink] - S/N: 682571569
    [2023-Sept-13 16:48:39] [trace] [  JLink] - OEM: SEGGER
    [2023-Sept-13 16:48:39] [trace] [  JLink] - Feature(s): RDI, FlashBP, FlashDL, JFlash, GDB
    [2023-Sept-13 16:48:39] [trace] [  JLink] - USB speed mode: High speed (480 MBit/s)
    [2023-Sept-13 16:48:39] [trace] [  JLink] - TELNET listener socket opened on port 19021
    [2023-Sept-13 16:48:39] [trace] [  JLink] - WEBSRV WEBSRV_Init(): Starting webserver thread(s)
    [2023-Sept-13 16:48:39] [trace] [  JLink] - WEBSRV Webserver running on local port 19080
    [2023-Sept-13 16:48:39] [trace] [ Client] - Command connect_to_emu_with_snr executed for 59 milliseconds with result 0
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 22.656ms returns "O.K."  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_Lock()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_ExecCommand("SetRestartOnClose = 0", ...).   
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.003ms returns 0x01  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_ExecCommand("DisableFlashDL", ...).   
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.004ms returns 0x00  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_ExecCommand("ExcludeFlashCacheRange 0x0-0xFFFFFFFF", ...).   
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.004ms returns 0x00  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_SetHookUnsecureDialog  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_SetHookUnsecureDialog(...)
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.014ms returns 0  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_TIF_Select(JLINKARM_TIF_SWD)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.483ms returns 0x00  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_GetSpeedInfo()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - 10000000 Hz / n, n >= 10
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.014ms  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - Connected emulator supports SWD speeds up to 1000kHz
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - Requested speed 2000kHz is higher than the emulator max speed of 1000kHz
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_SetSpeed(2000)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.068ms  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_GetSpeed()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.006ms returns 1000  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - SWD speed was reported as 1000kHz after requesting 2000kHz. Check the capabilities of the selected emulator.
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_GetSN()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.005ms returns 682571569  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.007ms  
    [2023-Sept-13 16:48:39] [debug] [  nRF52] - read_device_family
    [2023-Sept-13 16:48:39] [trace] [ Worker] - Command connect_to_emu_with_snr executed for 51 milliseconds with result 0
    [2023-Sept-13 16:48:39] [debug] [ Client] - read_connected_emu_snr
    [2023-Sept-13 16:48:39] [trace] [ Client] - Command read_connected_emu_snr executed for 14 milliseconds with result 0
    [2023-Sept-13 16:48:39] [debug] [ Client] - recover
    [2023-Sept-13 16:48:39] [debug] [  nRF52] - read_connected_emu_snr
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - is_connected_to_emu
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_IsOpen()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.015ms returns 0x01  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_Lock()  
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - read_connected_emu_snr
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.018ms  
    [2023-Sept-13 16:48:39] [trace] [ Worker] - Command read_connected_emu_snr executed for 0 milliseconds with result 0
    [2023-Sept-13 16:48:39] [debug] [  nRF52] - recover
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - is_connected_to_emu
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_IsOpen()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.024ms returns 0x01  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_Lock()  
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - is_connected_to_emu
    [2023-Sept-13 16:48:39] [debug] [  nRF52] - Just_recover
    [2023-Sept-13 16:48:39] [debug] [  nRF52] - Just_is_ctrl_ap_available
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - read_access_port_register
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - ---just_read_access_port_register
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - coresight_configure
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_GetHWStatus(...)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.155ms returns 0  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_Configure()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 101.071ms returns 0  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - read_debug_port_idr
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - read_debug_port_register
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - ---just_read_debug_port_register
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - ---just_select_debug_port_register
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - Select AP 255, DP Bank 0, AP Bank 255
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.757ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.793ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.775ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.770ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.767ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.750ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.739ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.802ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.751ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.765ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.734ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.743ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.779ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.776ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.745ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.743ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.791ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.905ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.796ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.770ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.747ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.756ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.732ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.749ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.779ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.745ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.736ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.767ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.734ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.797ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.734ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.741ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.760ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.752ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.740ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.742ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.838ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.859ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.774ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.754ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.799ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.758ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 1.995ms  
    [2023-Sept-13 16:48:39] [error] [ Worker] - An unknown error.
    [2023-Sept-13 16:48:39] [trace] [ Worker] - Command recover executed for 143 milliseconds with result -21
    [2023-Sept-13 16:48:39] [error] [ Client] - Encountered error -21: Command recover executed for 152 milliseconds with result -21
    [2023-Sept-13 16:48:39] [debug] [  nRF52] - close
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - is_connected_to_emu
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_IsOpen()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.013ms returns 0x01  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_Lock()  
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - close
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - disconnect_from_emu
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - ---just_disconnect_from_emu
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - is_connected_to_device
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_IsConnected()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.006ms returns FALSE  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - ---just_is_debug_region_powered
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - ---just_read_debug_port_register
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - ---just_select_debug_port_register
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - Select AP 255, DP Bank 0, AP Bank 255
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.778ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.829ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.776ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.767ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.744ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.733ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.743ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.735ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.740ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.792ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.770ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.764ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.762ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.755ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.745ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.812ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.906ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.799ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.756ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.772ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.809ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.781ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.782ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.829ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.758ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.738ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 1.333ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.850ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.787ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.859ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.778ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.820ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.752ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.900ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.759ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.786ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.806ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.835ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 1.157ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 1.088ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 1.070ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 1.069ms returns -1  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_HasError()  
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - Ignore exception An unknown error.
    [2023-Sept-13 16:48:39] [trace] [  JLink] - - 0.456ms  
    [2023-Sept-13 16:48:39] [trace] [  JLink] - JLINK_Close()  
    [2023-Sept-13 16:48:39] [debug] [SeggerBackend] - Segger Backend closed.
    [2023-Sept-13 16:48:39] [debug] [  nRF52] - nRF family DLL closed
    [2023-Sept-13 16:48:39] [trace] [ Client] - Command close executed for 94 milliseconds with result 0
    [2023-Sept-13 16:48:39] [debug] [ Client] - terminate
    [2023-Sept-13 16:48:39] [trace] [ Worker] - Command close executed for 76 milliseconds with result 0
    [2023-Sept-13 16:48:39] [trace] [ Client] - Command terminate executed for 36 milliseconds with result 0
    [2023-Sept-13 16:48:39] [trace] [ Worker] - Command terminate executed for 0 milliseconds with result 0
    [2023-Sept-13 16:48:39] [trace] [ Worker] - Executed 8 commands for 286 milliseconds
    [2023-Sept-13 16:48:39] [debug] [ Client] - Worker process exited with code: 0
    [2023-Sept-13 16:48:39] [debug] [ Client] - Worker process exited with code: 0
    [2023-Sept-13 16:48:39] [debug] [ Client] - Child process terminated with result 0
    [2023-Sept-13 16:48:39] [trace] [ Client] - Executed 8 commands for 440 milliseconds
    [2023-Sept-13 16:48:39] [debug] [ Client] - terminate
    

    And yes I call "nrfjprog --recover -f nrf52"

    Thanks again

Children
  • Thanks for the log.

    Unfortunately, it shows that there's no successful contact with the nRF-chip at all.

     

    Could you share a picture of the nRF52-DK board? I just want to check all the switch positions and so forth, in case there's anything there.

     

    Kind regards,

    Håkon

  • Hi,

     

    You have an older engineering device, which is reflected by the <v1.0 version of the nRF52-DK. You should use a newer DK, ideally equal to the IC revision that you will go into production with, which is highly likely nRF52832 revision 3.

     

    Kind regards,

    Håkon

  • OK thank you. I am wonder why it worked up thru the course "nRfconnect sdk Fundamental" and now it does not work for the "BLE fundamental" course. Too bad I was using it to train me using Nordic products.

    Is it possible to upgrade the board by the firmware? Or the softDevice?

  • Hi,

     

    Given that one of the LEDs are turned on, it might indicate that there's firmware running on your device.

    You can try two other options:

    * Use J-Link Commander to recover the device

    * Use a batch script that runs "nrfjprog --recover -f nrf52" in a loop

     

    Here's a way to use J-Link Commander (search in the start meny for it):

    device NRF52
    si 1
    speed 1000
    connect

     

    Here's an example of how it should look when it has been successfully found

    Type "connect" to establish a target connection, '?' for help
    J-Link>device nrf52
    J-Link>si 1
    Selecting SWD as current target interface.
    J-Link>speed 1000
    Selecting 1000 kHz as target interface speed
    J-Link>connect
    Device "NRF52" selected.
    
    
    Connecting to target via SWD
    InitTarget() start
    InitTarget() end
    Found SW-DP with ID 0x2BA01477
    DPIDR: 0x2BA01477
    CoreSight SoC-400 or earlier
    Scanning AP map to find all available APs
    AP[2]: Stopped AP scan as end of AP map has been reached
    AP[0]: AHB-AP (IDR: 0x24770011)
    AP[1]: JTAG-AP (IDR: 0x02880000)
    Iterating through AP map to find AHB-AP to use
    AP[0]: Core found
    AP[0]: AHB-AP ROM base: 0xE00FF000
    CPUID register: 0x410FC241. Implementer code: 0x41 (ARM)
    Found Cortex-M4 r0p1, Little endian.
    FPUnit: 6 code (BP) slots and 2 literal slots
    CoreSight components:
    ROMTbl[0] @ E00FF000
    [0][0]: E000E000 CID B105E00D PID 000BB00C SCS-M7
    [0][1]: E0001000 CID B105E00D PID 003BB002 DWT
    [0][2]: E0002000 CID B105E00D PID 002BB003 FPB
    [0][3]: E0000000 CID B105E00D PID 003BB001 ITM
    [0][4]: E0040000 CID B105900D PID 000BB9A1 TPIU
    [0][5]: E0041000 CID B105900D PID 000BB925 ETM
    Cortex-M4 identified.
     

     

    And here is a batch-script which will run recover continuously:

     RE: nRF52832 not connected anymore after first trying to debug (Keil) 

     

    Kind regards,

    Håkon

Related