Can't upload to Nordic NRF52 Dongle

I’m trying to use PlatformIO with a Nordic NRF52 Dongle (nRF52840 Dongle - nordicsemi.com). Code compiles fine but uploading fails with:

Uploading .pio/build/dongle/firmware.hex
SEGGER J-Link Commander V6.52 (Compiled Sep 27 2019 17:51:12)
DLL version V6.52, compiled Sep 27 2019 17:51:01
J-Link Command File read successfully.
Processing script file…
J-Link connection not established yet but required for command.
Connecting to J-Link via USB…FAILED: Failed to open DLL
J-Link connection not established yet but required for command.
Connecting to J-Link via USB…FAILED: Failed to open DLL
J-Link connection not established yet but required for command.
Connecting to J-Link via USB…FAILED: Failed to open DLL

Same behavior on both Mac OS (Mojave) and Linux (Ubuntu 18.04).

I suspect the “Failed to open DLL” is misleading and the actual problem is “failed to open USB connection”. Is there a trick to flashing new code onto the NRF52 Dongle over USB?

1 Like

Missing drivers maybe? PIO debugger won't work in VSCode - #5 by ivankravets