Converting nRF52840-DK to BLE sniffer

Hi,

I'm following the guide to convert nRF52840-DK to a sniffer but I couldn't manage to flash the .hex with the "Programmer 3.0.4" software: it listed the device but it didn't allow me to load the new .hex (Erase & write button is disabled). Do I need to do any extra step to flash the firmware to the board?

Thank you

  • Hi there,

    Some questions:

    1. Which revision of the nRF52840 DK are you using? It should be printed on a sticker on your development kit.
    2. Are you able to flash the development kit with any other fw such as the examples in our SDK?
    3. Have you done any modifications on the development kit such as soldering or cutting the onboard solder bridges?

    regards

    Jared 

    1. It's PCA10056 2.0.1 2020.25
    2. I've been able to flash other firmware using If BOOT/RESET button (J-Link OB-SAM3U128-V2-NordicSemi 170724.bin) but I usually use the board to flash external boards.
    3. No, I just plugged external wires to flash SWD devices, but now they are removed.
  • Hi,

    Are you able to flash examples using nRF Command Line Tools?

    For example, if you're using nRF5 SDK you could flash the blinky example with:

    nrfjprog --program blinky_pca10056.hex --chiperase --verify

    You find the hex in the nRF5SDK at:

    SDK_ROOT\examples\peripheral\blinky\hex

    regards

    Jared 

  • It failed with the following code:

    [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.

    Adding the --log file I ended with the following file:

    [2023-Feb-03 11:29:11] [debug] --------------------------------------------------------------------------------
    [2023-Feb-03 11:29:11] [debug] nrfjprog --program blinky_pca10056.hex --chiperase --verify --log 
    [2023-Feb-03 11:29:11] [debug] nrfjprog version 10.18.1 external
    [2023-Feb-03 11:29:11] [debug] --------------------------------------------------------------------------------
    [2023-Feb-03 11:29:11] [ info] Load library at C:\Program Files (x86)\Nordic Semiconductor\nrf-command-line-tools\bin\nrfjprog.dll.
    [2023-Feb-03 11:29:11] [ info] Library loaded, loading member functions.
    [2023-Feb-03 11:29:11] [ info] Member functions succesfully loaded.
    [2023-Feb-03 11:29:11] [debug] [ Client] - open
    [2023-Feb-03 11:29:11] [debug] [ Client] - start
    [2023-Feb-03 11:29:11] [ info] [ Client] - stdout: Jlinkarm nRF Worker ready. Handling sequence eaf43c12-5399-49a2-95ec-5367ab76a41d.
    
    [2023-Feb-03 11:29:11] [trace] [ Client] - Command open executed for 283 milliseconds with result 0
    [2023-Feb-03 11:29:11] [debug] [ Client] - config
    [2023-Feb-03 11:29:11] [trace] [ Client] - Command config executed for 17 milliseconds with result 0
    [2023-Feb-03 11:29:11] [debug] [ Client] - enum_emu_snr
    [2023-Feb-03 11:29:12] [trace] [ Client] - Command enum_emu_con_info executed for 17 milliseconds with result 0
    [2023-Feb-03 11:29:12] [debug] [ Client] - connect_to_emu_with_snr
    [2023-Feb-03 11:29:12] [debug] [SeggerBackend] - Logger sink registered in Segger backend logger
    [2023-Feb-03 11:29:12] [debug] [  JLink] - Logger sink registered in JLink logger
    [2023-Feb-03 11:29:12] [debug] [  nRFXX] - open
    [2023-Feb-03 11:29:12] [debug] [  nRFXX] - just_check_family
    [2023-Feb-03 11:29:12] [debug] [SeggerBackend] - open_dll
    [2023-Feb-03 11:29:12] [debug] [SeggerBackend] - No J-Link DLL path was provided. Attempting to auto detect.
    [2023-Feb-03 11:29:12] [ info] [SeggerBackend] - Load library at C:\Program Files (x86)\SEGGER\JLink\JLinkARM.dll.
    [2023-Feb-03 11:29:12] [ info] [SeggerBackend] - Library loaded, loading member functions.
    [2023-Feb-03 11:29:12] [ info] [SeggerBackend] - Member functions succesfully loaded.
    [2023-Feb-03 11:29:12] [debug] [SeggerBackend] - Set batch mode
    [2023-Feb-03 11:29:12] [debug] [SeggerBackend] - dll_version
    [2023-Feb-03 11:29:12] [ info] [SeggerBackend] - Segger dll version 7.80.c loaded.
    [2023-Feb-03 11:29:12] [trace] [ Worker] - Command open executed for 18 milliseconds with result 0
    [2023-Feb-03 11:29:12] [debug] [  nRFXX] - config
    [2023-Feb-03 11:29:12] [trace] [ Worker] - Command config executed for 16 milliseconds with result 0
    [2023-Feb-03 11:29:12] [debug] [  nRFXX] - enum_emu_con_info
    [2023-Feb-03 11:29:12] [debug] [SeggerBackend] - is_connected_to_emu
    [2023-Feb-03 11:29:12] [debug] [SeggerBackend] - enum_emu_con_info
    [2023-Feb-03 11:29:12] [debug] [SeggerBackend] - is_connected_to_emu
    [2023-Feb-03 11:29:12] [trace] [ Worker] - Command enum_emu_con_info executed for 8 milliseconds with result 0
    [2023-Feb-03 11:29:12] [debug] [  nRFXX] - connect_to_emu_with_snr
    [2023-Feb-03 11:29:12] [debug] [SeggerBackend] - is_connected_to_emu
    [2023-Feb-03 11:29:12] [debug] [SeggerBackend] - connect_to_emu_with_snr
    [2023-Feb-03 11:29:12] [debug] [SeggerBackend] - is_connected_to_emu
    [2023-Feb-03 11:29:12] [debug] [SeggerBackend] - ---just_enum_emu_snr
    [2023-Feb-03 11:29:12] [debug] [SeggerBackend] - ---just_get_num_emus
    [2023-Feb-03 11:29:12] [debug] [SeggerBackend] - ---just_connect_to_emu_with_snr
    [2023-Feb-03 11:29:12] [debug] [SeggerBackend] - ---just_connect_to_emu_without_snr
    [2023-Feb-03 11:29:12] [debug] [SeggerBackend] - Segger logging enabled.
    [2023-Feb-03 11:29:12] [trace] [  JLink] - Firmware: J-Link OB-SAM3U128-V2-NordicSemi compiled Sep 21 2022 09:57:39
    [2023-Feb-03 11:29:12] [trace] [  JLink] - Firmware: J-Link OB-SAM3U128-V2-NordicSemi compiled Sep 21 2022 09:57:39
    [2023-Feb-03 11:29:12] [trace] [  JLink] - Hardware: V1.00
    [2023-Feb-03 11:29:12] [trace] [  JLink] - S/N: 683712867
    [2023-Feb-03 11:29:12] [trace] [  JLink] - OEM: SEGGER
    [2023-Feb-03 11:29:12] [trace] [  JLink] - Feature(s): RDI, FlashBP, FlashDL, JFlash, GDB
    [2023-Feb-03 11:29:12] [trace] [  JLink] - USB speed mode: High speed (480 MBit/s)
    [2023-Feb-03 11:29:12] [trace] [  JLink] - TELNET listener socket opened on port 19021
    [2023-Feb-03 11:29:12] [trace] [  JLink] - WEBSRV WEBSRV_Init(): Starting webserver thread(s)
    [2023-Feb-03 11:29:12] [trace] [  JLink] - WEBSRV Webserver running on local port 19080
    [2023-Feb-03 11:29:12] [trace] [ Client] - Command connect_to_emu_with_snr executed for 251 milliseconds with result 0
    [2023-Feb-03 11:29:12] [debug] [ Client] - read_connected_emu_snr
    [2023-Feb-03 11:29:12] [trace] [  JLink] - - 164.650ms returns "O.K."  
    [2023-Feb-03 11:29:12] [trace] [  JLink] - JLINK_HasError()  
    [2023-Feb-03 11:29:12] [trace] [  JLink] - JLINK_Lock()  
    [2023-Feb-03 11:29:12] [trace] [  JLink] - JLINK_ExecCommand("SetRestartOnClose = 0", ...).   
    [2023-Feb-03 11:29:12] [trace] [  JLink] - - 0.014ms returns 0x01  
    [2023-Feb-03 11:29:12] [trace] [  JLink] - JLINK_HasError()  
    [2023-Feb-03 11:29:12] [trace] [  JLink] - JLINK_ExecCommand("DisableFlashDL", ...).   
    [2023-Feb-03 11:29:12] [trace] [  JLink] - - 0.011ms returns 0x00  
    [2023-Feb-03 11:29:12] [trace] [  JLink] - JLINK_HasError()  
    [2023-Feb-03 11:29:12] [trace] [  JLink] - JLINK_ExecCommand("ExcludeFlashCacheRange 0x0-0xFFFFFFFF", ...).   
    [2023-Feb-03 11:29:12] [trace] [  JLink] - - 0.020ms returns 0x00  
    [2023-Feb-03 11:29:12] [trace] [  JLink] - JLINK_HasError()  
    [2023-Feb-03 11:29:12] [trace] [  JLink] - JLINK_SetHookUnsecureDialog  
    [2023-Feb-03 11:29:12] [trace] [  JLink] - JLINK_SetHookUnsecureDialog(...)
    [2023-Feb-03 11:29:12] [trace] [  JLink] - - 0.066ms returns 0  
    [2023-Feb-03 11:29:12] [trace] [  JLink] - JLINK_HasError()  
    [2023-Feb-03 11:29:12] [trace] [  JLink] - JLINK_TIF_Select(JLINKARM_TIF_SWD)  
    [2023-Feb-03 11:29:12] [trace] [  JLink] - - 0.944ms returns 0x00  
    [2023-Feb-03 11:29:12] [trace] [  JLink] - JLINK_HasError()  
    [2023-Feb-03 11:29:12] [trace] [  JLink] - JLINK_GetSpeedInfo()  
    [2023-Feb-03 11:29:12] [trace] [  JLink] - 10000000 Hz / n, n >= 10
    [2023-Feb-03 11:29:12] [trace] [  JLink] - - 0.061ms  
    [2023-Feb-03 11:29:12] [trace] [  JLink] - JLINK_HasError()  
    [2023-Feb-03 11:29:12] [debug] [SeggerBackend] - Connected emulator supports SWD speeds up to 1000kHz
    [2023-Feb-03 11:29:12] [debug] [SeggerBackend] - Requested speed 2000kHz is higher than the emulator max speed of 1000kHz
    [2023-Feb-03 11:29:12] [trace] [  JLink] - JLINK_SetSpeed(2000)  
    [2023-Feb-03 11:29:12] [trace] [  JLink] - - 0.213ms  
    [2023-Feb-03 11:29:12] [trace] [  JLink] - JLINK_HasError()  
    [2023-Feb-03 11:29:12] [trace] [  JLink] - JLINK_GetSpeed()  
    [2023-Feb-03 11:29:12] [trace] [  JLink] - - 0.031ms returns 1000  
    [2023-Feb-03 11:29:12] [trace] [  JLink] - JLINK_HasError()  
    [2023-Feb-03 11:29:12] [debug] [SeggerBackend] - SWD speed was reported as 1000kHz after requesting 2000kHz. Check the capabilities of the selected emulator.
    [2023-Feb-03 11:29:12] [trace] [  JLink] - JLINK_GetSN()  
    [2023-Feb-03 11:29:12] [trace] [  JLink] - - 0.029ms returns 683712867  
    [2023-Feb-03 11:29:12] [trace] [  JLink] - JLINK_HasError()  
    [2023-Feb-03 11:29:12] [trace] [  JLink] - - 0.035ms  
    [2023-Feb-03 11:29:12] [trace] [ Worker] - Command connect_to_emu_with_snr executed for 216 milliseconds with result 0
    [2023-Feb-03 11:29:12] [trace] [ Client] - Command read_connected_emu_snr executed for 20 milliseconds with result 0
    [2023-Feb-03 11:29:12] [debug] [ Client] - read_device_family
    [2023-Feb-03 11:29:12] [debug] [  nRFXX] - read_connected_emu_snr
    [2023-Feb-03 11:29:12] [debug] [SeggerBackend] - is_connected_to_emu
    [2023-Feb-03 11:29:12] [trace] [  JLink] - JLINK_IsOpen()  
    [2023-Feb-03 11:29:12] [trace] [  JLink] - - 0.045ms returns 0x01  
    [2023-Feb-03 11:29:12] [trace] [  JLink] - JLINK_HasError()  
    [2023-Feb-03 11:29:12] [trace] [  JLink] - JLINK_Lock()  
    [2023-Feb-03 11:29:12] [debug] [SeggerBackend] - read_connected_emu_snr
    [2023-Feb-03 11:29:12] [trace] [  JLink] - - 0.030ms  
    [2023-Feb-03 11:29:12] [trace] [ Worker] - Command read_connected_emu_snr executed for 0 milliseconds with result 0
    [2023-Feb-03 11:29:12] [debug] [  nRFXX] - read_device_family
    [2023-Feb-03 11:29:12] [debug] [SeggerBackend] - is_connected_to_emu
    [2023-Feb-03 11:29:12] [trace] [  JLink] - JLINK_IsOpen()  
    [2023-Feb-03 11:29:12] [trace] [  JLink] - - 0.045ms returns 0x01  
    [2023-Feb-03 11:29:12] [trace] [  JLink] - JLINK_HasError()  
    [2023-Feb-03 11:29:12] [trace] [  JLink] - JLINK_Lock()  
    [2023-Feb-03 11:29:12] [debug] [SeggerBackend] - read_debug_port_idr
    [2023-Feb-03 11:29:12] [debug] [SeggerBackend] - read_debug_port_register
    [2023-Feb-03 11:29:12] [debug] [SeggerBackend] - ---just_read_debug_port_register
    [2023-Feb-03 11:29:12] [debug] [SeggerBackend] - coresight_configure
    [2023-Feb-03 11:29:12] [trace] [  JLink] - JLINK_GetHWStatus(...)  
    [2023-Feb-03 11:29:12] [trace] [  JLink] - - 22.080ms returns 0  
    [2023-Feb-03 11:29:12] [trace] [  JLink] - JLINK_HasError()  
    [2023-Feb-03 11:29:12] [trace] [  JLink] - JLINK_CORESIGHT_Configure()  
    [2023-Feb-03 11:29:12] [trace] [  JLink] - - 121.906ms returns 0  
    [2023-Feb-03 11:29:12] [trace] [  JLink] - JLINK_HasError()  
    [2023-Feb-03 11:29:12] [debug] [SeggerBackend] - read_debug_port_idr
    [2023-Feb-03 11:29:12] [debug] [SeggerBackend] - read_debug_port_register
    [2023-Feb-03 11:29:12] [debug] [SeggerBackend] - ---just_read_debug_port_register
    [2023-Feb-03 11:29:12] [debug] [SeggerBackend] - ---just_select_debug_port_register
    [2023-Feb-03 11:29:12] [debug] [SeggerBackend] - Select AP 255, DP Bank 0, AP Bank 255
    [2023-Feb-03 11:29:12] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2023-Feb-03 11:29:12] [trace] [  JLink] - - 19.089ms returns -1  
    [2023-Feb-03 11:29:12] [trace] [  JLink] - JLINK_HasError()  
    [2023-Feb-03 11:29:12] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-Feb-03 11:29:12] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2023-Feb-03 11:29:12] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2023-Feb-03 11:29:12] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Feb-03 11:29:12] [trace] [  JLink] - - 9.368ms returns -1  
    [2023-Feb-03 11:29:12] [trace] [  JLink] - JLINK_HasError()  
    [2023-Feb-03 11:29:12] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-Feb-03 11:29:12] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Feb-03 11:29:12] [trace] [  JLink] - - 12.907ms returns -1  
    [2023-Feb-03 11:29:12] [trace] [  JLink] - JLINK_HasError()  
    [2023-Feb-03 11:29:12] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-Feb-03 11:29:12] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Feb-03 11:29:12] [trace] [  JLink] - - 5.101ms returns -1  
    [2023-Feb-03 11:29:12] [trace] [  JLink] - JLINK_HasError()  
    [2023-Feb-03 11:29:12] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-Feb-03 11:29:12] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Feb-03 11:29:12] [trace] [  JLink] - - 2.734ms returns -1  
    [2023-Feb-03 11:29:12] [trace] [  JLink] - JLINK_HasError()  
    [2023-Feb-03 11:29:12] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-Feb-03 11:29:12] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Feb-03 11:29:12] [trace] [  JLink] - - 1.240ms returns -1  
    [2023-Feb-03 11:29:12] [trace] [  JLink] - JLINK_HasError()  
    [2023-Feb-03 11:29:12] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-Feb-03 11:29:12] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2023-Feb-03 11:29:12] [trace] [  JLink] - - 6.543ms returns -1  
    [2023-Feb-03 11:29:12] [trace] [  JLink] - JLINK_HasError()  
    [2023-Feb-03 11:29:12] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-Feb-03 11:29:12] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2023-Feb-03 11:29:12] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2023-Feb-03 11:29:12] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Feb-03 11:29:12] [trace] [  JLink] - - 18.821ms returns -1  
    [2023-Feb-03 11:29:12] [trace] [  JLink] - JLINK_HasError()  
    [2023-Feb-03 11:29:12] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-Feb-03 11:29:12] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Feb-03 11:29:12] [trace] [  JLink] - - 9.163ms returns -1  
    [2023-Feb-03 11:29:12] [trace] [  JLink] - JLINK_HasError()  
    [2023-Feb-03 11:29:12] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-Feb-03 11:29:12] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Feb-03 11:29:12] [trace] [  JLink] - - 14.356ms returns -1  
    [2023-Feb-03 11:29:12] [trace] [  JLink] - JLINK_HasError()  
    [2023-Feb-03 11:29:12] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-Feb-03 11:29:12] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Feb-03 11:29:12] [trace] [  JLink] - - 9.528ms returns -1  
    [2023-Feb-03 11:29:12] [trace] [  JLink] - JLINK_HasError()  
    [2023-Feb-03 11:29:12] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-Feb-03 11:29:12] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Feb-03 11:29:12] [trace] [  JLink] - - 21.676ms returns -1  
    [2023-Feb-03 11:29:12] [trace] [  JLink] - JLINK_HasError()  
    [2023-Feb-03 11:29:12] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-Feb-03 11:29:12] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2023-Feb-03 11:29:12] [trace] [  JLink] - - 16.178ms returns -1  
    [2023-Feb-03 11:29:12] [trace] [  JLink] - JLINK_HasError()  
    [2023-Feb-03 11:29:12] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-Feb-03 11:29:12] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2023-Feb-03 11:29:12] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2023-Feb-03 11:29:12] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Feb-03 11:29:12] [trace] [  JLink] - - 6.675ms returns -1  
    [2023-Feb-03 11:29:12] [trace] [  JLink] - JLINK_HasError()  
    [2023-Feb-03 11:29:12] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-Feb-03 11:29:12] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Feb-03 11:29:12] [trace] [  JLink] - - 32.676ms returns -1  
    [2023-Feb-03 11:29:12] [trace] [  JLink] - JLINK_HasError()  
    [2023-Feb-03 11:29:12] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-Feb-03 11:29:12] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Feb-03 11:29:12] [trace] [  JLink] - - 35.586ms returns -1  
    [2023-Feb-03 11:29:12] [trace] [  JLink] - JLINK_HasError()  
    [2023-Feb-03 11:29:12] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - - 6.951ms returns -1  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_HasError()  
    [2023-Feb-03 11:29:13] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-Feb-03 11:29:13] [trace] [ Client] - Command read_device_family executed for 754 milliseconds with result -102
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - - 13.352ms returns -1  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_HasError()  
    [2023-Feb-03 11:29:13] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - - 6.517ms returns -1  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_HasError()  
    [2023-Feb-03 11:29:13] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-Feb-03 11:29:13] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2023-Feb-03 11:29:13] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - - 14.124ms returns -1  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_HasError()  
    [2023-Feb-03 11:29:13] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - - 30.422ms returns -1  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_HasError()  
    [2023-Feb-03 11:29:13] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - - 22.104ms returns -1  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_HasError()  
    [2023-Feb-03 11:29:13] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - - 38.770ms returns -1  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_HasError()  
    [2023-Feb-03 11:29:13] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - - 36.900ms returns -1  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_HasError()  
    [2023-Feb-03 11:29:13] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - - 44.089ms returns -1  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_HasError()  
    [2023-Feb-03 11:29:13] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-Feb-03 11:29:13] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2023-Feb-03 11:29:13] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - - 19.642ms returns -1  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_HasError()  
    [2023-Feb-03 11:29:13] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - - 29.765ms returns -1  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_HasError()  
    [2023-Feb-03 11:29:13] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - - 34.073ms returns -1  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_HasError()  
    [2023-Feb-03 11:29:13] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - - 24.220ms returns -1  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_HasError()  
    [2023-Feb-03 11:29:13] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - - 31.770ms returns -1  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_HasError()  
    [2023-Feb-03 11:29:13] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-Feb-03 11:29:13] [trace] [  JLink] - - 0.079ms  
    [2023-Feb-03 11:29:13] [trace] [ Worker] - Command read_device_family executed for 729 milliseconds with result -102
    [2023-Feb-03 11:29:13] [debug] [  nRFXX] - close
    [2023-Feb-03 11:29:13] [debug] [SeggerBackend] - is_connected_to_emu
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_IsOpen()  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - - 0.050ms returns 0x01  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_HasError()  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_Lock()  
    [2023-Feb-03 11:29:13] [debug] [SeggerBackend] - close
    [2023-Feb-03 11:29:13] [debug] [SeggerBackend] - disconnect_from_emu
    [2023-Feb-03 11:29:13] [debug] [SeggerBackend] - ---just_disconnect_from_emu
    [2023-Feb-03 11:29:13] [debug] [SeggerBackend] - is_connected_to_device
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_IsConnected()  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - - 0.082ms returns FALSE  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_HasError()  
    [2023-Feb-03 11:29:13] [debug] [SeggerBackend] - ---just_is_debug_region_powered
    [2023-Feb-03 11:29:13] [debug] [SeggerBackend] - ---just_read_debug_port_register
    [2023-Feb-03 11:29:13] [debug] [SeggerBackend] - ---just_select_debug_port_register
    [2023-Feb-03 11:29:13] [debug] [SeggerBackend] - Select AP 255, DP Bank 0, AP Bank 255
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - - 16.652ms returns -1  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_HasError()  
    [2023-Feb-03 11:29:13] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-Feb-03 11:29:13] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2023-Feb-03 11:29:13] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - - 7.991ms returns -1  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_HasError()  
    [2023-Feb-03 11:29:13] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - - 27.141ms returns -1  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_HasError()  
    [2023-Feb-03 11:29:13] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - - 9.809ms returns -1  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_HasError()  
    [2023-Feb-03 11:29:13] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - - 10.323ms returns -1  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_HasError()  
    [2023-Feb-03 11:29:13] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - - 9.864ms returns -1  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_HasError()  
    [2023-Feb-03 11:29:13] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - - 17.337ms returns -1  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_HasError()  
    [2023-Feb-03 11:29:13] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-Feb-03 11:29:13] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2023-Feb-03 11:29:13] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - - 36.102ms returns -1  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_HasError()  
    [2023-Feb-03 11:29:13] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - - 27.649ms returns -1  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_HasError()  
    [2023-Feb-03 11:29:13] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - - 21.091ms returns -1  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_HasError()  
    [2023-Feb-03 11:29:13] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - - 9.572ms returns -1  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_HasError()  
    [2023-Feb-03 11:29:13] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - - 6.631ms returns -1  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_HasError()  
    [2023-Feb-03 11:29:13] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - - 13.883ms returns -1  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_HasError()  
    [2023-Feb-03 11:29:13] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-Feb-03 11:29:13] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2023-Feb-03 11:29:13] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - - 3.432ms returns -1  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_HasError()  
    [2023-Feb-03 11:29:13] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - - 1.947ms returns -1  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_HasError()  
    [2023-Feb-03 11:29:13] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - - 4.365ms returns -1  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_HasError()  
    [2023-Feb-03 11:29:13] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - - 10.691ms returns -1  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_HasError()  
    [2023-Feb-03 11:29:13] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - - 32.371ms returns -1  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_HasError()  
    [2023-Feb-03 11:29:13] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-Feb-03 11:29:13] [trace] [ Client] - Command close executed for 551 milliseconds with result 0
    [2023-Feb-03 11:29:13] [debug] [ Client] - terminate
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - - 24.930ms returns -1  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_HasError()  
    [2023-Feb-03 11:29:13] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-Feb-03 11:29:13] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2023-Feb-03 11:29:13] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - - 11.840ms returns -1  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_HasError()  
    [2023-Feb-03 11:29:13] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - - 16.335ms returns -1  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_HasError()  
    [2023-Feb-03 11:29:13] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - - 8.261ms returns -1  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_HasError()  
    [2023-Feb-03 11:29:13] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - - 7.015ms returns -1  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_HasError()  
    [2023-Feb-03 11:29:13] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-Feb-03 11:29:13] [trace] [ Client] - Command terminate executed for 12 milliseconds with result 0
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - - 16.559ms returns -1  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_HasError()  
    [2023-Feb-03 11:29:13] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - - 12.386ms returns -1  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_HasError()  
    [2023-Feb-03 11:29:13] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-Feb-03 11:29:13] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2023-Feb-03 11:29:13] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - - 30.806ms returns -1  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_HasError()  
    [2023-Feb-03 11:29:13] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - - 10.646ms returns -1  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_HasError()  
    [2023-Feb-03 11:29:13] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-Feb-03 11:29:13] [debug] [ Client] - Worker process exited with code: 0
    [2023-Feb-03 11:29:13] [debug] [ Client] - Worker process exited with code: 0
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - - 20.104ms returns -1  
    [2023-Feb-03 11:29:13] [trace] [  JLink] - JLINK_HasError()  
    [2023-Feb-03 11:29:13] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-Feb-03 11:29:13] [debug] [ Client] - Child process terminated with result 0
    [2023-Feb-03 11:29:13] [trace] [ Client] - Executed 8 commands for 1905 milliseconds
    [2023-Feb-03 11:29:13] [debug] [ Client] - terminate
    

    I usually flash using Zehyr build, and I checked that is still working.

  • Hi,

    Seems like you have an issue with nRF Command line Tools. 

    What are you using to flash it after building the project? Are you using VS Code to flash it? Or do you always set the board in bootloader mode and then drag the hex file over to the folder after building the project?

    regards

    Jared 

Related