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

Flashing nRF52832_xxAA using the PCA10028 with a Raspberry Pi3 B+

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)

Parents Reply
  • Hmm I always thought it was JTAG but it uses 2-wire so you are right. That got me to connect but it seems it only sees the nRF51 that is on the SDK board. When I run connect it gives me a warning saying it is configured for Cortex-M4 but found a Cortex-M0. I have no problem ignoring the nRF51 with nrfjprog and flashing the nRF52, but JLinkExe seems to only see the onboard nRF51. Thank you for helping me with that first problem!

Children
Related