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

Cannot connect to nrf52 development kit with nrfjprog

Hi, I am trying to program nrf52 (on board ), but I keep getting these error: $ nrfjprog -f nrf52 --program nrf52832_xxaa.hex --eraseall
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.

and this is my log:

nrfjprog --program nrf52840_xxaa.hex --chiperase --log nrfjprog verion 9.4.0

FUNCTION: open_dll. FUNCTION: open_dll. FUNCTION: enum_emu_snr. FUNCTION: enum_emu_snr. FUNCTION: enum_emu_snr. FUNCTION: enum_emu_snr. FUNCTION: connect_to_emu_with_snr. FUNCTION: connect_to_emu_with_snr. FUNCTION: connect_to_emu_without_snr. FUNCTION: enum_emu_snr. JLinkARM.dll OpenEx returned error 'Can not connect to J-Link via USB.'. FUNCTION: close_dll. FUNCTION: close_dll.

This should be so easy but it is making me crazy. I was able to program with nrf go studio in windows. But I am using linux system and would like to work with jrfjprog. I should mentioned that I have tried on PCA10040 and PCA10056. And I have installed segger as well.

Regards, Ben

Related