I am building a bed-of-nails test bench, and part of the process is to create automation tests. The basic over lay is to have the RPi flash the nRF52832 using the PCA10028. I can flash the nRF52 from my laptop using nrfjprog, however I am running into issues using JLinkExe on the raspberry pi.
I can get the RPi to connect to the PCA10028 (on the nRF51 DK board) and run commands, however when the PCA10028 attempts to connect to the nRF52 (using commands like "connect" or "r" for reset) it states "Unable to connect to target device". I have the device set correctly on the PCA, I have tried lowering speeds, I am using JTAG, and I cannot understand why it cannot connect to the nRF52. Yet on my laptop I have no issues. The JTAG v-detect says it is 3.3V. This makes me think I am missing a configuration option on JLinkExe. To run JLinkExe on on the RPi I just execute it using sudo ./JLINKEXE. Any ideas where to start? I can post any code snippets or screenshots that can be helpful.
Thanks.
(I have attached a photo of the commands I run with JLinkExe)