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

ERROR: Cannot find JLink hardware. make: *** [flash] Error 1 fatal: Failed to execute make: returned non-zero exit status 2.

I will use Nordic nrf52840 dongle for 2FA + security key on Google login and I am following these instructions:

https://github.com/google/OpenSK/blob/master/docs/install.md

I successfully run setup.sh, installed rustup, tockloader (via github) but when i run:

```./deploy.py os --board=nrf52840_dk```

I get the following error:

Finished release [optimized + debuginfo] target(s) in 0.25s
[STATUS] Flashing binaries to board
[ INFO ] Using known arch and jtag-device for known board nrf52dk
[ERROR ] ERROR: Cannot find JLink hardware. Is USB attached ?
make: *** [flash] Error 1
fatal: Failed to execute make: Command '['make', '-C', 'third_party/tock/boards/nordic/nrf52840_dongle', 'flash']' returned non-zero exit status 2.

I tried to update the dongle driver with JLink driver but it's not working. Windows recognizes the USB attached and it is currently on port COM3

When I open JLink.exe, it tries to connect via USB but a pop up opens; "No emulators connected via USB" and it wants to connect via TCP/IP.

What are the possible solutions to this issue ? Nordic nrf52840_dongle is connected to USB port.

Thanks in advance

  • Hello,

    The github repo that you link to is not made by Nordic Semiconductor, so exactly how this is supposed to work, I don't know. 

    However, I saw from the readme.md that you need to connect an external debugger to the dongle. Have you soldered on the 10pin debug header on the dongle, and connected it via a 10pin segger cable to an external debugger? This process is also described in the pictures of the dongle. My guess, based on the logs (which I don't know where come from, again, because it is not our project) it looks like it can't find a connected debuger.

    Best regards,

    Edvin

  • ,

    the nrf52840 Dongle from Nordic semiconductor is being used by Google to generate security keys besides their 2FA for their login. I bought one from Nordic. It's a proof of concept by Google. You have the usual login with username + password then 2FA with telephone number PLUS the nrf52840 dongle as a physical device.

    I didn't soldered the 10 pin debug header on the dongle, because I believe it is supposed to work as an USB device to certificate Google Logins.

    As long as I understand, there is an issue with JLink driver, as the .deploy is not recognizing the dongle as an USB. The dongle is connected to the USB port, I run setup.sh, installed rustc, tockloader but halts on deploy.

    After I install JLink for ARM in OpenSK folder and open JLink $connect , I get:

    J-Link>connect
    J-Link connection not established yet but required for command.
    Connecting to J-Link via USB...FAILED: Failed to open DLL

    I know it's a new project, but based on your experience, what could I do to make this work, without changing the physical structure of the dongle? It will probably work as an ARM device on USB.

    Best regards,

    Rubens

  • ,

    I have heard about this project, but never tried it (nor seen the github repo before you posted it). I am just reading the readme.md from the link you provided. It clearly state that you need an external debugger with the dongle. 

    As you may, or may not know, the dongle doesn't have a debugger (but the DK does), which is why the program says that it can't find the debugger.

    Another thing you may or may not know is that the dongle comes with a bootloader. However, I don't know if the program in this repo is able to use that bootloader. I don't know how much you know about bootloaders, but I can imagine a few scenarios where it will not work. But I don't know enough about this project in particular.

    The reason that the JLink isn't able to connect is simply because you don't have a JLink debugger. 

     

    Rubens said:
    I know it's a new project, but based on your experience, what could I do to make this work, without changing the physical structure of the dongle? It will probably work as an ARM device on USB.

     As the readme.md says, there are connectors for debuggers where you don't have to solder anything (i.e. change the physical structure of the dongle). Search for TC2050 in the readme.md. You would need one of these cables (and an external debugger).

    Best regards,

    Edvin

Related