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

Thingy:91 unresponsive after flashing with J-Link

Hi,

I'm having some troubles with the Thingy:91 because it became unresponsive after I flashed the device with the mqtt_sample firmware.

I built the mqtt_sample with segger embedded studio, then I flashed the merged.hex output file using an external programmer (J-Link EDU Mini) through segger embedded studio.

Now the device is completely dead: If I try to flash the asset tracker application with MCU Boot using USB cable it completes the flashing procedure but then nothing happens, no led flashing and no debug output on LTE Monitor.

Also I'm not able anymore to connect the J-Link with the target (neither with Segger J-Link tools or with Nordic tools).

If I try 

nrfjprog -f nrf91 -r
i receive the following output:

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.
NOTE: For additional output, try running again with logging enabled (--log).
NOTE: Any generated log error messages will be displayed.

Have I done something wrong? Which is the correct procedure to make the device work again?

Thank you very much, 

Grein

  • Hello, 

    In what position is the SWD Select switch (SW2) set? Make sure that it is set to nRF91 when programming the nRF91, and to nRF52 when programming the nRF52, when using a JLink external debugger. The onboard nRF52840 is the device managing the connectivity with between the computer and Thingy:91 (running Connectivity Bridge application).

    Please reprogram, using JLink EDU mini, the nRF52 with the Connectivity Bridge while SW2=nRF52, then switch SW2 to nRF91 and program the asset tracker application. 

    Kind regards,
    Øyvind

  • Hi Øyvind,

    thank you for the answer. When I flashed the device with the mqtt_simple sample the SWD switch was set to nRF91 (how it is supposed to be, right?). 

    How can I reprogram the application with J-Link if it is not able to connect to target? If I run J-Link Commander application it reads VTref to 3V so I suppose it is able to see the target, but then if I type "connect" it fails to connect to target ("Connecting to target via SWD - Cannot connect to target") Same thing happens if I try to connect J-Link on Segger embedded studio. 

    How should I do?

    Thank you,

    Grein

  • Hi Grein, 

    What version of nrfjprog and JLink are you running? Please run nrfjprog --version and provide the output. Have you checked that there is noe issues with the SWD cable?

    Does every nrfjprog command return the same output from your initial post? Can you please provide the generated log.log file as it instructs?

    Thanks. 

    Kind regards,
    Øyvind

  • Hi Øyvind,

    this is the output you asked:

    nrfjprog version: 10.14.0 external
    JLinkARM.dll version: 6.88a

    Does every nrfjprog command return the same output from your initial post?

    Yes, every nrfjprog command returns that output.

    Have you checked that there is noe issues with the SWD cable?

    No issue with the SWD cable, it worked well the first time I flashed the device with J-Link.

    Here is the log.log file:

     

    [2021-Sept-27 23:49:44] [ info] --------------------------------------------------------------------------------
    [2021-Sept-27 23:49:44] [ info] nrfjprog -f nrf91 -r --log C:\dev 
    [2021-Sept-27 23:49:44] [ info] nrfjprog version 10.14.0 external
    [2021-Sept-27 23:49:44] [ info] --------------------------------------------------------------------------------
    [2021-Sept-27 23:49:44] [ info] Load library at C:\Program Files (x86)\Nordic Semiconductor\nrf-command-line-tools\bin\nrfjprog.dll.
    [2021-Sept-27 23:49:44] [ info] Library loaded, loading member functions.
    [2021-Sept-27 23:49:44] [ info] Member functions succesfully loaded.
    [2021-Sept-27 23:49:44] [debug] [ Client] - open
    [2021-Sept-27 23:49:44] [debug] [ Client] - start
    [2021-Sept-27 23:49:45] [ info] [ Client] - stdout: Jlinkarm nRF Worker ready. Handling sequence d92c4ade-2e36-4ee6-ae90-602893337cd5.
    
    [2021-Sept-27 23:49:45] [debug] [SeggerBackend] - Logger sink registered in Segger backend logger
    [2021-Sept-27 23:49:45] [debug] [  JLink] - Logger sink registered in JLink logger
    [2021-Sept-27 23:49:45] [debug] [  nRF91] - open
    [2021-Sept-27 23:49:45] [debug] [SeggerBackend] - open_dll
    [2021-Sept-27 23:49:45] [debug] [SeggerBackend] - No J-Link DLL path was provided. Attempting to auto detect.
    [2021-Sept-27 23:49:45] [ info] [SeggerBackend] - Load library at C:\Program Files (x86)\SEGGER\JLink\JLinkARM.dll.
    [2021-Sept-27 23:49:45] [ info] [SeggerBackend] - Library loaded, loading member functions.
    [2021-Sept-27 23:49:45] [ info] [SeggerBackend] - Member functions succesfully loaded.
    [2021-Sept-27 23:49:45] [debug] [SeggerBackend] - dll_version
    [2021-Sept-27 23:49:45] [ info] [SeggerBackend] - Segger dll version 6.88.a loaded.
    [2021-Sept-27 23:49:45] [trace] [ Worker] - Command open executed for 6 milliseconds with result 0
    [2021-Sept-27 23:49:45] [trace] [ Client] - Command open executed for 39 milliseconds with result 0
    [2021-Sept-27 23:49:45] [debug] [ Client] - enum_emu_snr
    [2021-Sept-27 23:49:45] [trace] [ Client] - Command enum_emu_snr executed for 15 milliseconds with result 0
    [2021-Sept-27 23:49:45] [debug] [ Client] - connect_to_emu_with_snr
    [2021-Sept-27 23:49:45] [debug] [  nRF91] - enum_emu_snr
    [2021-Sept-27 23:49:45] [debug] [SeggerBackend] - is_connected_to_emu
    [2021-Sept-27 23:49:45] [debug] [SeggerBackend] - enum_emu_snr
    [2021-Sept-27 23:49:45] [debug] [SeggerBackend] - ---just_enum_emu_snr
    [2021-Sept-27 23:49:45] [debug] [SeggerBackend] - ---just_get_num_emus
    [2021-Sept-27 23:49:45] [debug] [SeggerBackend] - is_connected_to_emu
    [2021-Sept-27 23:49:45] [trace] [ Worker] - Command enum_emu_snr executed for 2 milliseconds with result 0
    [2021-Sept-27 23:49:45] [debug] [  nRF91] - connect_to_emu_with_snr
    [2021-Sept-27 23:49:45] [debug] [SeggerBackend] - is_connected_to_emu
    [2021-Sept-27 23:49:45] [debug] [SeggerBackend] - connect_to_emu_with_snr
    [2021-Sept-27 23:49:45] [debug] [SeggerBackend] - is_connected_to_emu
    [2021-Sept-27 23:49:45] [debug] [SeggerBackend] - ---just_enum_emu_snr
    [2021-Sept-27 23:49:45] [debug] [SeggerBackend] - ---just_get_num_emus
    [2021-Sept-27 23:49:45] [debug] [SeggerBackend] - ---just_connect_to_emu_with_snr
    [2021-Sept-27 23:49:45] [debug] [SeggerBackend] - ---just_connect_to_emu_without_snr
    [2021-Sept-27 23:49:45] [debug] [SeggerBackend] - Segger logging enabled.
    [2021-Sept-27 23:49:45] [trace] [  JLink] - Firmware: J-Link EDU Mini V1 compiled Aug 10 2021 11:19:22
    [2021-Sept-27 23:49:45] [trace] [  JLink] - Decompressing FW timestamp took 124 us
    [2021-Sept-27 23:49:45] [trace] [  JLink] - Hardware: V1.00
    [2021-Sept-27 23:49:45] [trace] [  JLink] - S/N: 801034441
    [2021-Sept-27 23:49:45] [trace] [  JLink] - OEM: SEGGER
    [2021-Sept-27 23:49:45] [trace] [  JLink] - Feature(s): FlashBP, GDB
    [2021-Sept-27 23:49:45] [trace] [  JLink] - TELNET listener socket opened on port 19021
    [2021-Sept-27 23:49:45] [trace] [  JLink] - WEBSRV Starting webserver
    [2021-Sept-27 23:49:45] [trace] [  JLink] - WEBSRV Failed to put socket into listener state (port 19080)
    [2021-Sept-27 23:49:45] [trace] [  JLink] - WEBSRV Webserver running on local port 19081
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 20.704ms returns "O.K."  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_HasError()  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_Lock()  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_GetHWStatus(...)  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 0.151ms returns 0  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_HasError()  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_ExecCommand("SetRestartOnClose = 0", ...).   
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 0.003ms returns 0x01  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_HasError()  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_ExecCommand("DisableFlashDL", ...).   
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 0.003ms returns 0x00  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_HasError()  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_ExecCommand("ExcludeFlashCacheRange 0x0-0xFFFFFFFF", ...).   
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 0.004ms returns 0x00  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_HasError()  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_SetHookUnsecureDialog  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_SetHookUnsecureDialog(...)
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 0.016ms returns 0  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_HasError()  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_TIF_Select(JLINKARM_TIF_SWD)  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 0.502ms returns 0x00  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_HasError()  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_SetSpeed(2000)  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 0.083ms  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_HasError()  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_GetSN()  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 0.006ms returns 801034441  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_HasError()  
    [2021-Sept-27 23:49:45] [debug] [SeggerBackend] - read_debug_port_idr
    [2021-Sept-27 23:49:45] [debug] [SeggerBackend] - read_debug_port_register
    [2021-Sept-27 23:49:45] [debug] [SeggerBackend] - ---just_read_debug_port_register
    [2021-Sept-27 23:49:45] [debug] [SeggerBackend] - coresight_configure
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_CORESIGHT_Configure()  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 100.161ms returns 0  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_HasError()  
    [2021-Sept-27 23:49:45] [debug] [SeggerBackend] - ---just_select_debug_port_register
    [2021-Sept-27 23:49:45] [debug] [SeggerBackend] - Select AP 255, DP Bank 0, AP Bank 255
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 0.961ms returns -1  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_HasError()  
    [2021-Sept-27 23:49:45] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Sept-27 23:49:45] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2021-Sept-27 23:49:45] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 0.980ms returns -1  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_HasError()  
    [2021-Sept-27 23:49:45] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 1.069ms returns -1  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_HasError()  
    [2021-Sept-27 23:49:45] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 1.339ms returns -1  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_HasError()  
    [2021-Sept-27 23:49:45] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 1.270ms returns -1  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_HasError()  
    [2021-Sept-27 23:49:45] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 1.301ms returns -1  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_HasError()  
    [2021-Sept-27 23:49:45] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 1.298ms returns -1  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_HasError()  
    [2021-Sept-27 23:49:45] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Sept-27 23:49:45] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2021-Sept-27 23:49:45] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 1.001ms returns -1  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_HasError()  
    [2021-Sept-27 23:49:45] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 1.377ms returns -1  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_HasError()  
    [2021-Sept-27 23:49:45] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 0.972ms returns -1  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_HasError()  
    [2021-Sept-27 23:49:45] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Sept-27 23:49:45] [trace] [ Client] - Command connect_to_emu_with_snr executed for 188 milliseconds with result -102
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 0.987ms returns -1  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_HasError()  
    [2021-Sept-27 23:49:45] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 0.888ms returns -1  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_HasError()  
    [2021-Sept-27 23:49:45] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 0.947ms returns -1  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_HasError()  
    [2021-Sept-27 23:49:45] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Sept-27 23:49:45] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2021-Sept-27 23:49:45] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 0.921ms returns -1  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_HasError()  
    [2021-Sept-27 23:49:45] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 0.745ms returns -1  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_HasError()  
    [2021-Sept-27 23:49:45] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 0.660ms returns -1  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_HasError()  
    [2021-Sept-27 23:49:45] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 0.637ms returns -1  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_HasError()  
    [2021-Sept-27 23:49:45] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 0.800ms returns -1  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_HasError()  
    [2021-Sept-27 23:49:45] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 0.766ms returns -1  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_HasError()  
    [2021-Sept-27 23:49:45] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Sept-27 23:49:45] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2021-Sept-27 23:49:45] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 0.692ms returns -1  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_HasError()  
    [2021-Sept-27 23:49:45] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 0.694ms returns -1  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_HasError()  
    [2021-Sept-27 23:49:45] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 0.622ms returns -1  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_HasError()  
    [2021-Sept-27 23:49:45] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 0.592ms returns -1  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_HasError()  
    [2021-Sept-27 23:49:45] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 0.736ms returns -1  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_HasError()  
    [2021-Sept-27 23:49:45] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 0.610ms returns -1  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_HasError()  
    [2021-Sept-27 23:49:45] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Sept-27 23:49:45] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2021-Sept-27 23:49:45] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 0.732ms returns -1  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_HasError()  
    [2021-Sept-27 23:49:45] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 0.670ms returns -1  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_HasError()  
    [2021-Sept-27 23:49:45] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 0.578ms returns -1  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_HasError()  
    [2021-Sept-27 23:49:45] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 0.681ms returns -1  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_HasError()  
    [2021-Sept-27 23:49:45] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 0.563ms returns -1  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_HasError()  
    [2021-Sept-27 23:49:45] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 0.036ms  
    [2021-Sept-27 23:49:45] [trace] [ Worker] - Command connect_to_emu_with_snr executed for 186 milliseconds with result -102
    [2021-Sept-27 23:49:45] [debug] [  nRF91] - close
    [2021-Sept-27 23:49:45] [debug] [SeggerBackend] - is_connected_to_device
    [2021-Sept-27 23:49:45] [debug] [SeggerBackend] - is_connected_to_emu
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_IsOpen()  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 0.010ms returns 0x01  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_HasError()  
    [2021-Sept-27 23:49:45] [debug] [SeggerBackend] - is_connected_to_device
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_IsConnected()  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 0.007ms returns FALSE  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_HasError()  
    [2021-Sept-27 23:49:45] [debug] [  nRF91] - close
    [2021-Sept-27 23:49:45] [debug] [SeggerBackend] - is_connected_to_emu
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_IsOpen()  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 0.007ms returns 0x01  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_HasError()  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_Lock()  
    [2021-Sept-27 23:49:45] [debug] [SeggerBackend] - close
    [2021-Sept-27 23:49:45] [debug] [SeggerBackend] - disconnect_from_emu
    [2021-Sept-27 23:49:45] [debug] [SeggerBackend] - ---just_disconnect_from_emu
    [2021-Sept-27 23:49:45] [debug] [SeggerBackend] - is_connected_to_device
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_IsConnected()  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 0.007ms returns FALSE  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_HasError()  
    [2021-Sept-27 23:49:45] [debug] [SeggerBackend] - ---just_is_debug_region_powered
    [2021-Sept-27 23:49:45] [debug] [SeggerBackend] - ---just_read_debug_port_register
    [2021-Sept-27 23:49:45] [debug] [SeggerBackend] - ---just_select_debug_port_register
    [2021-Sept-27 23:49:45] [debug] [SeggerBackend] - Select AP 255, DP Bank 0, AP Bank 255
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 0.557ms returns -1  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_HasError()  
    [2021-Sept-27 23:49:45] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Sept-27 23:49:45] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2021-Sept-27 23:49:45] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 0.567ms returns -1  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_HasError()  
    [2021-Sept-27 23:49:45] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 0.657ms returns -1  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_HasError()  
    [2021-Sept-27 23:49:45] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 0.627ms returns -1  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_HasError()  
    [2021-Sept-27 23:49:45] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 0.518ms returns -1  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_HasError()  
    [2021-Sept-27 23:49:45] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 0.524ms returns -1  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_HasError()  
    [2021-Sept-27 23:49:45] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 0.518ms returns -1  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_HasError()  
    [2021-Sept-27 23:49:45] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Sept-27 23:49:45] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2021-Sept-27 23:49:45] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 0.527ms returns -1  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_HasError()  
    [2021-Sept-27 23:49:45] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 0.526ms returns -1  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_HasError()  
    [2021-Sept-27 23:49:45] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 0.535ms returns -1  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_HasError()  
    [2021-Sept-27 23:49:45] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 0.514ms returns -1  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_HasError()  
    [2021-Sept-27 23:49:45] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 0.587ms returns -1  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_HasError()  
    [2021-Sept-27 23:49:45] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 0.673ms returns -1  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_HasError()  
    [2021-Sept-27 23:49:45] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Sept-27 23:49:45] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2021-Sept-27 23:49:45] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 0.669ms returns -1  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_HasError()  
    [2021-Sept-27 23:49:45] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 0.534ms returns -1  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_HasError()  
    [2021-Sept-27 23:49:45] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 0.737ms returns -1  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_HasError()  
    [2021-Sept-27 23:49:45] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Sept-27 23:49:45] [trace] [ Client] - Command close executed for 110 milliseconds with result 0
    [2021-Sept-27 23:49:45] [debug] [ Client] - terminate
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 0.501ms returns -1  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_HasError()  
    [2021-Sept-27 23:49:45] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Sept-27 23:49:45] [trace] [ Client] - Command terminate executed for 0 milliseconds with result 0
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 0.519ms returns -1  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_HasError()  
    [2021-Sept-27 23:49:45] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 0.665ms returns -1  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_HasError()  
    [2021-Sept-27 23:49:45] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Sept-27 23:49:45] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2021-Sept-27 23:49:45] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 0.573ms returns -1  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_HasError()  
    [2021-Sept-27 23:49:45] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 0.704ms returns -1  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_HasError()  
    [2021-Sept-27 23:49:45] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 0.681ms returns -1  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_HasError()  
    [2021-Sept-27 23:49:45] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 0.672ms returns -1  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_HasError()  
    [2021-Sept-27 23:49:45] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 0.583ms returns -1  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_HasError()  
    [2021-Sept-27 23:49:45] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 0.629ms returns -1  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_HasError()  
    [2021-Sept-27 23:49:45] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Sept-27 23:49:45] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2021-Sept-27 23:49:45] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 0.686ms returns -1  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_HasError()  
    [2021-Sept-27 23:49:45] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 0.547ms returns -1  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_HasError()  
    [2021-Sept-27 23:49:45] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 0.533ms returns -1  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_HasError()  
    [2021-Sept-27 23:49:45] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 0.580ms returns -1  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_HasError()  
    [2021-Sept-27 23:49:45] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 0.747ms returns -1  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_HasError()  
    [2021-Sept-27 23:49:45] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2021-Sept-27 23:49:45] [trace] [  JLink] - - 0.014ms  
    [2021-Sept-27 23:49:45] [trace] [  JLink] - JLINK_Close()  
    [2021-Sept-27 23:49:45] [debug] [SeggerBackend] - Segger Backend closed.
    [2021-Sept-27 23:49:45] [debug] [  nRF91] - nRF family DLL closed
    [2021-Sept-27 23:49:45] [trace] [ Worker] - Command close executed for 110 milliseconds with result 0
    [2021-Sept-27 23:49:45] [trace] [ Worker] - Command terminate executed for 0 milliseconds with result 0
    [2021-Sept-27 23:49:45] [trace] [ Worker] - Executed 5 commands for 304 milliseconds
    [2021-Sept-27 23:49:45] [debug] [ Client] - Worker process exited with code: 0
    [2021-Sept-27 23:49:45] [debug] [ Client] - Worker process exited with code: 0
    [2021-Sept-27 23:49:45] [debug] [ Client] - Child process terminated with result 0
    [2021-Sept-27 23:49:45] [trace] [ Client] - Executed 5 commands for 352 milliseconds
    [2021-Sept-27 23:49:45] [debug] [ Client] - terminate
    

    Thank you,

    Grein

  • Hey Grein, 

    Thanks for sharing. Can you please try to update your JLink drivers? 6.88a is fairly old, and you should have been prompted to install a newer version. 

    Kind regards,
    Øyvind

Related