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

nRF52 DK Connecting to J-Link via USB...FAILED: Communication timed out: after following nRF_Sniffer_UG_v2.2.pdf

Hi,

I was able to successfully complete Figure 2 on page 6 of nRF_Sniffer_UG_v2.2.pdf, and successfully loaded and ran sniffer_pca10028_1c2a221.hex.

I rebooted my computer, and now I get  Connecting to J-Link via USB...FAILED: Communication timed out:

1. The device shows up as J-Link driver in the device manager.  When I plug it in Win 7 autoplay pops up as JLINK and I can view/edit the files shown there.

2. USB cable is good

3. Boot/reset does nothing.  Did I erase the bootloader somehow in step 1 of the intructions on table 6?  It's not clear how to use the USB cable to re load the bootloader, or which one to use in the similar tickets.

4. Voltage is good

5. Jlink is the current version, and worked once.

Thanks,

Dave.

FYI, it never showed up in Wireshark, nor did LED1 blink.  I don't think it paired with anything.

Using python 2.7

  • Hi,

     

    It sounds like you enabled the bootloader and flashed the sniffer.

    If you power off your nRF5-DK, hold down the "IF BOOT/RESET" button, then power on the kit again, the "BOOTLOADER" drive should appear again.

    You can download the debugger interface binary here: https://www.nordicsemi.com/Software-and-Tools/Development-Kits/nRF52-DK/Download#infotabs (Same one for all nRF5x-kits)

    Download the .bin and copy it to the drive marked as "BOOTLOADER" - then wait ~10 seconds, and power cycle the DK.

    After this, you should be able to detect the JLink debugger, and be able to program the sniffer:

    nrfjprog --program sniffer_pca10028_1c2a221.hex --sectorerase -f nrf51 --reset

     

    Kind regards,

    Håkon

  • Hi Hakon,

    I was able to do everything you said regarding the bootloader.  Still having the same problem.

    I see the Jlink in the windows file manager, it has 4 files in it, which I can access.  So the board is connected to windows.

    I am using Jlink_V634b.  I open a command window in win 7 and go to the Jlink_V634b directory and type Jlink.exe

    It just sits on the screen below in the command window.  How do I fix this?

    c:\Program Files (x86)\SEGGER\JLink_V634b>jlink.exe
    SEGGER J-Link Commander V6.34b (Compiled Aug 13 2018 16:36:55)
    DLL version V6.34b, compiled Aug 13 2018 16:36:16

    Connecting to J-Link via USB...

    FYI, in the instructions it says to use

    Type loadfile then <Path to Wireshark>\extcap\nrf_sniffer_<version>_<hash>\hex\sniffer_<board name>_<hash>.hex

    you suggested nrfprog.  Is there a difference?

  • DaveMo said:

    Type loadfile then <Path to Wireshark>\extcap\nrf_sniffer_<version>_<hash>\hex\sniffer_<board name>_<hash>.hex

    you suggested nrfprog.  Is there a difference?

    No difference, only two different paths to Rome.

    Did you get an indication that the "loadfile <hex>" went OK? After programming, you'll need to power cycle the board.

     

    Kind regards,

    Håkon

  • Hi Hakon,

    I am using Jlink_V634b.  I open a command window in win 7 and go to the Jlink_V634b directory and type Jlink.exe, and it times out. 

    ****************It won't connect to Jlink via USB.

    It does show up in the device manager and as a drive.  Seems like a lot of people have similar issues, yet no solution.

    How do I fix this?

  •  Hi Dave,

    DaveMo said:
    It does show up in the device manager and as a drive

    Have you checked if the enumerated devices have strings matching JLink or SEGGER? The mass storage device should be marked "X:\JLINK".

    DaveMo said:
    ****************It won't connect to Jlink via USB.

    That error message indicates that the nRF DK debugger is not accessible. Is the LED (LD5) on the board solid or blinking?

    Have you tried using another USB cable?

     

    If it still is misbehaving:

    Could you verify that you copied the downloaded binary file "J-Link OB-SAM3U128-V2-NordicSemi 170724.bin" to the X:\BOOTLOADER drive, and not the CMSIS-DAP binary file "nrf5x_atsam3u2c_if_mbed_V0221_11012017.bin" (this one is not compatible with Segger JLink and nrfjprog) ?

     

    To enter bootloader mode on the kit, you need to hold the IF BOOT/RESET button while powering on the kit. The LED near the SEGGER IC should blink every 1 second in this mode. After copying the J-Link OB-SAM3U128-V2-NordicSemi 170724.bin to the folder, wait 10 seconds, then power cycle the nRF5-DK.

     

    Kind regards,

    Håkon

Related